1

I am using OpenCV for stereo calibration of cameras. I have already performed calibration of individual cameras. And according to this documentation, Specifying pre-calculated camera matrices and distortion coefficients requires one to pass the flag CV_CALIB_FIX_INTRINSIC

If the intrinsic parameters can be estimated with high accuracy for each of the cameras individually (for example, using calibrateCamera() ), you are recommended to do so and then pass CV_CALIB_FIX_INTRINSIC flag to the function along with the computed intrinsic parameters.

But how to pass the flags? The values I have tried:

flags="CV_CALIB_FIX_INTRINSIC"
flags=cv2.CV_CALIB_FIX_INTRINSIC
flags=CV_CALIB_FIX_INTRINSIC

I get the following errors (respectively):

TypeError: an integer is required (got type str)
Missing: module cv2 has no attribute CV_CALIB_FIX_INTRINSIC
NameError: name 'CV_CALIB_FIX_INTRINSIC' is not defined
2
  • 3
    I guess cv2.CALIB_FIX_INTRINSIC Commented Mar 17, 2017 at 17:49
  • @Miki Thanks, that worked.! Commented Mar 17, 2017 at 18:02

1 Answer 1

2

The correct name is:

cv2.CALIB_FIX_INTRINSIC
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.