mirror of
https://github.com/jjaldridge2009/Project_Xs.git
synced 2024-11-19 17:02:33 +01:00
remove old resize function
This commit is contained in:
parent
ae45bb9d6a
commit
1da0d5e519
@ -64,11 +64,6 @@ def tracking_blink(img, roi_x, roi_y, roi_w, roi_h, th = 0.9, size = 40, Monitor
|
|||||||
tk_window.monitor_tk = None
|
tk_window.monitor_tk = None
|
||||||
exit()
|
exit()
|
||||||
_, frame = video.read()
|
_, frame = video.read()
|
||||||
if not MonitorWindow:
|
|
||||||
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()
|
time_counter = time.perf_counter()
|
||||||
roi = cv2.cvtColor(frame[roi_y:roi_y+roi_h,roi_x:roi_x+roi_w],cv2.COLOR_RGB2GRAY)
|
roi = cv2.cvtColor(frame[roi_y:roi_y+roi_h,roi_x:roi_x+roi_w],cv2.COLOR_RGB2GRAY)
|
||||||
if (roi==prev_roi).all():
|
if (roi==prev_roi).all():
|
||||||
@ -129,7 +124,6 @@ def tracking_blink(img, roi_x, roi_y, roi_w, roi_h, th = 0.9, size = 40, Monitor
|
|||||||
tk_window.monitor_tk = frame_tk
|
tk_window.monitor_tk = frame_tk
|
||||||
tk_window.monitor_display['image'] = tk_window.monitor_tk
|
tk_window.monitor_display['image'] = tk_window.monitor_tk
|
||||||
last_frame_tk = frame_tk
|
last_frame_tk = frame_tk
|
||||||
|
|
||||||
if state!=IDLE and time_counter - prev_time>0.7:
|
if state!=IDLE and time_counter - prev_time>0.7:
|
||||||
state = IDLE
|
state = IDLE
|
||||||
if tk_window == None:
|
if tk_window == None:
|
||||||
@ -226,11 +220,6 @@ def tracking_poke_blink(img, roi_x, roi_y, roi_w, roi_h, size = 64, th = 0.85, M
|
|||||||
tk_window.monitor_tk = None
|
tk_window.monitor_tk = None
|
||||||
exit()
|
exit()
|
||||||
_, frame = video.read()
|
_, frame = video.read()
|
||||||
if not MonitorWindow:
|
|
||||||
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()
|
time_counter = time.perf_counter()
|
||||||
|
|
||||||
roi = cv2.cvtColor(frame[roi_y:roi_y+roi_h,roi_x:roi_x+roi_w],cv2.COLOR_RGB2GRAY)
|
roi = cv2.cvtColor(frame[roi_y:roi_y+roi_h,roi_x:roi_x+roi_w],cv2.COLOR_RGB2GRAY)
|
||||||
|
Loading…
Reference in New Issue
Block a user