Opencv:abs_max < threshold in function 'cv::fisheye::stereoCalibrate'

when I use cv2.fisheye.stereoCalibrate to calibrate fisheye camera ,I met a problem.

rms, K_left, D_left, K_right, D_right, rvecs, tvecs = \
    cv2.fisheye.stereoCalibrate(objPoints, imgPointsLeft, imgPointsRight, K_left, D_left, K_right, D_right, imgShape,
                                rvecs,
                                tvecs, flags=calibration_flags, criteria=criteria)
cv2.error: OpenCV(4.5.4) D:\a\opencv-python\opencv-python\opencv\modules\calib3d\src\fisheye.cpp:1051: error: (-215:Assertion failed) abs_max < threshold in function 'cv::fisheye::stereoCalibrate'

I solve the problem by deleting some images ,but it is not convenient to filter the images individually.Is there any other way to find these images

Hi,

I’ve the same problem. It seems to be caused by opencv/modules/calib3d/src/fisheye.cpp at 94d5ad09ffdba016ad4985b5e73cc84fc5c4e9dc · opencv/opencv · GitHub

Any idea how to ensure the “goodness” of the stereo pairs before calling this function?