refine the triangle algo

This commit is contained in:
gcw_4spBpAfv
2026-04-21 21:14:12 +08:00
parent ba5ca7e0b3
commit 1bace88f37
7 changed files with 143 additions and 13 deletions

View File

@@ -166,7 +166,7 @@ def analyze_shot(frame, laser_point=None):
tri = tri_result.get('data', {})
if tri.get('ok'):
logger.info(f"[TRI] end {datetime.now()}")
logger.info(f"[TRI] end {datetime.now()} — 使用三角形结果(dx={tri['dx_cm']:.2f},dy={tri['dy_cm']:.2f}cm)")
return {
"success": True,
"result_img": frame,