mirror of
https://github.com/EyeTrackVR/EyeTrackVR.git
synced 2025-11-04 14:39:42 +08:00
remove debug print, add t & e back
This commit is contained in:
parent
c97c498d62
commit
ea33273b73
@ -147,10 +147,8 @@ def circle_crop(self):
|
|||||||
avg_color_per_row = np.average(self.current_image, axis=0)
|
avg_color_per_row = np.average(self.current_image, axis=0)
|
||||||
avg_color = np.average(avg_color_per_row, axis=0)
|
avg_color = np.average(avg_color_per_row, axis=0)
|
||||||
ar, ag, ab = avg_color
|
ar, ag, ab = avg_color
|
||||||
print(cct)
|
|
||||||
if cct == 0:
|
if cct == 0:
|
||||||
# try:
|
try:
|
||||||
|
|
||||||
ht, wd = self.current_image_gray.shape[:2]
|
ht, wd = self.current_image_gray.shape[:2]
|
||||||
radius = int(float(self.lkg_projected_sphere["axes"][0]))
|
radius = int(float(self.lkg_projected_sphere["axes"][0]))
|
||||||
self.xc = int(float(self.lkg_projected_sphere["center"][0]))
|
self.xc = int(float(self.lkg_projected_sphere["center"][0]))
|
||||||
@ -169,9 +167,9 @@ def circle_crop(self):
|
|||||||
# combine the two masked images
|
# combine the two masked images
|
||||||
self.current_image_gray = cv2.add(masked_img, masked_color)
|
self.current_image_gray = cv2.add(masked_img, masked_color)
|
||||||
return self.current_image_gray
|
return self.current_image_gray
|
||||||
# except:
|
except:
|
||||||
# return self.current_image_gray
|
return self.current_image_gray
|
||||||
# pass
|
pass
|
||||||
else:
|
else:
|
||||||
cct = cct - 1
|
cct = cct - 1
|
||||||
return self.current_image_gray
|
return self.current_image_gray
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user