mirror of
https://github.com/EyeTrackVR/EyeTrackVR.git
synced 2025-11-04 14:39:42 +08:00
cleanup
This commit is contained in:
parent
d94c71c26f
commit
d2d934c496
@ -284,7 +284,6 @@ class EyeProcessor:
|
||||
self.rawx, self.rawy, self.eyeopen = self.er_daddy.run(self.current_image_gray)
|
||||
# Daddy also uses a one euro filter, so I'll have to use it twice, but I'm not going to think too much about it.
|
||||
self.out_x, self.out_y = cal_osc(self, self.rawx, self.rawy)
|
||||
|
||||
self.current_algorithm = InformationOrigin.DADDY
|
||||
|
||||
def HSRACM(self):
|
||||
@ -294,23 +293,11 @@ class EyeProcessor:
|
||||
if self.prev_x is None:
|
||||
self.prev_x = self.rawx
|
||||
self.prev_y = self.rawy
|
||||
#print(self.prev_x, self.prev_y, cx, cy)
|
||||
# #filter values with too much movement
|
||||
# if (cx - self.prev_x) <= 45 and (cy - self.prev_y) <= 45 :
|
||||
# self.prev_x = cx
|
||||
# self.prev_y = cy
|
||||
# self.eyeopen = intense(cx, cy, uncropframe, self.eye_id)
|
||||
# self.eyeopen = self.ibo.intense(cx,cy,uncropframe)
|
||||
self.out_x, self.out_y = cal_osc(self, self.rawx, self.rawy)
|
||||
#print(self.eyeoffx, self.eyeopen)
|
||||
self.current_algorithm = InformationOrigin.HSRAC
|
||||
|
||||
# else:
|
||||
# print("EYE MOVED TOO FAST")
|
||||
# self.output_images_and_update(thresh, EyeInformation(InformationOrigin.HSRAC, 0, 0, 0, False))
|
||||
def HSFM(self):
|
||||
# todo: added process to initialise er_hsf when resolution changes
|
||||
|
||||
self.rawx, self.rawy, self.thresh = self.er_hsf.run(self.current_image_gray)
|
||||
self.eyeopen = self.ibo.intense(self.rawx, self.rawy, self.current_image_gray)
|
||||
self.out_x, self.out_y = cal_osc(self, self.rawx, self.rawy)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user