fix the laser point x,y

This commit is contained in:
huangzhenwei2
2026-01-12 20:53:23 +08:00
parent 2a0534ac62
commit a0019b8b0e
3 changed files with 30 additions and 21 deletions

View File

@@ -209,7 +209,7 @@ def compute_laser_position(circle_center, laser_point, radius, method):
if not all([circle_center, radius, method]):
return None, None
cx, cy = circle_center
lx, ly = laser_point
lx, ly = 320, 230
# 根据检测方法动态调整靶心物理半径(简化模型)
circle_r = (radius / 4.0) * 20.0 if method == "模糊" else (68 / 16.0) * 20.0
dx = lx - cx