Refactored
This commit is contained in:
+2
-2
@@ -4,7 +4,7 @@ import numpy as np
|
||||
import imutils as im
|
||||
|
||||
IMG_SCALE_UP = 4
|
||||
TEMPLATE_SEARCH_AREA = 0.5
|
||||
TEMPLATE_MATCH_OVERLAP = 0.5
|
||||
|
||||
(major_ver, minor_ver, subminor_ver) = cv2.__version__.split('.')
|
||||
print(cv2.__version__)
|
||||
@@ -136,7 +136,7 @@ if not ok:
|
||||
sys.exit()
|
||||
|
||||
bbox_init = cv2.selectROI("Frame", frame_init, False)
|
||||
bbox_template = bbox_extend(bbox_init, TEMPLATE_SEARCH_AREA)
|
||||
bbox_template = bbox_extend(bbox_init, TEMPLATE_MATCH_OVERLAP)
|
||||
image_template = process_image_bbox(image_crop(frame_init, bbox_template))
|
||||
ref = Reference(image_template)
|
||||
ref_center = ref.set()
|
||||
|
||||
Reference in New Issue
Block a user