mirror of
https://github.com/EyeTrackVR/EyeTrackVR.git
synced 2025-11-04 14:39:42 +08:00
correct frame shape
This commit is contained in:
parent
a3657a223f
commit
1045f7b180
@ -162,8 +162,8 @@ class IntensityBasedOpeness:
|
|||||||
changed = False
|
changed = False
|
||||||
newval_flg = False
|
newval_flg = False
|
||||||
oob = False
|
oob = False
|
||||||
if int_x >= frame.shape[0]:
|
if int_x >= frame.shape[1]:
|
||||||
int_x = frame.shape[0] - 1
|
int_x = frame.shape[1] - 1
|
||||||
obb = True
|
obb = True
|
||||||
print('CAUGHT X OUT OF BOUNDS')
|
print('CAUGHT X OUT OF BOUNDS')
|
||||||
|
|
||||||
@ -171,8 +171,8 @@ class IntensityBasedOpeness:
|
|||||||
int_x = True
|
int_x = True
|
||||||
print('CAUGHT X UNDER BOUNDS')
|
print('CAUGHT X UNDER BOUNDS')
|
||||||
|
|
||||||
if int_y >= frame.shape[1]:
|
if int_y >= frame.shape[0]:
|
||||||
int_y = frame.shape[1] - 1
|
int_y = frame.shape[0] - 1
|
||||||
oob = True
|
oob = True
|
||||||
print('CAUGHT Y OUT OF BOUNDS')
|
print('CAUGHT Y OUT OF BOUNDS')
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user