denkproto 1.0.14rc0__py3-none-any.whl → 1.0.22__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/DENKbuffer_pb2.py +70 -66
- denkproto/DENKbuffer_pb2.pyi +48 -55
- denkproto/DENKbuffer_pb2_grpc.py +24 -0
- denkproto/ImageAnalysis_ProtobufMessages_pb2.py +108 -94
- denkproto/ImageAnalysis_ProtobufMessages_pb2.pyi +21 -2
- denkproto/ImageAnalysis_ProtobufMessages_pb2_grpc.py +24 -0
- denkproto/__about__.py +1 -1
- denkproto/denkcache_pb2.py +56 -0
- denkproto/denkcache_pb2.pyi +69 -0
- denkproto/denkcache_pb2_grpc.py +269 -0
- denkproto/modelfile_v1_pb2.py +31 -19
- denkproto/modelfile_v1_pb2.pyi +26 -4
- denkproto/modelfile_v1_pb2_grpc.py +24 -0
- denkproto/modelfile_v2_pb2.py +70 -56
- denkproto/modelfile_v2_pb2.pyi +11 -2
- denkproto/modelfile_v2_pb2_grpc.py +24 -0
- denkproto/results_pb2.py +60 -44
- denkproto/results_pb2.pyi +112 -6
- denkproto/results_pb2_grpc.py +24 -0
- {denkproto-1.0.14rc0.dist-info → denkproto-1.0.22.dist-info}/METADATA +2 -2
- denkproto-1.0.22.dist-info/RECORD +24 -0
- {denkproto-1.0.14rc0.dist-info → denkproto-1.0.22.dist-info}/WHEEL +1 -1
- denkproto-1.0.14rc0.dist-info/RECORD +0 -16
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
|
+
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
|
+
import grpc
|
|
4
|
+
import warnings
|
|
5
|
+
|
|
6
|
+
import denkcache_pb2 as denkcache__pb2
|
|
7
|
+
|
|
8
|
+
GRPC_GENERATED_VERSION = '1.68.0'
|
|
9
|
+
GRPC_VERSION = grpc.__version__
|
|
10
|
+
_version_not_supported = False
|
|
11
|
+
|
|
12
|
+
try:
|
|
13
|
+
from grpc._utilities import first_version_is_lower
|
|
14
|
+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
|
|
15
|
+
except ImportError:
|
|
16
|
+
_version_not_supported = True
|
|
17
|
+
|
|
18
|
+
if _version_not_supported:
|
|
19
|
+
raise RuntimeError(
|
|
20
|
+
f'The grpc package installed is at version {GRPC_VERSION},'
|
|
21
|
+
+ f' but the generated code in denkcache_pb2_grpc.py depends on'
|
|
22
|
+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
|
23
|
+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
|
24
|
+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class DENKcacheStub(object):
|
|
29
|
+
"""Missing associated documentation comment in .proto file."""
|
|
30
|
+
|
|
31
|
+
def __init__(self, channel):
|
|
32
|
+
"""Constructor.
|
|
33
|
+
|
|
34
|
+
Args:
|
|
35
|
+
channel: A grpc.Channel.
|
|
36
|
+
"""
|
|
37
|
+
self.PingPong = channel.unary_unary(
|
|
38
|
+
'/denkcache.DENKcache/PingPong',
|
|
39
|
+
request_serializer=denkcache__pb2.PingPongRequest.SerializeToString,
|
|
40
|
+
response_deserializer=denkcache__pb2.PingPongResponse.FromString,
|
|
41
|
+
_registered_method=True)
|
|
42
|
+
self.HasObjectCached = channel.unary_unary(
|
|
43
|
+
'/denkcache.DENKcache/HasObjectCached',
|
|
44
|
+
request_serializer=denkcache__pb2.HasObjectCachedRequest.SerializeToString,
|
|
45
|
+
response_deserializer=denkcache__pb2.HasObjectCachedResponse.FromString,
|
|
46
|
+
_registered_method=True)
|
|
47
|
+
self.ObjectExists = channel.unary_unary(
|
|
48
|
+
'/denkcache.DENKcache/ObjectExists',
|
|
49
|
+
request_serializer=denkcache__pb2.ObjectExistsRequest.SerializeToString,
|
|
50
|
+
response_deserializer=denkcache__pb2.ObjectExistsResponse.FromString,
|
|
51
|
+
_registered_method=True)
|
|
52
|
+
self.GetObject = channel.unary_unary(
|
|
53
|
+
'/denkcache.DENKcache/GetObject',
|
|
54
|
+
request_serializer=denkcache__pb2.GetObjectRequest.SerializeToString,
|
|
55
|
+
response_deserializer=denkcache__pb2.GetObjectResponse.FromString,
|
|
56
|
+
_registered_method=True)
|
|
57
|
+
self.GetCachedObject = channel.unary_unary(
|
|
58
|
+
'/denkcache.DENKcache/GetCachedObject',
|
|
59
|
+
request_serializer=denkcache__pb2.GetCachedObjectRequest.SerializeToString,
|
|
60
|
+
response_deserializer=denkcache__pb2.GetCachedObjectResponse.FromString,
|
|
61
|
+
_registered_method=True)
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
class DENKcacheServicer(object):
|
|
65
|
+
"""Missing associated documentation comment in .proto file."""
|
|
66
|
+
|
|
67
|
+
def PingPong(self, request, context):
|
|
68
|
+
"""Missing associated documentation comment in .proto file."""
|
|
69
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
70
|
+
context.set_details('Method not implemented!')
|
|
71
|
+
raise NotImplementedError('Method not implemented!')
|
|
72
|
+
|
|
73
|
+
def HasObjectCached(self, request, context):
|
|
74
|
+
"""Missing associated documentation comment in .proto file."""
|
|
75
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
76
|
+
context.set_details('Method not implemented!')
|
|
77
|
+
raise NotImplementedError('Method not implemented!')
|
|
78
|
+
|
|
79
|
+
def ObjectExists(self, request, context):
|
|
80
|
+
"""Missing associated documentation comment in .proto file."""
|
|
81
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
82
|
+
context.set_details('Method not implemented!')
|
|
83
|
+
raise NotImplementedError('Method not implemented!')
|
|
84
|
+
|
|
85
|
+
def GetObject(self, request, context):
|
|
86
|
+
"""Missing associated documentation comment in .proto file."""
|
|
87
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
88
|
+
context.set_details('Method not implemented!')
|
|
89
|
+
raise NotImplementedError('Method not implemented!')
|
|
90
|
+
|
|
91
|
+
def GetCachedObject(self, request, context):
|
|
92
|
+
"""Missing associated documentation comment in .proto file."""
|
|
93
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
94
|
+
context.set_details('Method not implemented!')
|
|
95
|
+
raise NotImplementedError('Method not implemented!')
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
def add_DENKcacheServicer_to_server(servicer, server):
|
|
99
|
+
rpc_method_handlers = {
|
|
100
|
+
'PingPong': grpc.unary_unary_rpc_method_handler(
|
|
101
|
+
servicer.PingPong,
|
|
102
|
+
request_deserializer=denkcache__pb2.PingPongRequest.FromString,
|
|
103
|
+
response_serializer=denkcache__pb2.PingPongResponse.SerializeToString,
|
|
104
|
+
),
|
|
105
|
+
'HasObjectCached': grpc.unary_unary_rpc_method_handler(
|
|
106
|
+
servicer.HasObjectCached,
|
|
107
|
+
request_deserializer=denkcache__pb2.HasObjectCachedRequest.FromString,
|
|
108
|
+
response_serializer=denkcache__pb2.HasObjectCachedResponse.SerializeToString,
|
|
109
|
+
),
|
|
110
|
+
'ObjectExists': grpc.unary_unary_rpc_method_handler(
|
|
111
|
+
servicer.ObjectExists,
|
|
112
|
+
request_deserializer=denkcache__pb2.ObjectExistsRequest.FromString,
|
|
113
|
+
response_serializer=denkcache__pb2.ObjectExistsResponse.SerializeToString,
|
|
114
|
+
),
|
|
115
|
+
'GetObject': grpc.unary_unary_rpc_method_handler(
|
|
116
|
+
servicer.GetObject,
|
|
117
|
+
request_deserializer=denkcache__pb2.GetObjectRequest.FromString,
|
|
118
|
+
response_serializer=denkcache__pb2.GetObjectResponse.SerializeToString,
|
|
119
|
+
),
|
|
120
|
+
'GetCachedObject': grpc.unary_unary_rpc_method_handler(
|
|
121
|
+
servicer.GetCachedObject,
|
|
122
|
+
request_deserializer=denkcache__pb2.GetCachedObjectRequest.FromString,
|
|
123
|
+
response_serializer=denkcache__pb2.GetCachedObjectResponse.SerializeToString,
|
|
124
|
+
),
|
|
125
|
+
}
|
|
126
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
127
|
+
'denkcache.DENKcache', rpc_method_handlers)
|
|
128
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
129
|
+
server.add_registered_method_handlers('denkcache.DENKcache', rpc_method_handlers)
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
# This class is part of an EXPERIMENTAL API.
|
|
133
|
+
class DENKcache(object):
|
|
134
|
+
"""Missing associated documentation comment in .proto file."""
|
|
135
|
+
|
|
136
|
+
@staticmethod
|
|
137
|
+
def PingPong(request,
|
|
138
|
+
target,
|
|
139
|
+
options=(),
|
|
140
|
+
channel_credentials=None,
|
|
141
|
+
call_credentials=None,
|
|
142
|
+
insecure=False,
|
|
143
|
+
compression=None,
|
|
144
|
+
wait_for_ready=None,
|
|
145
|
+
timeout=None,
|
|
146
|
+
metadata=None):
|
|
147
|
+
return grpc.experimental.unary_unary(
|
|
148
|
+
request,
|
|
149
|
+
target,
|
|
150
|
+
'/denkcache.DENKcache/PingPong',
|
|
151
|
+
denkcache__pb2.PingPongRequest.SerializeToString,
|
|
152
|
+
denkcache__pb2.PingPongResponse.FromString,
|
|
153
|
+
options,
|
|
154
|
+
channel_credentials,
|
|
155
|
+
insecure,
|
|
156
|
+
call_credentials,
|
|
157
|
+
compression,
|
|
158
|
+
wait_for_ready,
|
|
159
|
+
timeout,
|
|
160
|
+
metadata,
|
|
161
|
+
_registered_method=True)
|
|
162
|
+
|
|
163
|
+
@staticmethod
|
|
164
|
+
def HasObjectCached(request,
|
|
165
|
+
target,
|
|
166
|
+
options=(),
|
|
167
|
+
channel_credentials=None,
|
|
168
|
+
call_credentials=None,
|
|
169
|
+
insecure=False,
|
|
170
|
+
compression=None,
|
|
171
|
+
wait_for_ready=None,
|
|
172
|
+
timeout=None,
|
|
173
|
+
metadata=None):
|
|
174
|
+
return grpc.experimental.unary_unary(
|
|
175
|
+
request,
|
|
176
|
+
target,
|
|
177
|
+
'/denkcache.DENKcache/HasObjectCached',
|
|
178
|
+
denkcache__pb2.HasObjectCachedRequest.SerializeToString,
|
|
179
|
+
denkcache__pb2.HasObjectCachedResponse.FromString,
|
|
180
|
+
options,
|
|
181
|
+
channel_credentials,
|
|
182
|
+
insecure,
|
|
183
|
+
call_credentials,
|
|
184
|
+
compression,
|
|
185
|
+
wait_for_ready,
|
|
186
|
+
timeout,
|
|
187
|
+
metadata,
|
|
188
|
+
_registered_method=True)
|
|
189
|
+
|
|
190
|
+
@staticmethod
|
|
191
|
+
def ObjectExists(request,
|
|
192
|
+
target,
|
|
193
|
+
options=(),
|
|
194
|
+
channel_credentials=None,
|
|
195
|
+
call_credentials=None,
|
|
196
|
+
insecure=False,
|
|
197
|
+
compression=None,
|
|
198
|
+
wait_for_ready=None,
|
|
199
|
+
timeout=None,
|
|
200
|
+
metadata=None):
|
|
201
|
+
return grpc.experimental.unary_unary(
|
|
202
|
+
request,
|
|
203
|
+
target,
|
|
204
|
+
'/denkcache.DENKcache/ObjectExists',
|
|
205
|
+
denkcache__pb2.ObjectExistsRequest.SerializeToString,
|
|
206
|
+
denkcache__pb2.ObjectExistsResponse.FromString,
|
|
207
|
+
options,
|
|
208
|
+
channel_credentials,
|
|
209
|
+
insecure,
|
|
210
|
+
call_credentials,
|
|
211
|
+
compression,
|
|
212
|
+
wait_for_ready,
|
|
213
|
+
timeout,
|
|
214
|
+
metadata,
|
|
215
|
+
_registered_method=True)
|
|
216
|
+
|
|
217
|
+
@staticmethod
|
|
218
|
+
def GetObject(request,
|
|
219
|
+
target,
|
|
220
|
+
options=(),
|
|
221
|
+
channel_credentials=None,
|
|
222
|
+
call_credentials=None,
|
|
223
|
+
insecure=False,
|
|
224
|
+
compression=None,
|
|
225
|
+
wait_for_ready=None,
|
|
226
|
+
timeout=None,
|
|
227
|
+
metadata=None):
|
|
228
|
+
return grpc.experimental.unary_unary(
|
|
229
|
+
request,
|
|
230
|
+
target,
|
|
231
|
+
'/denkcache.DENKcache/GetObject',
|
|
232
|
+
denkcache__pb2.GetObjectRequest.SerializeToString,
|
|
233
|
+
denkcache__pb2.GetObjectResponse.FromString,
|
|
234
|
+
options,
|
|
235
|
+
channel_credentials,
|
|
236
|
+
insecure,
|
|
237
|
+
call_credentials,
|
|
238
|
+
compression,
|
|
239
|
+
wait_for_ready,
|
|
240
|
+
timeout,
|
|
241
|
+
metadata,
|
|
242
|
+
_registered_method=True)
|
|
243
|
+
|
|
244
|
+
@staticmethod
|
|
245
|
+
def GetCachedObject(request,
|
|
246
|
+
target,
|
|
247
|
+
options=(),
|
|
248
|
+
channel_credentials=None,
|
|
249
|
+
call_credentials=None,
|
|
250
|
+
insecure=False,
|
|
251
|
+
compression=None,
|
|
252
|
+
wait_for_ready=None,
|
|
253
|
+
timeout=None,
|
|
254
|
+
metadata=None):
|
|
255
|
+
return grpc.experimental.unary_unary(
|
|
256
|
+
request,
|
|
257
|
+
target,
|
|
258
|
+
'/denkcache.DENKcache/GetCachedObject',
|
|
259
|
+
denkcache__pb2.GetCachedObjectRequest.SerializeToString,
|
|
260
|
+
denkcache__pb2.GetCachedObjectResponse.FromString,
|
|
261
|
+
options,
|
|
262
|
+
channel_credentials,
|
|
263
|
+
insecure,
|
|
264
|
+
call_credentials,
|
|
265
|
+
compression,
|
|
266
|
+
wait_for_ready,
|
|
267
|
+
timeout,
|
|
268
|
+
metadata,
|
|
269
|
+
_registered_method=True)
|
denkproto/modelfile_v1_pb2.py
CHANGED
|
@@ -1,12 +1,22 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
3
4
|
# source: modelfile-v1.proto
|
|
4
|
-
# Protobuf Python Version:
|
|
5
|
+
# Protobuf Python Version: 5.28.1
|
|
5
6
|
"""Generated protocol buffer code."""
|
|
6
7
|
from google.protobuf import descriptor as _descriptor
|
|
7
8
|
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
8
10
|
from google.protobuf import symbol_database as _symbol_database
|
|
9
11
|
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
5,
|
|
15
|
+
28,
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
|
+
'modelfile-v1.proto'
|
|
19
|
+
)
|
|
10
20
|
# @@protoc_insertion_point(imports)
|
|
11
21
|
|
|
12
22
|
_sym_db = _symbol_database.Default()
|
|
@@ -14,32 +24,34 @@ _sym_db = _symbol_database.Default()
|
|
|
14
24
|
|
|
15
25
|
|
|
16
26
|
|
|
17
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x12modelfile-v1.proto\x12\x0cmodelfile.v1\"J\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\"]\n\x0c\x46\x65\x61tureClass\x12\x13\n\x0b\x66\x65\x61ture_uid\x18\x01 \x01(\t\x12\x14\n\x0c\x66\x65\x61ture_name\x18\x02 \x01(\t\x12\r\n\x05\x63olor\x18\x03 \x03(\x05\x12\x13\n\x0b\x66\x65\x61ture_tag\x18\x04 \x01(\t\"\
|
|
27
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x12modelfile-v1.proto\x12\x0cmodelfile.v1\"J\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\"]\n\x0c\x46\x65\x61tureClass\x12\x13\n\x0b\x66\x65\x61ture_uid\x18\x01 \x01(\t\x12\x14\n\x0c\x66\x65\x61ture_name\x18\x02 \x01(\t\x12\r\n\x05\x63olor\x18\x03 \x03(\x05\x12\x13\n\x0b\x66\x65\x61ture_tag\x18\x04 \x01(\t\"\x97\x02\n\nInputField\x12\r\n\x05label\x18\x01 \x01(\t\x12(\n\x08\x64\x61tatype\x18\x02 \x01(\x0e\x32\x16.modelfile.v1.DataType\x12\x0f\n\x07image_w\x18\x03 \x01(\x05\x12\x0f\n\x07image_h\x18\x04 \x01(\x05\x12\x0f\n\x07image_c\x18\x05 \x01(\x05\x12\x38\n\x12region_of_interest\x18\x06 \x03(\x0b\x32\x1c.modelfile.v1.RegionFromEdge\x12\x18\n\x10training_image_w\x18\x08 \x01(\x05\x12\x18\n\x10training_image_h\x18\t \x01(\x05\x12\x18\n\x10training_image_c\x18\n \x01(\x05\x12\x15\n\rmoving_window\x18\x0b \x01(\x08\"U\n\x19OcrFormatRestrictionBlock\x12\x1c\n\x14number_of_characters\x18\x01 \x01(\r\x12\x1a\n\x12\x61llowed_characters\x18\x02 \x01(\x0c\"\xbd\x02\n\x0bOutputField\x12\r\n\x05label\x18\x01 \x01(\t\x12(\n\x08\x64\x61tatype\x18\x02 \x01(\x0e\x32\x16.modelfile.v1.DataType\x12\r\n\x05\x63olor\x18\x03 \x03(\x05\x12\x0f\n\x07image_w\x18\x04 \x01(\x05\x12\x0f\n\x07image_h\x18\x05 \x01(\x05\x12\x0f\n\x07image_c\x18\x06 \x01(\x05\x12+\n\x07\x63lasses\x18\x07 \x03(\x0b\x32\x1a.modelfile.v1.FeatureClass\x12\x13\n\x0bmax_queries\x18\x08 \x01(\x05\x12\x0f\n\x07\x63harset\x18\t \x01(\x0c\x12\x16\n\x0e\x63harset_filter\x18\n \x01(\x0c\x12H\n\x17ocr_format_restrictions\x18\x0b \x03(\x0b\x32\'.modelfile.v1.OcrFormatRestrictionBlock\"\xdd\x04\n\tModelFile\x12\x18\n\x10protocol_version\x18\x01 \x01(\t\x12\r\n\x05model\x18\x02 \x01(\x0c\x12;\n\x12\x63ompression_method\x18\x03 \x01(\x0e\x32\x1f.modelfile.v1.CompressionMethod\x12\x1a\n\x12model_hash_blake2b\x18\x04 \x01(\t\x12\'\n\x05input\x18\x05 \x03(\x0b\x32\x18.modelfile.v1.InputField\x12)\n\x06output\x18\x06 \x03(\x0b\x32\x19.modelfile.v1.OutputField\x12\x0e\n\x06tenant\x18\x07 \x01(\t\x12\x13\n\x0bmodel_label\x18\x08 \x01(\t\x12\x11\n\tmodel_tag\x18\t \x01(\t\x12\x10\n\x08model_id\x18\n \x01(\x05\x12\x1a\n\x12\x63reation_timestamp\x18\x0b \x01(\x03\x12\x11\n\ttenant_id\x18\x0c \x01(\t\x12\x1a\n\x12onnx_version_major\x18\r \x01(\x05\x12\x1a\n\x12onnx_version_minor\x18\x0e \x01(\x05\x12\x11\n\tmodel_uid\x18\x0f \x01(\t\x12\x17\n\x0fmodel_timestamp\x18\x10 \x01(\x03\x12+\n\nmodel_type\x18\x11 \x01(\x0e\x32\x17.modelfile.v1.ModelType\x12\x38\n\x11model_output_type\x18\x12 \x01(\x0e\x32\x1d.modelfile.v1.ModelOutputType\x12)\n\tfile_type\x18\x13 \x01(\x0e\x32\x16.modelfile.v1.FileType\x12\x0b\n\x03key\x18\x14 \x01(\t*?\n\x08\x46ileType\x12\x0c\n\x08\x46T_MODEL\x10\x00\x12\x13\n\x0f\x46T_VIZIOTIX_KEY\x10\x01\x12\x10\n\x0c\x46T_ZXING_KEY\x10\x02*D\n\x11\x43ompressionMethod\x12\x08\n\x04NONE\x10\x00\x12\x08\n\x04GZIP\x10\x01\x12\x08\n\x04ZLIB\x10\x02\x12\x08\n\x04LZMA\x10\x03\x12\x07\n\x03\x42Z2\x10\x04*\xea\x02\n\x08\x44\x61taType\x12\x0e\n\nSCALAR_INT\x10\x00\x12\x10\n\x0cSCALAR_FLOAT\x10\x01\x12\x11\n\rIMAGE_RAW_INT\x10\x02\x12\x13\n\x0fIMAGE_RAW_FLOAT\x10\x03\x12\r\n\tIMAGE_PNG\x10\x04\x12\r\n\tIMAGE_JPG\x10\x05\x12\r\n\tIMAGE_TIF\x10\x06\x12\x15\n\x11\x42OUNDING_BOX_LIST\x10\x07\x12\"\n\x1e\x42OUNDING_BOX_LIST_SEGMENTATION\x10\x08\x12+\n\'BOUNDING_BOX_LIST_SEGMENTATION_HIGH_RES\x10\t\x12!\n\x1dOPTICAL_CHARACTER_RECOGNITION\x10\n\x12\x0c\n\x08\x42\x41RCODES\x10\x0b\x12&\n\"BOUNDING_BOX_LIST_HALF_ORIENTATION\x10\x0c\x12&\n\"BOUNDING_BOX_LIST_FULL_ORIENTATION\x10\r*-\n\tModelType\x12\x0b\n\x07REGULAR\x10\x00\x12\x13\n\x0f\x41REA_DEFINITION\x10\x01*\xbd\x02\n\x0fModelOutputType\x12\x10\n\x0cTYPE_UNKNOWN\x10\x00\x12\x17\n\x13TYPE_CLASSIFICATION\x10\x01\x12\x15\n\x11TYPE_SEGMENTATION\x10\x02\x12\x1e\n\x1aTYPE_INSTANCE_SEGMENTATION\x10\x03\x12\x19\n\x15TYPE_OBJECT_DETECTION\x10\x04\x12\x1a\n\x16TYPE_ANOMALY_DETECTION\x10\x05\x12&\n\"TYPE_OPTICAL_CHARACTER_RECOGNITION\x10\x06\x12\x11\n\rTYPE_BARCODES\x10\x07\x12*\n&TYPE_OBJECT_DETECTION_HALF_ORIENTATION\x10\x08\x12*\n&TYPE_OBJECT_DETECTION_FULL_ORIENTATION\x10\tB5Z\x19\x64\x65nkproto-go/modelfile/v1\xaa\x02\x17\x44\x45NK.Proto.Modelfile.V1b\x06proto3')
|
|
18
28
|
|
|
19
29
|
_globals = globals()
|
|
20
30
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
21
31
|
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'modelfile_v1_pb2', _globals)
|
|
22
|
-
if _descriptor._USE_C_DESCRIPTORS
|
|
23
|
-
_globals['DESCRIPTOR'].
|
|
32
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
24
34
|
_globals['DESCRIPTOR']._serialized_options = b'Z\031denkproto-go/modelfile/v1\252\002\027DENK.Proto.Modelfile.V1'
|
|
25
|
-
_globals['_FILETYPE']._serialized_start=
|
|
26
|
-
_globals['_FILETYPE']._serialized_end=
|
|
27
|
-
_globals['_COMPRESSIONMETHOD']._serialized_start=
|
|
28
|
-
_globals['_COMPRESSIONMETHOD']._serialized_end=
|
|
29
|
-
_globals['_DATATYPE']._serialized_start=
|
|
30
|
-
_globals['_DATATYPE']._serialized_end=
|
|
31
|
-
_globals['_MODELTYPE']._serialized_start=
|
|
32
|
-
_globals['_MODELTYPE']._serialized_end=
|
|
33
|
-
_globals['_MODELOUTPUTTYPE']._serialized_start=
|
|
34
|
-
_globals['_MODELOUTPUTTYPE']._serialized_end=
|
|
35
|
+
_globals['_FILETYPE']._serialized_start=1504
|
|
36
|
+
_globals['_FILETYPE']._serialized_end=1567
|
|
37
|
+
_globals['_COMPRESSIONMETHOD']._serialized_start=1569
|
|
38
|
+
_globals['_COMPRESSIONMETHOD']._serialized_end=1637
|
|
39
|
+
_globals['_DATATYPE']._serialized_start=1640
|
|
40
|
+
_globals['_DATATYPE']._serialized_end=2002
|
|
41
|
+
_globals['_MODELTYPE']._serialized_start=2004
|
|
42
|
+
_globals['_MODELTYPE']._serialized_end=2049
|
|
43
|
+
_globals['_MODELOUTPUTTYPE']._serialized_start=2052
|
|
44
|
+
_globals['_MODELOUTPUTTYPE']._serialized_end=2369
|
|
35
45
|
_globals['_REGIONFROMEDGE']._serialized_start=36
|
|
36
46
|
_globals['_REGIONFROMEDGE']._serialized_end=110
|
|
37
47
|
_globals['_FEATURECLASS']._serialized_start=112
|
|
38
48
|
_globals['_FEATURECLASS']._serialized_end=205
|
|
39
49
|
_globals['_INPUTFIELD']._serialized_start=208
|
|
40
|
-
_globals['_INPUTFIELD']._serialized_end=
|
|
41
|
-
_globals['
|
|
42
|
-
_globals['
|
|
43
|
-
_globals['
|
|
44
|
-
_globals['
|
|
50
|
+
_globals['_INPUTFIELD']._serialized_end=487
|
|
51
|
+
_globals['_OCRFORMATRESTRICTIONBLOCK']._serialized_start=489
|
|
52
|
+
_globals['_OCRFORMATRESTRICTIONBLOCK']._serialized_end=574
|
|
53
|
+
_globals['_OUTPUTFIELD']._serialized_start=577
|
|
54
|
+
_globals['_OUTPUTFIELD']._serialized_end=894
|
|
55
|
+
_globals['_MODELFILE']._serialized_start=897
|
|
56
|
+
_globals['_MODELFILE']._serialized_end=1502
|
|
45
57
|
# @@protoc_insertion_point(module_scope)
|
denkproto/modelfile_v1_pb2.pyi
CHANGED
|
@@ -34,6 +34,8 @@ class DataType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
|
34
34
|
BOUNDING_BOX_LIST_SEGMENTATION_HIGH_RES: _ClassVar[DataType]
|
|
35
35
|
OPTICAL_CHARACTER_RECOGNITION: _ClassVar[DataType]
|
|
36
36
|
BARCODES: _ClassVar[DataType]
|
|
37
|
+
BOUNDING_BOX_LIST_HALF_ORIENTATION: _ClassVar[DataType]
|
|
38
|
+
BOUNDING_BOX_LIST_FULL_ORIENTATION: _ClassVar[DataType]
|
|
37
39
|
|
|
38
40
|
class ModelType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
39
41
|
__slots__ = ()
|
|
@@ -49,6 +51,9 @@ class ModelOutputType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
|
49
51
|
TYPE_OBJECT_DETECTION: _ClassVar[ModelOutputType]
|
|
50
52
|
TYPE_ANOMALY_DETECTION: _ClassVar[ModelOutputType]
|
|
51
53
|
TYPE_OPTICAL_CHARACTER_RECOGNITION: _ClassVar[ModelOutputType]
|
|
54
|
+
TYPE_BARCODES: _ClassVar[ModelOutputType]
|
|
55
|
+
TYPE_OBJECT_DETECTION_HALF_ORIENTATION: _ClassVar[ModelOutputType]
|
|
56
|
+
TYPE_OBJECT_DETECTION_FULL_ORIENTATION: _ClassVar[ModelOutputType]
|
|
52
57
|
FT_MODEL: FileType
|
|
53
58
|
FT_VIZIOTIX_KEY: FileType
|
|
54
59
|
FT_ZXING_KEY: FileType
|
|
@@ -69,6 +74,8 @@ BOUNDING_BOX_LIST_SEGMENTATION: DataType
|
|
|
69
74
|
BOUNDING_BOX_LIST_SEGMENTATION_HIGH_RES: DataType
|
|
70
75
|
OPTICAL_CHARACTER_RECOGNITION: DataType
|
|
71
76
|
BARCODES: DataType
|
|
77
|
+
BOUNDING_BOX_LIST_HALF_ORIENTATION: DataType
|
|
78
|
+
BOUNDING_BOX_LIST_FULL_ORIENTATION: DataType
|
|
72
79
|
REGULAR: ModelType
|
|
73
80
|
AREA_DEFINITION: ModelType
|
|
74
81
|
TYPE_UNKNOWN: ModelOutputType
|
|
@@ -78,6 +85,9 @@ TYPE_INSTANCE_SEGMENTATION: ModelOutputType
|
|
|
78
85
|
TYPE_OBJECT_DETECTION: ModelOutputType
|
|
79
86
|
TYPE_ANOMALY_DETECTION: ModelOutputType
|
|
80
87
|
TYPE_OPTICAL_CHARACTER_RECOGNITION: ModelOutputType
|
|
88
|
+
TYPE_BARCODES: ModelOutputType
|
|
89
|
+
TYPE_OBJECT_DETECTION_HALF_ORIENTATION: ModelOutputType
|
|
90
|
+
TYPE_OBJECT_DETECTION_FULL_ORIENTATION: ModelOutputType
|
|
81
91
|
|
|
82
92
|
class RegionFromEdge(_message.Message):
|
|
83
93
|
__slots__ = ("left", "right", "top", "bottom")
|
|
@@ -104,7 +114,7 @@ class FeatureClass(_message.Message):
|
|
|
104
114
|
def __init__(self, feature_uid: _Optional[str] = ..., feature_name: _Optional[str] = ..., color: _Optional[_Iterable[int]] = ..., feature_tag: _Optional[str] = ...) -> None: ...
|
|
105
115
|
|
|
106
116
|
class InputField(_message.Message):
|
|
107
|
-
__slots__ = ("label", "datatype", "image_w", "image_h", "image_c", "region_of_interest", "training_image_w", "training_image_h", "training_image_c")
|
|
117
|
+
__slots__ = ("label", "datatype", "image_w", "image_h", "image_c", "region_of_interest", "training_image_w", "training_image_h", "training_image_c", "moving_window")
|
|
108
118
|
LABEL_FIELD_NUMBER: _ClassVar[int]
|
|
109
119
|
DATATYPE_FIELD_NUMBER: _ClassVar[int]
|
|
110
120
|
IMAGE_W_FIELD_NUMBER: _ClassVar[int]
|
|
@@ -114,6 +124,7 @@ class InputField(_message.Message):
|
|
|
114
124
|
TRAINING_IMAGE_W_FIELD_NUMBER: _ClassVar[int]
|
|
115
125
|
TRAINING_IMAGE_H_FIELD_NUMBER: _ClassVar[int]
|
|
116
126
|
TRAINING_IMAGE_C_FIELD_NUMBER: _ClassVar[int]
|
|
127
|
+
MOVING_WINDOW_FIELD_NUMBER: _ClassVar[int]
|
|
117
128
|
label: str
|
|
118
129
|
datatype: DataType
|
|
119
130
|
image_w: int
|
|
@@ -123,10 +134,19 @@ class InputField(_message.Message):
|
|
|
123
134
|
training_image_w: int
|
|
124
135
|
training_image_h: int
|
|
125
136
|
training_image_c: int
|
|
126
|
-
|
|
137
|
+
moving_window: bool
|
|
138
|
+
def __init__(self, label: _Optional[str] = ..., datatype: _Optional[_Union[DataType, str]] = ..., image_w: _Optional[int] = ..., image_h: _Optional[int] = ..., image_c: _Optional[int] = ..., region_of_interest: _Optional[_Iterable[_Union[RegionFromEdge, _Mapping]]] = ..., training_image_w: _Optional[int] = ..., training_image_h: _Optional[int] = ..., training_image_c: _Optional[int] = ..., moving_window: bool = ...) -> None: ...
|
|
139
|
+
|
|
140
|
+
class OcrFormatRestrictionBlock(_message.Message):
|
|
141
|
+
__slots__ = ("number_of_characters", "allowed_characters")
|
|
142
|
+
NUMBER_OF_CHARACTERS_FIELD_NUMBER: _ClassVar[int]
|
|
143
|
+
ALLOWED_CHARACTERS_FIELD_NUMBER: _ClassVar[int]
|
|
144
|
+
number_of_characters: int
|
|
145
|
+
allowed_characters: bytes
|
|
146
|
+
def __init__(self, number_of_characters: _Optional[int] = ..., allowed_characters: _Optional[bytes] = ...) -> None: ...
|
|
127
147
|
|
|
128
148
|
class OutputField(_message.Message):
|
|
129
|
-
__slots__ = ("label", "datatype", "color", "image_w", "image_h", "image_c", "classes", "max_queries", "charset", "charset_filter")
|
|
149
|
+
__slots__ = ("label", "datatype", "color", "image_w", "image_h", "image_c", "classes", "max_queries", "charset", "charset_filter", "ocr_format_restrictions")
|
|
130
150
|
LABEL_FIELD_NUMBER: _ClassVar[int]
|
|
131
151
|
DATATYPE_FIELD_NUMBER: _ClassVar[int]
|
|
132
152
|
COLOR_FIELD_NUMBER: _ClassVar[int]
|
|
@@ -137,6 +157,7 @@ class OutputField(_message.Message):
|
|
|
137
157
|
MAX_QUERIES_FIELD_NUMBER: _ClassVar[int]
|
|
138
158
|
CHARSET_FIELD_NUMBER: _ClassVar[int]
|
|
139
159
|
CHARSET_FILTER_FIELD_NUMBER: _ClassVar[int]
|
|
160
|
+
OCR_FORMAT_RESTRICTIONS_FIELD_NUMBER: _ClassVar[int]
|
|
140
161
|
label: str
|
|
141
162
|
datatype: DataType
|
|
142
163
|
color: _containers.RepeatedScalarFieldContainer[int]
|
|
@@ -147,7 +168,8 @@ class OutputField(_message.Message):
|
|
|
147
168
|
max_queries: int
|
|
148
169
|
charset: bytes
|
|
149
170
|
charset_filter: bytes
|
|
150
|
-
|
|
171
|
+
ocr_format_restrictions: _containers.RepeatedCompositeFieldContainer[OcrFormatRestrictionBlock]
|
|
172
|
+
def __init__(self, label: _Optional[str] = ..., datatype: _Optional[_Union[DataType, str]] = ..., color: _Optional[_Iterable[int]] = ..., image_w: _Optional[int] = ..., image_h: _Optional[int] = ..., image_c: _Optional[int] = ..., classes: _Optional[_Iterable[_Union[FeatureClass, _Mapping]]] = ..., max_queries: _Optional[int] = ..., charset: _Optional[bytes] = ..., charset_filter: _Optional[bytes] = ..., ocr_format_restrictions: _Optional[_Iterable[_Union[OcrFormatRestrictionBlock, _Mapping]]] = ...) -> None: ...
|
|
151
173
|
|
|
152
174
|
class ModelFile(_message.Message):
|
|
153
175
|
__slots__ = ("protocol_version", "model", "compression_method", "model_hash_blake2b", "input", "output", "tenant", "model_label", "model_tag", "model_id", "creation_timestamp", "tenant_id", "onnx_version_major", "onnx_version_minor", "model_uid", "model_timestamp", "model_type", "model_output_type", "file_type", "key")
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
|
+
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
|
+
import grpc
|
|
4
|
+
import warnings
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
GRPC_GENERATED_VERSION = '1.68.0'
|
|
8
|
+
GRPC_VERSION = grpc.__version__
|
|
9
|
+
_version_not_supported = False
|
|
10
|
+
|
|
11
|
+
try:
|
|
12
|
+
from grpc._utilities import first_version_is_lower
|
|
13
|
+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
|
|
14
|
+
except ImportError:
|
|
15
|
+
_version_not_supported = True
|
|
16
|
+
|
|
17
|
+
if _version_not_supported:
|
|
18
|
+
raise RuntimeError(
|
|
19
|
+
f'The grpc package installed is at version {GRPC_VERSION},'
|
|
20
|
+
+ f' but the generated code in modelfile_v1_pb2_grpc.py depends on'
|
|
21
|
+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
|
22
|
+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
|
23
|
+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
|
24
|
+
)
|