diff --git a/.gitignore b/.gitignore index e3b36ac..9d13be2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /cpp_ext/build/ /.cursor/ /dist/ +.idea \ No newline at end of file diff --git a/t11_v2.15.25_20260807_174012.zip b/t11_v2.15.25_20260807_174012.zip deleted file mode 100644 index 809cbe1..0000000 Binary files a/t11_v2.15.25_20260807_174012.zip and /dev/null differ diff --git a/vision.py b/vision.py index 79bf995..d3181a2 100644 --- a/vision.py +++ b/vision.py @@ -631,7 +631,7 @@ def detect_circle_v3(frame, laser_point=None, img_cv=None): min_r = min(rc["radius"], yellow_radius) max_r = max(rc["radius"], yellow_radius) size_ratio = min_r / max_r if max_r > 0 else 0 - if dist_centers < max_dist and size_ratio > 0.3: + if dist_centers < max_dist and size_ratio >= 0.3: if logger: logger.info(f"[target] -> 找到匹配的红圈: 黄心({yellow_center}), " f"红心({rc['center']}), 距离:{dist_centers:.1f}, "