Skip to content

Commit c8e4816

Browse files
committed
keep consistent on polygon data
1 parent d0ab112 commit c8e4816

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

mlapi.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -230,13 +230,6 @@ def post(self):
230230
g.log.Debug (1, f'Calling detect streams with {stream} and {stream_options} and ml_overrides={ml_overrides} ml_options={ml_options}')
231231
#print (f'************************ {args}')
232232
matched_data,all_matches = m.detect_stream(stream=stream, options=stream_options, ml_overrides=ml_overrides)
233-
234-
if matched_data['polygons']:
235-
local_polygons = matched_data['polygons']
236-
g.logger.Debug(4,'Using returned polygons from detectSequence as it may have been rescaled')
237-
else:
238-
local_polygons=g.polygons
239-
240233

241234
if matched_data['image_dimensions']:
242235
oldh =matched_data['image_dimensions']['original'][0]
@@ -252,7 +245,6 @@ def post(self):
252245
resp_obj= {
253246
'matched_data': matched_data,
254247
'all_matches': all_matches,
255-
'polygons': local_polygons
256248
}
257249
g.log.Debug (1, 'Returning {}'.format(resp_obj))
258250
return resp_obj

modules/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
__version__ = "2.2.8"
1+
__version__ = "2.2.9"
22
VERSION=__version__

0 commit comments

Comments
 (0)