mirror of
https://github.com/EyeTrackVR/EyeTrackVR.git
synced 2025-11-04 14:39:42 +08:00
Update intensity_eye_open.py
This commit is contained in:
parent
c10f4502e4
commit
7b869abc3b
@ -28,14 +28,17 @@ except:
|
|||||||
#TODO we need more pixel points for smooth operation, lets get this setup in hsrac
|
#TODO we need more pixel points for smooth operation, lets get this setup in hsrac
|
||||||
|
|
||||||
def intense(x, y, frame):
|
def intense(x, y, frame):
|
||||||
upper_x = x + 25
|
# upper_x = x + 25
|
||||||
lower_x = x - 25
|
# lower_x = x - 25
|
||||||
upper_y = y + 25
|
# upper_y = y + 25
|
||||||
lower_y = y - 25
|
# lower_y = y - 25
|
||||||
frame = frame[lower_y:upper_y, lower_x:upper_x]
|
# frame = frame[lower_y:upper_y, lower_x:upper_x]
|
||||||
|
|
||||||
xy = int(str(x) + str(y) + str(x+y))
|
try:
|
||||||
intensity = np.sum(frame)
|
xy = int(str(int(x)) + str(int(y)) + str(int(x)+int(y)))
|
||||||
|
intensity = np.sum(frame)
|
||||||
|
except:
|
||||||
|
return 0.0 #TODO find how on earth a hyphen gets thrown into this
|
||||||
|
|
||||||
changed = False
|
changed = False
|
||||||
try: #max pupil per cord
|
try: #max pupil per cord
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user