Commit 65f71eca authored by Laurent Claustre's avatar Laurent Claustre

reset RoI on beammark fix

parent 0f1a97e1
Pipeline #17942 passed with stages
in 1 minute and 39 seconds
......@@ -255,10 +255,10 @@ class BVWebserver:
self.cameras_running[camera][0].image_roi = (int(bottle.request.query.x),int(bottle.request.query.y), \
int(bottle.request.query.w),int(bottle.request.query.h))
# check and update beammark if possible
if int(bottle.request.query.w) == 0 and int(bottle.request.query.h):
if int(bottle.request.query.w) == 0 and int(bottle.request.query.h) == 0:
# RoI has been reset, so up scale beammark position
bm_x = bm_x + image_roi[2]
bm_y = bm_y + image_roi[3]
bm_x = bm_x + image_roi[0]
bm_y = bm_y + image_roi[1]
else:
if bm_x in x_range and bm_y in y_range:
# new RoI, so down scale beammark position
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment