mirror of
https://github.com/jjaldridge2009/Project_Xs.git
synced 2024-08-17 22:39:37 +02:00
Update rngtool.py
removed offset_time
This commit is contained in:
parent
d8776cdab6
commit
8f2bbe197b
@ -66,7 +66,7 @@ def tracking_blink(roi_x=905, roi_y=750, roi_w=55, roi_h=55)->Tuple[List[int],Li
|
|||||||
if state==CLOSING and time_counter - prev_time>0.7:
|
if state==CLOSING and time_counter - prev_time>0.7:
|
||||||
state = IDLE
|
state = IDLE
|
||||||
cv2.destroyAllWindows()
|
cv2.destroyAllWindows()
|
||||||
return (blinks, intervals, offset_time)
|
return (blinks, intervals)
|
||||||
|
|
||||||
def tracking_poke_blink(img, roi_x, roi_y, roi_w, roi_h, size = 60)->Tuple[List[int],List[int],float]:
|
def tracking_poke_blink(img, roi_x, roi_y, roi_w, roi_h, size = 60)->Tuple[List[int],List[int],float]:
|
||||||
"""measuring the type and interval of pokemon's blinks
|
"""measuring the type and interval of pokemon's blinks
|
||||||
@ -121,7 +121,7 @@ def tracking_poke_blink(img, roi_x, roi_y, roi_w, roi_h, size = 60)->Tuple[List[
|
|||||||
state = IDLE
|
state = IDLE
|
||||||
cv2.destroyAllWindows()
|
cv2.destroyAllWindows()
|
||||||
video.release()
|
video.release()
|
||||||
return (intervals, offset_time)
|
return intervals
|
||||||
|
|
||||||
def recov(blinks:List[int],intervals:List[int])->Xorshift:
|
def recov(blinks:List[int],intervals:List[int])->Xorshift:
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user