scikit-image : 0.19.3
code to reproduce error:
from skimage.measure import LineModelND, ransac
import numpy as np
pts = np.array([[579,298],
[604,276],
[354,241],
[156,240],
[124,157],
[625,105]])
model, inliers = ransac(pts, LineModelND, min_samples=4,residual_threshold=2, max_trials=1000)
error: At least 2 input points needed. at file skimage/measure/fit.py line 92
I haven't faced the same error with other points