mirror of
https://github.com/EyeTrackVR/EyeTrackVR.git
synced 2025-11-04 14:39:42 +08:00
print cleanup
This commit is contained in:
parent
30077496e3
commit
d310b0a8b9
@ -295,7 +295,6 @@ class EyeProcessor:
|
||||
self.current_algorithm = EyeInfoOrigin.RANSAC
|
||||
|
||||
def BLOBM(self):
|
||||
print("calling")
|
||||
self.rawx, self.rawy, self.thresh = BLOB(self)
|
||||
self.out_x, self.out_y = cal.cal_osc(self, self.rawx, self.rawy)
|
||||
self.current_algorithm = EyeInfoOrigin.BLOB
|
||||
|
||||
@ -288,7 +288,7 @@ class IntensityBasedOpeness:
|
||||
eyeopen = ((intensity - maxp) / (minp - maxp)) #for whatever reason when input and maxp are too close it outputs high
|
||||
|
||||
eyeopen = 1 - eyeopen
|
||||
print(eyeopen, intensity, maxp, minp, x, y)
|
||||
# print(eyeopen, intensity, maxp, minp, x, y)
|
||||
|
||||
if changed and ((time.time() - self.lct) > 5): # save every 5 seconds if something changed to save disk usage
|
||||
self.save()
|
||||
@ -312,6 +312,6 @@ class IntensityBasedOpeness:
|
||||
eyevec = abs(self.prev_val - eyeopen)
|
||||
#print(eyevec)
|
||||
if eyevec > 0.4:
|
||||
print("BLINK LCOK", eyeopen, eyevec)
|
||||
print(intensity)
|
||||
print("BLINK LCOK")
|
||||
|
||||
return eyeopen
|
||||
|
||||
Loading…
Reference in New Issue
Block a user