更新charge振捣判断

This commit is contained in:
琉璃月光
2026-03-10 16:51:57 +08:00
parent 235101b4d8
commit 5d79686ba0
15 changed files with 268873 additions and 0 deletions

View File

@ -75,10 +75,12 @@ def largest_intersect_cc(mask_bin, bbox):
# RANSAC 直线拟合(核心新增)
# ---------------------------
def fit_line_ransac(pts, max_dist=2.5, min_inliers_ratio=0.6, iters=100):
"""
拟合 x = m*y + b
pts: Nx2 -> [x,y]
"""
np.random.seed(42)
if len(pts) < 10:
return None