denkproto 1.0.56__py3-none-any.whl → 1.0.57__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of denkproto might be problematic. Click here for more details.
denkproto/__about__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "1.0.
|
|
1
|
+
__version__ = "1.0.57"
|
|
@@ -491,44 +491,16 @@ class Annotation:
|
|
|
491
491
|
return result
|
|
492
492
|
|
|
493
493
|
|
|
494
|
-
class SegmentationMap:
|
|
495
|
-
blob_id: UUID
|
|
496
|
-
label_id: UUID
|
|
497
|
-
thumbnail: str
|
|
498
|
-
|
|
499
|
-
def __init__(self, blob_id: UUID, label_id: UUID, thumbnail: str) -> None:
|
|
500
|
-
self.blob_id = blob_id
|
|
501
|
-
self.label_id = label_id
|
|
502
|
-
self.thumbnail = thumbnail
|
|
503
|
-
|
|
504
|
-
@staticmethod
|
|
505
|
-
def from_dict(obj: Any) -> 'SegmentationMap':
|
|
506
|
-
assert isinstance(obj, dict)
|
|
507
|
-
blob_id = UUID(obj.get("blob_id"))
|
|
508
|
-
label_id = UUID(obj.get("label_id"))
|
|
509
|
-
thumbnail = from_str(obj.get("thumbnail"))
|
|
510
|
-
return SegmentationMap(blob_id, label_id, thumbnail)
|
|
511
|
-
|
|
512
|
-
def to_dict(self) -> dict:
|
|
513
|
-
result: dict = {}
|
|
514
|
-
result["blob_id"] = str(self.blob_id)
|
|
515
|
-
result["label_id"] = str(self.label_id)
|
|
516
|
-
result["thumbnail"] = from_str(self.thumbnail)
|
|
517
|
-
return result
|
|
518
|
-
|
|
519
|
-
|
|
520
494
|
class SegmentationMarkup:
|
|
521
495
|
annotations: List[Annotation]
|
|
522
496
|
average_object_widths: List[float]
|
|
523
497
|
height: int
|
|
524
|
-
segmentation_maps: List[SegmentationMap]
|
|
525
498
|
width: int
|
|
526
499
|
|
|
527
|
-
def __init__(self, annotations: List[Annotation], average_object_widths: List[float], height: int,
|
|
500
|
+
def __init__(self, annotations: List[Annotation], average_object_widths: List[float], height: int, width: int) -> None:
|
|
528
501
|
self.annotations = annotations
|
|
529
502
|
self.average_object_widths = average_object_widths
|
|
530
503
|
self.height = height
|
|
531
|
-
self.segmentation_maps = segmentation_maps
|
|
532
504
|
self.width = width
|
|
533
505
|
|
|
534
506
|
@staticmethod
|
|
@@ -537,16 +509,14 @@ class SegmentationMarkup:
|
|
|
537
509
|
annotations = from_list(Annotation.from_dict, obj.get("annotations"))
|
|
538
510
|
average_object_widths = from_list(from_float, obj.get("average_object_widths"))
|
|
539
511
|
height = from_int(obj.get("height"))
|
|
540
|
-
segmentation_maps = from_list(SegmentationMap.from_dict, obj.get("segmentation_maps"))
|
|
541
512
|
width = from_int(obj.get("width"))
|
|
542
|
-
return SegmentationMarkup(annotations, average_object_widths, height,
|
|
513
|
+
return SegmentationMarkup(annotations, average_object_widths, height, width)
|
|
543
514
|
|
|
544
515
|
def to_dict(self) -> dict:
|
|
545
516
|
result: dict = {}
|
|
546
517
|
result["annotations"] = from_list(lambda x: to_class(Annotation, x), self.annotations)
|
|
547
518
|
result["average_object_widths"] = from_list(to_float, self.average_object_widths)
|
|
548
519
|
result["height"] = from_int(self.height)
|
|
549
|
-
result["segmentation_maps"] = from_list(lambda x: to_class(SegmentationMap, x), self.segmentation_maps)
|
|
550
520
|
result["width"] = from_int(self.width)
|
|
551
521
|
return result
|
|
552
522
|
|
|
@@ -4,7 +4,7 @@ denkproto/DENKbuffer_pb2_grpc.py,sha256=-CPJPM4FOqwvwV8-f1iJlD18UD9juVIIHfdWUecu
|
|
|
4
4
|
denkproto/ImageAnalysis_ProtobufMessages_pb2.py,sha256=iEY0j9ySGUThnqTdYD4uAVr9P3GiC5R02iK53zEOXUQ,21015
|
|
5
5
|
denkproto/ImageAnalysis_ProtobufMessages_pb2.pyi,sha256=5LFtxrmYpJHizDDNGFTkL7-NQ_TkwqCSdq7vcv3lg-c,36243
|
|
6
6
|
denkproto/ImageAnalysis_ProtobufMessages_pb2_grpc.py,sha256=l3agtDjgu4jay6P9TRnHhyhJ-7UdoII27ywhw3k84oo,911
|
|
7
|
-
denkproto/__about__.py,sha256=
|
|
7
|
+
denkproto/__about__.py,sha256=3Clx6PzqZtLlqciDZfjzZTEc2KrmzE5ZGnFT2yQSkGE,23
|
|
8
8
|
denkproto/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
9
|
denkproto/denkcache_pb2.py,sha256=fvrIvDfK8ED_w0EfO0tIrLMsBh2T5yvVI-sNFCK7NEQ,6627
|
|
10
10
|
denkproto/denkcache_pb2.pyi,sha256=qOzFOkddUapSJZz5d_mqcfHvWDAmM-70m_7FeM7n5fI,5595
|
|
@@ -26,7 +26,7 @@ denkproto/json/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
26
26
|
denkproto/json/classification_markup.py,sha256=vTu0H7Cb3gU6UUUSg1vDTRlFUorZrjMbcp_yx6UssZA,2461
|
|
27
27
|
denkproto/json/object_detection_markup.py,sha256=T0hcFPq8F_galjDjRC9dbcRVwCSOYtu2jt9wpEeHlQs,4904
|
|
28
28
|
denkproto/json/ocr_markup.py,sha256=KyOpth9evOekyhTJdZSnYyB9EIyoWbY33sqncb_jBgw,7069
|
|
29
|
-
denkproto/json/segmentation_markup.py,sha256=
|
|
30
|
-
denkproto-1.0.
|
|
31
|
-
denkproto-1.0.
|
|
32
|
-
denkproto-1.0.
|
|
29
|
+
denkproto/json/segmentation_markup.py,sha256=EvniRksF2KaQolm6zZ6UKSiGwnqc8wR2sHB1iv05RTE,19911
|
|
30
|
+
denkproto-1.0.57.dist-info/METADATA,sha256=dpbWmemfPSaywMgLKPK6clIfIH5hwMKsej4QdeMJ4mc,110
|
|
31
|
+
denkproto-1.0.57.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
|
32
|
+
denkproto-1.0.57.dist-info/RECORD,,
|
|
File without changes
|