mirror of
https://github.com/EyeTrackVR/EyeTrackVR.git
synced 2025-11-04 14:39:42 +08:00
feat: remove prints
This commit is contained in:
parent
db20afda69
commit
446590a7f2
@ -80,7 +80,6 @@ def data2csv(data_u32, filepath):
|
|||||||
with open(filepath, "w", encoding="utf-8") as out_f:
|
with open(filepath, "w", encoding="utf-8") as out_f:
|
||||||
out_f.write("x,y,eyedilation\n")
|
out_f.write("x,y,eyedilation\n")
|
||||||
out_f.writelines(datalines)
|
out_f.writelines(datalines)
|
||||||
print('file write')
|
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
@ -207,7 +206,6 @@ class EllipseBasedPupilDilation:
|
|||||||
self.data[0, -1] = self.maxval
|
self.data[0, -1] = self.maxval
|
||||||
self.data[1:4, -1] = self.now_roi
|
self.data[1:4, -1] = self.now_roi
|
||||||
cv2.imwrite(self.imgfile, u32_1ch_to_u16_3ch(self.data))
|
cv2.imwrite(self.imgfile, u32_1ch_to_u16_3ch(self.data))
|
||||||
print('file write')
|
|
||||||
# print("SAVED: {}".format(self.imgfile))
|
# print("SAVED: {}".format(self.imgfile))
|
||||||
|
|
||||||
def change_roi(self, roiinfo: dict):
|
def change_roi(self, roiinfo: dict):
|
||||||
|
|||||||
@ -101,7 +101,6 @@ def data2csv(data_u32, filepath):
|
|||||||
with open(filepath, "w", encoding="utf-8") as out_f:
|
with open(filepath, "w", encoding="utf-8") as out_f:
|
||||||
out_f.write("x,y,intensity\n")
|
out_f.write("x,y,intensity\n")
|
||||||
out_f.writelines(datalines)
|
out_f.writelines(datalines)
|
||||||
print('file write')
|
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
@ -226,7 +225,6 @@ class IntensityBasedOpeness:
|
|||||||
self.data[0, -1] = self.maxval
|
self.data[0, -1] = self.maxval
|
||||||
self.data[1:4, -1] = self.now_roi
|
self.data[1:4, -1] = self.now_roi
|
||||||
cv2.imwrite(self.imgfile, u32_1ch_to_u16_3ch(self.data))
|
cv2.imwrite(self.imgfile, u32_1ch_to_u16_3ch(self.data))
|
||||||
print('file write')
|
|
||||||
# print("SAVED: {}".format(self.imgfile))
|
# print("SAVED: {}".format(self.imgfile))
|
||||||
|
|
||||||
def change_roi(self, roiinfo: dict):
|
def change_roi(self, roiinfo: dict):
|
||||||
|
|||||||
@ -428,13 +428,13 @@ def RANSAC3D(self, hsrac_en):
|
|||||||
with open("RANSAC_BLINK_LEFT.cfg", "w") as file:
|
with open("RANSAC_BLINK_LEFT.cfg", "w") as file:
|
||||||
for item in self.blink_list:
|
for item in self.blink_list:
|
||||||
file.write(str(item) + "\n")
|
file.write(str(item) + "\n")
|
||||||
print('file write')
|
|
||||||
|
|
||||||
if self.eye_id in [EyeId.RIGHT]:
|
if self.eye_id in [EyeId.RIGHT]:
|
||||||
with open("RANSAC_BLINK_RIGHT.cfg", "w") as file:
|
with open("RANSAC_BLINK_RIGHT.cfg", "w") as file:
|
||||||
for item in self.blink_list:
|
for item in self.blink_list:
|
||||||
file.write(str(item) + "\n")
|
file.write(str(item) + "\n")
|
||||||
print('file write')
|
|
||||||
# print("SAVE")
|
# print("SAVE")
|
||||||
|
|
||||||
# self.blink_list.pop(0)
|
# self.blink_list.pop(0)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user