Skip to content

Fix: omnidir.calibrate assertion failure in Python bindings (#28462)#4070

Open
Sikandar1310291 wants to merge 1 commit intoopencv:4.xfrom
Sikandar1310291:fix/omnidir-python-type-assertion-28462
Open

Fix: omnidir.calibrate assertion failure in Python bindings (#28462)#4070
Sikandar1310291 wants to merge 1 commit intoopencv:4.xfrom
Sikandar1310291:fix/omnidir-python-type-assertion-28462

Conversation

@Sikandar1310291
Copy link

InputArrayOfArrays::type() and ::depth() don't correctly report element types when called from Python bindings. Changed to use getMat(0).type() and getMat(0).depth() to check the first element's type instead.

Affected functions:

  • cv::omnidir::calibrate
  • cv::omnidir::stereoCalibrate
  • cv::omnidir::internal::computeJacobian
  • cv::omnidir::internal::computeJacobianStereo

Fixes opencv/opencv#28462

Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

  • I agree to contribute to the project under Apache 2 License.
  • To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
  • The PR is proposed to the proper branch
  • There is a reference to the original bug report and related work
  • There is accuracy test, performance test and test data in opencv_extra repository, if applicable
    Patch to opencv_extra has the same branch name.
  • The feature is well documented and sample code can be built with the project CMake

InputArrayOfArrays::type() and ::depth() don't correctly report element
types when called from Python bindings. Changed to use getMat(0).type()
and getMat(0).depth() to check the first element's type instead.

Affected functions:
- cv::omnidir::calibrate
- cv::omnidir::stereoCalibrate
- cv::omnidir::internal::computeJacobian
- cv::omnidir::internal::computeJacobianStereo

Fixes opencv/opencv#28462
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cv2.omnidir.calibrate Assertion Failure

2 participants