denkproto 1.0.51__py3-none-any.whl → 1.0.56__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 +1 -1
- denkproto/json/ocr_markup.py +44 -9
- denkproto/json/segmentation_markup.py +42 -9
- denkproto/modelfile_v2_pb2.py +22 -22
- denkproto/modelfile_v2_pb2.pyi +4 -2
- {denkproto-1.0.51.dist-info → denkproto-1.0.56.dist-info}/METADATA +1 -1
- {denkproto-1.0.51.dist-info → denkproto-1.0.56.dist-info}/RECORD +8 -8
- {denkproto-1.0.51.dist-info → denkproto-1.0.56.dist-info}/WHEEL +0 -0
denkproto/__about__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "1.0.
|
|
1
|
+
__version__ = "1.0.56"
|
denkproto/json/ocr_markup.py
CHANGED
|
@@ -15,6 +15,11 @@ def to_float(x: Any) -> float:
|
|
|
15
15
|
return x
|
|
16
16
|
|
|
17
17
|
|
|
18
|
+
def from_int(x: Any) -> int:
|
|
19
|
+
assert isinstance(x, int) and not isinstance(x, bool)
|
|
20
|
+
return x
|
|
21
|
+
|
|
22
|
+
|
|
18
23
|
def from_list(f: Callable[[Any], T], x: Any) -> List[T]:
|
|
19
24
|
assert isinstance(x, list)
|
|
20
25
|
return [f(y) for y in x]
|
|
@@ -44,11 +49,6 @@ def from_str(x: Any) -> str:
|
|
|
44
49
|
return x
|
|
45
50
|
|
|
46
51
|
|
|
47
|
-
def from_int(x: Any) -> int:
|
|
48
|
-
assert isinstance(x, int) and not isinstance(x, bool)
|
|
49
|
-
return x
|
|
50
|
-
|
|
51
|
-
|
|
52
52
|
class BoundingBox:
|
|
53
53
|
bottom_right_x: float
|
|
54
54
|
bottom_right_y: float
|
|
@@ -101,29 +101,64 @@ class Point:
|
|
|
101
101
|
return result
|
|
102
102
|
|
|
103
103
|
|
|
104
|
-
class
|
|
104
|
+
class OcrMarkupSchema:
|
|
105
|
+
"""A single closed loop (ring) of a polygon, defining either an outer boundary or a hole."""
|
|
106
|
+
|
|
107
|
+
hierarchy: int
|
|
108
|
+
"""Nesting level: 0=outer, 1=hole in level 0, 2=poly in level 1 hole, etc. Even levels are
|
|
109
|
+
filled areas, odd levels are holes.
|
|
110
|
+
"""
|
|
105
111
|
points: List[Point]
|
|
112
|
+
"""Vertices of the ring."""
|
|
106
113
|
|
|
107
|
-
def __init__(self, points: List[Point]) -> None:
|
|
114
|
+
def __init__(self, hierarchy: int, points: List[Point]) -> None:
|
|
115
|
+
self.hierarchy = hierarchy
|
|
108
116
|
self.points = points
|
|
109
117
|
|
|
110
118
|
@staticmethod
|
|
111
|
-
def from_dict(obj: Any) -> '
|
|
119
|
+
def from_dict(obj: Any) -> 'OcrMarkupSchema':
|
|
112
120
|
assert isinstance(obj, dict)
|
|
121
|
+
hierarchy = from_int(obj.get("hierarchy"))
|
|
113
122
|
points = from_list(Point.from_dict, obj.get("points"))
|
|
114
|
-
return
|
|
123
|
+
return OcrMarkupSchema(hierarchy, points)
|
|
115
124
|
|
|
116
125
|
def to_dict(self) -> dict:
|
|
117
126
|
result: dict = {}
|
|
127
|
+
result["hierarchy"] = from_int(self.hierarchy)
|
|
118
128
|
result["points"] = from_list(lambda x: to_class(Point, x), self.points)
|
|
119
129
|
return result
|
|
120
130
|
|
|
121
131
|
|
|
132
|
+
class Polygon:
|
|
133
|
+
"""A polygon defined by one or more rings, allowing for holes and nested structures."""
|
|
134
|
+
|
|
135
|
+
rings: List[OcrMarkupSchema]
|
|
136
|
+
"""Array of polygon rings. The hierarchy field within each ring determines nesting and
|
|
137
|
+
fill/hole status.
|
|
138
|
+
"""
|
|
139
|
+
|
|
140
|
+
def __init__(self, rings: List[OcrMarkupSchema]) -> None:
|
|
141
|
+
self.rings = rings
|
|
142
|
+
|
|
143
|
+
@staticmethod
|
|
144
|
+
def from_dict(obj: Any) -> 'Polygon':
|
|
145
|
+
assert isinstance(obj, dict)
|
|
146
|
+
rings = from_list(OcrMarkupSchema.from_dict, obj.get("rings"))
|
|
147
|
+
return Polygon(rings)
|
|
148
|
+
|
|
149
|
+
def to_dict(self) -> dict:
|
|
150
|
+
result: dict = {}
|
|
151
|
+
result["rings"] = from_list(lambda x: to_class(OcrMarkupSchema, x), self.rings)
|
|
152
|
+
return result
|
|
153
|
+
|
|
154
|
+
|
|
122
155
|
class Annotation:
|
|
123
156
|
bounding_box: Optional[BoundingBox]
|
|
124
157
|
id: UUID
|
|
125
158
|
label_id: UUID
|
|
126
159
|
polygon: Optional[Polygon]
|
|
160
|
+
"""A polygon defined by one or more rings, allowing for holes and nested structures."""
|
|
161
|
+
|
|
127
162
|
text: str
|
|
128
163
|
|
|
129
164
|
def __init__(self, bounding_box: Optional[BoundingBox], id: UUID, label_id: UUID, polygon: Optional[Polygon], text: str) -> None:
|
|
@@ -259,7 +259,7 @@ class PixelAnnotation:
|
|
|
259
259
|
return result
|
|
260
260
|
|
|
261
261
|
|
|
262
|
-
class
|
|
262
|
+
class RingPoint:
|
|
263
263
|
x: float
|
|
264
264
|
y: float
|
|
265
265
|
|
|
@@ -268,11 +268,11 @@ class PolygonAnnotationPoint:
|
|
|
268
268
|
self.y = y
|
|
269
269
|
|
|
270
270
|
@staticmethod
|
|
271
|
-
def from_dict(obj: Any) -> '
|
|
271
|
+
def from_dict(obj: Any) -> 'RingPoint':
|
|
272
272
|
assert isinstance(obj, dict)
|
|
273
273
|
x = from_float(obj.get("x"))
|
|
274
274
|
y = from_float(obj.get("y"))
|
|
275
|
-
return
|
|
275
|
+
return RingPoint(x, y)
|
|
276
276
|
|
|
277
277
|
def to_dict(self) -> dict:
|
|
278
278
|
result: dict = {}
|
|
@@ -281,21 +281,54 @@ class PolygonAnnotationPoint:
|
|
|
281
281
|
return result
|
|
282
282
|
|
|
283
283
|
|
|
284
|
-
class
|
|
285
|
-
|
|
284
|
+
class SegmentationMarkupSchema:
|
|
285
|
+
"""A single closed loop (ring) of a polygon, defining either an outer boundary or a hole."""
|
|
286
|
+
|
|
287
|
+
hierarchy: int
|
|
288
|
+
"""Nesting level: 0=outer, 1=hole in level 0, 2=poly in level 1 hole, etc. Even levels are
|
|
289
|
+
filled areas, odd levels are holes.
|
|
290
|
+
"""
|
|
291
|
+
points: List[RingPoint]
|
|
292
|
+
"""Vertices of the ring."""
|
|
286
293
|
|
|
287
|
-
def __init__(self, points: List[
|
|
294
|
+
def __init__(self, hierarchy: int, points: List[RingPoint]) -> None:
|
|
295
|
+
self.hierarchy = hierarchy
|
|
288
296
|
self.points = points
|
|
289
297
|
|
|
298
|
+
@staticmethod
|
|
299
|
+
def from_dict(obj: Any) -> 'SegmentationMarkupSchema':
|
|
300
|
+
assert isinstance(obj, dict)
|
|
301
|
+
hierarchy = from_int(obj.get("hierarchy"))
|
|
302
|
+
points = from_list(RingPoint.from_dict, obj.get("points"))
|
|
303
|
+
return SegmentationMarkupSchema(hierarchy, points)
|
|
304
|
+
|
|
305
|
+
def to_dict(self) -> dict:
|
|
306
|
+
result: dict = {}
|
|
307
|
+
result["hierarchy"] = from_int(self.hierarchy)
|
|
308
|
+
result["points"] = from_list(lambda x: to_class(RingPoint, x), self.points)
|
|
309
|
+
return result
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
class PolygonAnnotation:
|
|
313
|
+
"""A polygon defined by one or more rings, allowing for holes and nested structures."""
|
|
314
|
+
|
|
315
|
+
rings: List[SegmentationMarkupSchema]
|
|
316
|
+
"""Array of polygon rings. The hierarchy field within each ring determines nesting and
|
|
317
|
+
fill/hole status.
|
|
318
|
+
"""
|
|
319
|
+
|
|
320
|
+
def __init__(self, rings: List[SegmentationMarkupSchema]) -> None:
|
|
321
|
+
self.rings = rings
|
|
322
|
+
|
|
290
323
|
@staticmethod
|
|
291
324
|
def from_dict(obj: Any) -> 'PolygonAnnotation':
|
|
292
325
|
assert isinstance(obj, dict)
|
|
293
|
-
|
|
294
|
-
return PolygonAnnotation(
|
|
326
|
+
rings = from_list(SegmentationMarkupSchema.from_dict, obj.get("rings"))
|
|
327
|
+
return PolygonAnnotation(rings)
|
|
295
328
|
|
|
296
329
|
def to_dict(self) -> dict:
|
|
297
330
|
result: dict = {}
|
|
298
|
-
result["
|
|
331
|
+
result["rings"] = from_list(lambda x: to_class(SegmentationMarkupSchema, x), self.rings)
|
|
299
332
|
return result
|
|
300
333
|
|
|
301
334
|
|
denkproto/modelfile_v2_pb2.py
CHANGED
|
@@ -24,7 +24,7 @@ _sym_db = _symbol_database.Default()
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x12modelfile-v2.proto\x12\x0cmodelfile.v2\"\
|
|
27
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x12modelfile-v2.proto\x12\x0cmodelfile.v2\"\xda\"\n\tModelFile\x12\x39\n\x10protocol_version\x18\x01 \x01(\x0b\x32\x1f.modelfile.v2.ModelFile.Version\x12\x12\n\ncreated_at\x18\x02 \x01(\x03\x12\x33\n\tfile_info\x18\x03 \x01(\x0b\x32 .modelfile.v2.ModelFile.FileInfo\x12\x30\n\x07\x63ontent\x18\x04 \x01(\x0b\x32\x1f.modelfile.v2.ModelFile.Content\x12\x38\n\x0c\x63lass_labels\x18\x05 \x03(\x0b\x32\".modelfile.v2.ModelFile.ClassLabel\x12-\n\x06inputs\x18\x06 \x03(\x0b\x32\x1d.modelfile.v2.ModelFile.Input\x12/\n\x07outputs\x18\x07 \x03(\x0b\x32\x1e.modelfile.v2.ModelFile.Output\x12J\n\x12\x61\x64\x64itional_content\x18\x08 \x03(\x0b\x32..modelfile.v2.ModelFile.AdditionalContentEntry\x1a\x36\n\x07Version\x12\r\n\x05major\x18\x01 \x01(\x04\x12\r\n\x05minor\x18\x02 \x01(\x04\x12\r\n\x05patch\x18\x03 \x01(\x04\x1a\xaa\x04\n\x07\x43ontent\x12\x14\n\x0c\x62yte_content\x18\x01 \x01(\x0c\x12\x13\n\x0bhash_sha256\x18\x02 \x01(\x0c\x12M\n\x12\x63ompression_method\x18\x03 \x01(\x0e\x32\x31.modelfile.v2.ModelFile.Content.CompressionMethod\x12K\n\x11\x65ncryption_method\x18\x04 \x01(\x0e\x32\x30.modelfile.v2.ModelFile.Content.EncryptionMethod\x12@\n\tkey_slots\x18\x05 \x03(\x0b\x32-.modelfile.v2.ModelFile.Content.KeySlotsEntry\x1ai\n\x07KeySlot\x12\x13\n\x0bwrapped_key\x18\x01 \x01(\x0c\x12I\n\x0fwrapping_method\x18\x02 \x01(\x0e\x32\x30.modelfile.v2.ModelFile.Content.EncryptionMethod\x1aX\n\rKeySlotsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x36\n\x05value\x18\x02 \x01(\x0b\x32\'.modelfile.v2.ModelFile.Content.KeySlot:\x02\x38\x01\" \n\x11\x43ompressionMethod\x12\x0b\n\x07\x43M_NONE\x10\x00\"/\n\x10\x45ncryptionMethod\x12\x0b\n\x07\x45M_NONE\x10\x00\x12\x0e\n\nEM_AES_GCM\x10\x01\x1aU\n\nClassLabel\x12\x16\n\x0e\x63lass_label_id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x12\n\nshort_name\x18\x03 \x01(\t\x12\r\n\x05\x63olor\x18\x04 \x01(\t\x1a<\n\tImageSize\x12\r\n\x05width\x18\x01 \x01(\x04\x12\x0e\n\x06height\x18\x02 \x01(\x04\x12\x10\n\x08\x63hannels\x18\x03 \x01(\x04\x1aJ\n\x0eRegionFromEdge\x12\x0c\n\x04left\x18\x01 \x01(\x01\x12\r\n\x05right\x18\x02 \x01(\x01\x12\x0b\n\x03top\x18\x03 \x01(\x01\x12\x0e\n\x06\x62ottom\x18\x04 \x01(\x01\x1a\xe2\x05\n\x05Input\x12\x46\n\x0cimage_format\x18\x01 \x01(\x0b\x32..modelfile.v2.ModelFile.Input.ImageInputFormatH\x00\x1a\xfb\x04\n\x10ImageInputFormat\x12\x64\n\x10\x65xact_image_size\x18\x01 \x01(\x0b\x32H.modelfile.v2.ModelFile.Input.ImageInputFormat.ExactImageSizeRequirementH\x00\x12l\n\x14\x64ivisible_image_size\x18\x02 \x01(\x0b\x32L.modelfile.v2.ModelFile.Input.ImageInputFormat.DivisibleImageSizeRequirementH\x00\x12\x42\n\x12region_of_interest\x18\x03 \x01(\x0b\x32&.modelfile.v2.ModelFile.RegionFromEdge\x1aR\n\x19\x45xactImageSizeRequirement\x12\x35\n\nimage_size\x18\x01 \x01(\x0b\x32!.modelfile.v2.ModelFile.ImageSize\x1a\xdf\x01\n\x1d\x44ivisibleImageSizeRequirement\x12>\n\x13image_size_divisors\x18\x01 \x01(\x0b\x32!.modelfile.v2.ModelFile.ImageSize\x12=\n\x12minimum_image_size\x18\x02 \x01(\x0b\x32!.modelfile.v2.ModelFile.ImageSize\x12?\n\x14suggested_image_size\x18\x03 \x01(\x0b\x32!.modelfile.v2.ModelFile.ImageSizeB\x19\n\x17image_size_requirementsB\x13\n\x11\x46ormatInformation\x1a\xcc\n\n\x06Output\x12_\n\x18image_classifiers_format\x18\x01 \x01(\x0b\x32;.modelfile.v2.ModelFile.Output.ImageClassifiersOutputFormatH\x00\x12_\n\x18segmentation_maps_format\x18\x02 \x01(\x0b\x32;.modelfile.v2.ModelFile.Output.SegmentationMapsOutputFormatH\x00\x12Y\n\x15\x62ounding_boxes_format\x18\x03 \x01(\x0b\x32\x38.modelfile.v2.ModelFile.Output.BoundingBoxesOutputFormatH\x00\x12p\n!bounding_box_segmentations_format\x18\x04 \x01(\x0b\x32\x43.modelfile.v2.ModelFile.Output.BoundingBoxSegmentationsOutputFormatH\x00\x12\x44\n\nocr_format\x18\x05 \x01(\x0b\x32..modelfile.v2.ModelFile.Output.OcrOutputFormatH\x00\x1a\x1e\n\x1cImageClassifiersOutputFormat\x1aU\n\x1cSegmentationMapsOutputFormat\x12\x35\n\nimage_size\x18\x01 \x01(\x0b\x32!.modelfile.v2.ModelFile.ImageSize\x1a\xe9\x01\n\x19\x42oundingBoxesOutputFormat\x12\x17\n\x0fnumber_of_boxes\x18\x01 \x01(\x04\x12\x0e\n\x06stride\x18\x02 \x01(\x04\x12\x11\n\tx1_offset\x18\x03 \x01(\x04\x12\x11\n\ty1_offset\x18\x04 \x01(\x04\x12\x11\n\tx2_offset\x18\x05 \x01(\x04\x12\x11\n\ty2_offset\x18\x06 \x01(\x04\x12\x19\n\x11\x63onfidence_offset\x18\x07 \x01(\x04\x12 \n\x18\x63lass_label_index_offset\x18\x08 \x01(\x04\x12\x1a\n\x12\x62\x61tch_index_offset\x18\t \x01(\x04\x1a\x7f\n$BoundingBoxSegmentationsOutputFormat\x12\x35\n\nimage_size\x18\x01 \x01(\x0b\x32!.modelfile.v2.ModelFile.ImageSize\x12 \n\x18relative_to_bounding_box\x18\x02 \x01(\x08\x1a\xf3\x02\n\x0fOcrOutputFormat\x12\x1c\n\x14number_of_characters\x18\x01 \x01(\x04\x12L\n\ncharacters\x18\x02 \x03(\x0b\x32\x38.modelfile.v2.ModelFile.Output.OcrOutputFormat.Character\x1a\xf3\x01\n\tCharacter\x12\x1b\n\x13utf8_representation\x18\x01 \x01(\x0c\x12^\n\x0e\x63haracter_type\x18\x02 \x01(\x0e\x32\x46.modelfile.v2.ModelFile.Output.OcrOutputFormat.Character.CharacterType\x12\x0e\n\x06ignore\x18\x03 \x01(\x08\"Y\n\rCharacterType\x12\x0e\n\nCT_REGULAR\x10\x00\x12\x14\n\x10\x43T_START_OF_TEXT\x10\x01\x12\x12\n\x0e\x43T_END_OF_TEXT\x10\x02\x12\x0e\n\nCT_PADDING\x10\x03\x42\x13\n\x11\x46ormatInformation\x1a\xdb\x07\n\x08\x46ileInfo\x12<\n\tfile_type\x18\x01 \x01(\x0e\x32).modelfile.v2.ModelFile.FileInfo.FileType\x12\x14\n\x0cnetwork_name\x18\x02 \x01(\t\x12\x12\n\nnetwork_id\x18\x03 \x01(\t\x12\x1d\n\x15network_experiment_id\x18\x04 \x01(\t\x12\x1b\n\x13network_snapshot_id\x18\x05 \x01(\t\x12\x42\n\x0cnetwork_type\x18\x06 \x01(\x0e\x32,.modelfile.v2.ModelFile.FileInfo.NetworkType\x12\x16\n\x0enetwork_flavor\x18\x07 \x01(\t\x12\x38\n\x0fnetwork_version\x18\x08 \x01(\x0b\x32\x1f.modelfile.v2.ModelFile.Version\x12\x38\n\x0fruntime_version\x18\t \x01(\x0b\x32\x1f.modelfile.v2.ModelFile.Version\x12=\n\tprecision\x18\n \x01(\x0e\x32*.modelfile.v2.ModelFile.FileInfo.Precision\x12\x44\n\x1bminimum_libdenkflow_version\x18\x0b \x01(\x0b\x32\x1f.modelfile.v2.ModelFile.Version\"D\n\x08\x46ileType\x12\x11\n\rFT_ONNX_MODEL\x10\x00\x12\x10\n\x0c\x46T_ZXING_KEY\x10\x01\x12\x13\n\x0f\x46T_VIZIOTIX_KEY\x10\x02\"\xc0\x01\n\x0bNetworkType\x12\x0e\n\nNT_UNKNOWN\x10\x00\x12\x15\n\x11NT_CLASSIFICATION\x10\x01\x12\x13\n\x0fNT_SEGMENTATION\x10\x02\x12\x1c\n\x18NT_INSTANCE_SEGMENTATION\x10\x03\x12\x17\n\x13NT_OBJECT_DETECTION\x10\x04\x12\x18\n\x14NT_ANOMALY_DETECTION\x10\x05\x12$\n NT_OPTICAL_CHARACTER_RECOGNITION\x10\x06\"\xcc\x01\n\tPrecision\x12\x0f\n\x0bP_UNDEFINED\x10\x00\x12\t\n\x05P_FP8\x10\x01\x12\n\n\x06P_FP16\x10\x02\x12\n\n\x06P_FP32\x10\x03\x12\n\n\x06P_FP64\x10\x04\x12\n\n\x06P_INT8\x10\x05\x12\x0b\n\x07P_INT16\x10\x06\x12\x0b\n\x07P_INT32\x10\x07\x12\x0b\n\x07P_INT64\x10\x08\x12\x0b\n\x07P_UINT8\x10\t\x12\x0c\n\x08P_UINT16\x10\n\x12\x0c\n\x08P_UINT32\x10\x0b\x12\x0c\n\x08P_UINT64\x10\x0c\x12\x15\n\x11P_MIXED_PRECISION\x10\r\x1aY\n\x16\x41\x64\x64itionalContentEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.modelfile.v2.ModelFile.Content:\x02\x38\x01\x42IZ-github.com/DENKweit/denkproto-go/modelfile/v2\xaa\x02\x17\x44\x45NK.Proto.Modelfile.V2b\x06proto3')
|
|
28
28
|
|
|
29
29
|
_globals = globals()
|
|
30
30
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -37,7 +37,7 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
37
37
|
_globals['_MODELFILE_ADDITIONALCONTENTENTRY']._loaded_options = None
|
|
38
38
|
_globals['_MODELFILE_ADDITIONALCONTENTENTRY']._serialized_options = b'8\001'
|
|
39
39
|
_globals['_MODELFILE']._serialized_start=37
|
|
40
|
-
_globals['_MODELFILE']._serialized_end=
|
|
40
|
+
_globals['_MODELFILE']._serialized_end=4479
|
|
41
41
|
_globals['_MODELFILE_VERSION']._serialized_start=462
|
|
42
42
|
_globals['_MODELFILE_VERSION']._serialized_end=516
|
|
43
43
|
_globals['_MODELFILE_CONTENT']._serialized_start=519
|
|
@@ -65,29 +65,29 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
65
65
|
_globals['_MODELFILE_INPUT_IMAGEINPUTFORMAT_DIVISIBLEIMAGESIZEREQUIREMENT']._serialized_start=1768
|
|
66
66
|
_globals['_MODELFILE_INPUT_IMAGEINPUTFORMAT_DIVISIBLEIMAGESIZEREQUIREMENT']._serialized_end=1991
|
|
67
67
|
_globals['_MODELFILE_OUTPUT']._serialized_start=2042
|
|
68
|
-
_globals['_MODELFILE_OUTPUT']._serialized_end=
|
|
68
|
+
_globals['_MODELFILE_OUTPUT']._serialized_end=3398
|
|
69
69
|
_globals['_MODELFILE_OUTPUT_IMAGECLASSIFIERSOUTPUTFORMAT']._serialized_start=2521
|
|
70
70
|
_globals['_MODELFILE_OUTPUT_IMAGECLASSIFIERSOUTPUTFORMAT']._serialized_end=2551
|
|
71
71
|
_globals['_MODELFILE_OUTPUT_SEGMENTATIONMAPSOUTPUTFORMAT']._serialized_start=2553
|
|
72
72
|
_globals['_MODELFILE_OUTPUT_SEGMENTATIONMAPSOUTPUTFORMAT']._serialized_end=2638
|
|
73
73
|
_globals['_MODELFILE_OUTPUT_BOUNDINGBOXESOUTPUTFORMAT']._serialized_start=2641
|
|
74
|
-
_globals['_MODELFILE_OUTPUT_BOUNDINGBOXESOUTPUTFORMAT']._serialized_end=
|
|
75
|
-
_globals['_MODELFILE_OUTPUT_BOUNDINGBOXSEGMENTATIONSOUTPUTFORMAT']._serialized_start=
|
|
76
|
-
_globals['_MODELFILE_OUTPUT_BOUNDINGBOXSEGMENTATIONSOUTPUTFORMAT']._serialized_end=
|
|
77
|
-
_globals['_MODELFILE_OUTPUT_OCROUTPUTFORMAT']._serialized_start=
|
|
78
|
-
_globals['_MODELFILE_OUTPUT_OCROUTPUTFORMAT']._serialized_end=
|
|
79
|
-
_globals['_MODELFILE_OUTPUT_OCROUTPUTFORMAT_CHARACTER']._serialized_start=
|
|
80
|
-
_globals['_MODELFILE_OUTPUT_OCROUTPUTFORMAT_CHARACTER']._serialized_end=
|
|
81
|
-
_globals['_MODELFILE_OUTPUT_OCROUTPUTFORMAT_CHARACTER_CHARACTERTYPE']._serialized_start=
|
|
82
|
-
_globals['_MODELFILE_OUTPUT_OCROUTPUTFORMAT_CHARACTER_CHARACTERTYPE']._serialized_end=
|
|
83
|
-
_globals['_MODELFILE_FILEINFO']._serialized_start=
|
|
84
|
-
_globals['_MODELFILE_FILEINFO']._serialized_end=
|
|
85
|
-
_globals['_MODELFILE_FILEINFO_FILETYPE']._serialized_start=
|
|
86
|
-
_globals['_MODELFILE_FILEINFO_FILETYPE']._serialized_end=
|
|
87
|
-
_globals['_MODELFILE_FILEINFO_NETWORKTYPE']._serialized_start=
|
|
88
|
-
_globals['_MODELFILE_FILEINFO_NETWORKTYPE']._serialized_end=
|
|
89
|
-
_globals['_MODELFILE_FILEINFO_PRECISION']._serialized_start=
|
|
90
|
-
_globals['_MODELFILE_FILEINFO_PRECISION']._serialized_end=
|
|
91
|
-
_globals['_MODELFILE_ADDITIONALCONTENTENTRY']._serialized_start=
|
|
92
|
-
_globals['_MODELFILE_ADDITIONALCONTENTENTRY']._serialized_end=
|
|
74
|
+
_globals['_MODELFILE_OUTPUT_BOUNDINGBOXESOUTPUTFORMAT']._serialized_end=2874
|
|
75
|
+
_globals['_MODELFILE_OUTPUT_BOUNDINGBOXSEGMENTATIONSOUTPUTFORMAT']._serialized_start=2876
|
|
76
|
+
_globals['_MODELFILE_OUTPUT_BOUNDINGBOXSEGMENTATIONSOUTPUTFORMAT']._serialized_end=3003
|
|
77
|
+
_globals['_MODELFILE_OUTPUT_OCROUTPUTFORMAT']._serialized_start=3006
|
|
78
|
+
_globals['_MODELFILE_OUTPUT_OCROUTPUTFORMAT']._serialized_end=3377
|
|
79
|
+
_globals['_MODELFILE_OUTPUT_OCROUTPUTFORMAT_CHARACTER']._serialized_start=3134
|
|
80
|
+
_globals['_MODELFILE_OUTPUT_OCROUTPUTFORMAT_CHARACTER']._serialized_end=3377
|
|
81
|
+
_globals['_MODELFILE_OUTPUT_OCROUTPUTFORMAT_CHARACTER_CHARACTERTYPE']._serialized_start=3288
|
|
82
|
+
_globals['_MODELFILE_OUTPUT_OCROUTPUTFORMAT_CHARACTER_CHARACTERTYPE']._serialized_end=3377
|
|
83
|
+
_globals['_MODELFILE_FILEINFO']._serialized_start=3401
|
|
84
|
+
_globals['_MODELFILE_FILEINFO']._serialized_end=4388
|
|
85
|
+
_globals['_MODELFILE_FILEINFO_FILETYPE']._serialized_start=3918
|
|
86
|
+
_globals['_MODELFILE_FILEINFO_FILETYPE']._serialized_end=3986
|
|
87
|
+
_globals['_MODELFILE_FILEINFO_NETWORKTYPE']._serialized_start=3989
|
|
88
|
+
_globals['_MODELFILE_FILEINFO_NETWORKTYPE']._serialized_end=4181
|
|
89
|
+
_globals['_MODELFILE_FILEINFO_PRECISION']._serialized_start=4184
|
|
90
|
+
_globals['_MODELFILE_FILEINFO_PRECISION']._serialized_end=4388
|
|
91
|
+
_globals['_MODELFILE_ADDITIONALCONTENTENTRY']._serialized_start=4390
|
|
92
|
+
_globals['_MODELFILE_ADDITIONALCONTENTENTRY']._serialized_end=4479
|
|
93
93
|
# @@protoc_insertion_point(module_scope)
|
denkproto/modelfile_v2_pb2.pyi
CHANGED
|
@@ -124,7 +124,7 @@ class ModelFile(_message.Message):
|
|
|
124
124
|
image_size: ModelFile.ImageSize
|
|
125
125
|
def __init__(self, image_size: _Optional[_Union[ModelFile.ImageSize, _Mapping]] = ...) -> None: ...
|
|
126
126
|
class BoundingBoxesOutputFormat(_message.Message):
|
|
127
|
-
__slots__ = ("number_of_boxes", "stride", "x1_offset", "y1_offset", "x2_offset", "y2_offset", "confidence_offset", "class_label_index_offset")
|
|
127
|
+
__slots__ = ("number_of_boxes", "stride", "x1_offset", "y1_offset", "x2_offset", "y2_offset", "confidence_offset", "class_label_index_offset", "batch_index_offset")
|
|
128
128
|
NUMBER_OF_BOXES_FIELD_NUMBER: _ClassVar[int]
|
|
129
129
|
STRIDE_FIELD_NUMBER: _ClassVar[int]
|
|
130
130
|
X1_OFFSET_FIELD_NUMBER: _ClassVar[int]
|
|
@@ -133,6 +133,7 @@ class ModelFile(_message.Message):
|
|
|
133
133
|
Y2_OFFSET_FIELD_NUMBER: _ClassVar[int]
|
|
134
134
|
CONFIDENCE_OFFSET_FIELD_NUMBER: _ClassVar[int]
|
|
135
135
|
CLASS_LABEL_INDEX_OFFSET_FIELD_NUMBER: _ClassVar[int]
|
|
136
|
+
BATCH_INDEX_OFFSET_FIELD_NUMBER: _ClassVar[int]
|
|
136
137
|
number_of_boxes: int
|
|
137
138
|
stride: int
|
|
138
139
|
x1_offset: int
|
|
@@ -141,7 +142,8 @@ class ModelFile(_message.Message):
|
|
|
141
142
|
y2_offset: int
|
|
142
143
|
confidence_offset: int
|
|
143
144
|
class_label_index_offset: int
|
|
144
|
-
|
|
145
|
+
batch_index_offset: int
|
|
146
|
+
def __init__(self, number_of_boxes: _Optional[int] = ..., stride: _Optional[int] = ..., x1_offset: _Optional[int] = ..., y1_offset: _Optional[int] = ..., x2_offset: _Optional[int] = ..., y2_offset: _Optional[int] = ..., confidence_offset: _Optional[int] = ..., class_label_index_offset: _Optional[int] = ..., batch_index_offset: _Optional[int] = ...) -> None: ...
|
|
145
147
|
class BoundingBoxSegmentationsOutputFormat(_message.Message):
|
|
146
148
|
__slots__ = ("image_size", "relative_to_bounding_box")
|
|
147
149
|
IMAGE_SIZE_FIELD_NUMBER: _ClassVar[int]
|
|
@@ -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=AqHDp-M0PX88EV1MMkz1_IToW1VDYMDczL653bhq-uk,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
|
|
@@ -15,8 +15,8 @@ denkproto/inference_graph_pb2_grpc.py,sha256=aXPf0w7pIfspkKUKGCr--OtJMOaTfE8Ibeu
|
|
|
15
15
|
denkproto/modelfile_v1_pb2.py,sha256=ulF24nSIspn46DnQKlvR5Po3w-vFCnawuuverAVi3cY,6573
|
|
16
16
|
denkproto/modelfile_v1_pb2.pyi,sha256=gjTbWvg48wqGhyJb5CT0pw3yUZGhO_lSZgL7Ia2aPbY,10685
|
|
17
17
|
denkproto/modelfile_v1_pb2_grpc.py,sha256=ov5B2o4JSYbAfcbbdZr55wEzfGlKI02H-tkvXGXqJVg,893
|
|
18
|
-
denkproto/modelfile_v2_pb2.py,sha256=
|
|
19
|
-
denkproto/modelfile_v2_pb2.pyi,sha256=
|
|
18
|
+
denkproto/modelfile_v2_pb2.py,sha256=ccdYwtqbpRXJGBEmE5RTvm9HIEIcfYOR6U-QH6c2Naw,12415
|
|
19
|
+
denkproto/modelfile_v2_pb2.pyi,sha256=mURpurlLH3cwteYqig5UxyFjVovTIdDbw4Zk-VGWbeQ,19962
|
|
20
20
|
denkproto/modelfile_v2_pb2_grpc.py,sha256=xiC5FeyZDWcucC3uRJ4kllDJmaRayvrzOKIhvg6o1Tc,893
|
|
21
21
|
denkproto/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
22
22
|
denkproto/results_pb2.py,sha256=rBZ4HIHgdKHdASDbF8mTmZ0_xi1ffq3YJ2g_cvzIlhk,14109
|
|
@@ -25,8 +25,8 @@ denkproto/results_pb2_grpc.py,sha256=z-4qcDMjjuPRy7lDtECTtReByVEyz3fjIPES9dMlO58
|
|
|
25
25
|
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
|
-
denkproto/json/ocr_markup.py,sha256=
|
|
29
|
-
denkproto/json/segmentation_markup.py,sha256=
|
|
30
|
-
denkproto-1.0.
|
|
31
|
-
denkproto-1.0.
|
|
32
|
-
denkproto-1.0.
|
|
28
|
+
denkproto/json/ocr_markup.py,sha256=KyOpth9evOekyhTJdZSnYyB9EIyoWbY33sqncb_jBgw,7069
|
|
29
|
+
denkproto/json/segmentation_markup.py,sha256=wB_aKia7MvwfWaamgyCZdxb3hmasLpIOdDiDntuIO2E,21070
|
|
30
|
+
denkproto-1.0.56.dist-info/METADATA,sha256=jzAqxFdZqZHn2haeSmDe6hn6TvWfUvwRsv4n8DIdqIE,110
|
|
31
|
+
denkproto-1.0.56.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
|
32
|
+
denkproto-1.0.56.dist-info/RECORD,,
|
|
File without changes
|