mirror of
https://github.com/EyeTrackVR/EyeTrackVR.git
synced 2025-11-04 14:39:42 +08:00
HSF/HSRAC update settings when changed in settings tab
This commit is contained in:
parent
d2d934c496
commit
57f854ec44
@ -167,6 +167,7 @@ class EyeProcessor:
|
||||
self.out_x = 0.0
|
||||
self.rawx = 0.0
|
||||
self.rawy = 0.0
|
||||
self.eyeopen = 0.7
|
||||
#blink
|
||||
self.max_ints = []
|
||||
self.max_int = 0
|
||||
@ -259,7 +260,7 @@ class EyeProcessor:
|
||||
|
||||
if self.settings.gui_IBO:
|
||||
self.eyeopen = self.ibo.intense(self.rawx, self.rawy, self.current_image)
|
||||
if self.eyeopen < 0.35: #threshold so the eye fully closes
|
||||
if self.eyeopen < 0.35: #threshold so the eye fully closes #todo: make this a setting?
|
||||
self.eyeopen = 0.0
|
||||
|
||||
if self.settings.gui_IBO and self.settings.gui_BLINK:
|
||||
@ -353,6 +354,9 @@ class EyeProcessor:
|
||||
self.thirdalgo = None
|
||||
self.fourthalgo = None
|
||||
algolist = [None, None, None, None, None]
|
||||
|
||||
self.er_hsrac = None #clear HSF values when page is opened to correctly reflect setting changes
|
||||
self.er_hsf = None
|
||||
|
||||
#set algo priorities
|
||||
if self.settings.gui_HSF:
|
||||
|
||||
@ -119,7 +119,6 @@ def to_gray(frame):
|
||||
@lru_cache(maxsize=lru_maxsize_vvs)
|
||||
def get_frameint_empty_array(frame_shape, pad, x_step, y_step, r_in, r_out):
|
||||
frame_int_dtype = np.intc
|
||||
|
||||
frame_pad = np.empty((frame_shape[0] + (pad * 2), frame_shape[1] + (pad * 2)), dtype=np.uint8)
|
||||
|
||||
row, col = frame_pad.shape
|
||||
|
||||
@ -479,8 +479,8 @@ class SettingsWidget:
|
||||
self.config.gui_IBO = values[self.gui_IBO]
|
||||
changed = True
|
||||
|
||||
if self.config.gui_HSF_radius != values[self.gui_HSF_radius]:
|
||||
self.config.gui_HSF_radius = values[self.gui_HSF_radius]
|
||||
if self.config.gui_HSF_radius != int(values[self.gui_HSF_radius]):
|
||||
self.config.gui_HSF_radius = int(values[self.gui_HSF_radius])
|
||||
changed = True
|
||||
|
||||
if self.config.gui_flip_y_axis != values[self.gui_flip_y_axis]:
|
||||
|
||||
@ -18,7 +18,7 @@ win10toast_click = [
|
||||
{ version = "^0.1.2", platform = 'win32' }
|
||||
]
|
||||
onnxruntime = "^1.13.1"
|
||||
|
||||
serial = "~0.0.97"
|
||||
[tool.poetry.group.dev.dependencies]
|
||||
black = "^22.10.0"
|
||||
pyinstaller = "^5.6.2"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user