更新charge振捣判断
This commit is contained in:
@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user