ransac
Browse files- aimodel.py +1 -1
aimodel.py
CHANGED
@@ -241,7 +241,7 @@ def read_meter(img:Image.Image|str|Path, fl, fl_ft):
|
|
241 |
X = np.concatenate([kg_cm2_theta, psi_theta])
|
242 |
data = np.stack([X, Y], axis=1)
|
243 |
# run ransac to robustly fit a line model
|
244 |
-
lm, inliers = ransac(data, LineModelND, min_samples=
|
245 |
residual_threshold=15,
|
246 |
max_trials=2)
|
247 |
|
|
|
241 |
X = np.concatenate([kg_cm2_theta, psi_theta])
|
242 |
data = np.stack([X, Y], axis=1)
|
243 |
# run ransac to robustly fit a line model
|
244 |
+
lm, inliers = ransac(data, LineModelND, min_samples=3,
|
245 |
residual_threshold=15,
|
246 |
max_trials=2)
|
247 |
|