mirror of
https://github.com/jjaldridge2009/Project_Xs.git
synced 2024-10-03 22:07:09 +02:00
name issue
This commit is contained in:
parent
0ad16dbbcc
commit
929e07308b
@ -65,8 +65,8 @@ def tracking_blink(img, roi_x, roi_y, roi_w, roi_h, th = 0.9, size = 40, Monitor
|
||||
exit()
|
||||
_, frame = video.read()
|
||||
if not MonitorWindow:
|
||||
size = frame.shape[::-1]
|
||||
_, fw, fh = size
|
||||
f_size = frame.shape[::-1]
|
||||
_, fw, fh = f_size
|
||||
if fw >= 1920:
|
||||
frame = cv2.resize(frame,(960,round(fh/fw*960)))
|
||||
time_counter = time.perf_counter()
|
||||
@ -217,8 +217,8 @@ def tracking_poke_blink(img, roi_x, roi_y, roi_w, roi_h, size = 60, MonitorWindo
|
||||
while len(intervals)<size:
|
||||
_, frame = video.read()
|
||||
if not MonitorWindow:
|
||||
size = frame.shape[::-1]
|
||||
_, fw, fh = size
|
||||
f_size = frame.shape[::-1]
|
||||
_, fw, fh = f_size
|
||||
if fw >= 1920:
|
||||
frame = cv2.resize(frame,(960,round(fh/fw*960)))
|
||||
time_counter = time.perf_counter()
|
||||
|
Loading…
Reference in New Issue
Block a user