Ask Your Question
0

Fisheye calibration image not detecting any corners

asked 2020-08-21 14:12:00 -0600

updated 2020-08-21 20:50:51 -0600

supra56 gravatar image

I have the following barrel-distorted fisheye image:

image description

And I am finding the corners in it using the findChessboardCorners function as follows:

cv2.findChessboardCorners(gray, CHECKERBOARD, cv2.CALIB_CB_ADAPTIVE_THRESH | cv2.CALIB_CB_FAST_CHECK | cv2.CALIB_CB_NORMALIZE_IMAGE)

However, I'm getting no corners, i.e., this function returns False, None. Why is that?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
-1

answered 2020-08-22 01:56:12 -0600

berak gravatar image

updated 2020-08-22 01:59:52 -0600

your image is not a valid chessboard (but some artificially rendered 3d cube (?) with a chessboard pattern), you cannot use it

please e.g. print out the one from here and take a real image with your camera

edit flag offensive delete link more
-2

answered 2020-08-21 20:50:07 -0600

supra56 gravatar image

Change this:

cv2.findChessboardCorners(gray, CHECKERBOARD, cv2.CALIB_CB_ADAPTIVE_THRESH | cv2.CALIB_CB_FAST_CHECK | cv2.CALIB_CB_NORMALIZE_IMAGE)

to:

ret, corners = cv2.findChessboardCorners(gray, CHECKERBOARD, cv2.CALIB_CB_ADAPTIVE_THRESH + cv2.CALIB_CB_FAST_CHECK + cv2.CALIB_CB_NORMALIZE_IMAGE)
edit flag offensive delete link more

Comments

supra, no, that's so silly !

berak gravatar imageberak ( 2020-08-22 01:57:59 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2020-08-21 14:12:00 -0600

Seen: 433 times

Last updated: Aug 22 '20