Less redundant calibration

This commit is contained in:
ck-zhang
2025-02-27 20:05:51 +08:00
parent d4e7e45c01
commit 6ec6368fa2

View File

@@ -69,7 +69,7 @@ def run_9_point_calibration(gaze_estimator, camera_index=0):
pts = [(mx + int(c * (gw / 2)), my + int(r * (gh / 2))) for (r, c) in order]
feats, targs = [], []
pulse_d, cd_d = 1.0, 1.0
for cycle in range(2):
for cycle in range(1):
for x, y in pts:
ps = time.time()
final_radius = 20
@@ -140,7 +140,7 @@ def run_5_point_calibration(gaze_estimator, camera_index=0):
pts.append((x, y))
feats, targs = [], []
pd, cd = 1.0, 1.0
for cycle in range(2):
for cycle in range(1):
for x, y in pts:
ps = time.time()
final_radius = 20