Coder Social home page Coder Social logo

Comments (8)

weidinger-c avatar weidinger-c commented on July 22, 2024 2
image_points = cv2.projectPoints(..., None)

no unfortunately that does not work. Then I still get an object containing the points (1st array) and the jacobian matrix (2nd array).
image

from opencv-python.

weidinger-c avatar weidinger-c commented on July 22, 2024 1

https://docs.opencv.org/4.x/d9/d0c/group__calib3d.html#ga1019495a2c8d1743ed5cc23fa0daff8c
The python call always returns a jacobian based on the documenation?
Python:
cv.projectPoints( objectPoints, rvec, tvec, cameraMatrix, distCoeffs[, imagePoints[, jacobian[, aspectRatio]]] ) -> imagePoints, jacobian

from opencv-python.

weidinger-c avatar weidinger-c commented on July 22, 2024 1

@asmorkalov I guess there should be an option to calculate the jacobian or pass the None argument correctly to the C++ implementation?

from opencv-python.

asmorkalov avatar asmorkalov commented on July 22, 2024

The statement is not correct. Jacobians output is optional and has NoArray() value by default. In Python, it means that you get function overload without the output at all. Internally the function checks, if output is needed and calculates it on demand only.
See https://github.com/opencv/opencv/blob/c71d4952733a0e1dd1f88ac87066c802f1119d97/modules/calib3d/src/calibration.cpp#L879 and https://github.com/opencv/opencv/blob/c71d4952733a0e1dd1f88ac87066c802f1119d97/modules/calib3d/src/calibration.cpp#L918.

from opencv-python.

weidinger-c avatar weidinger-c commented on July 22, 2024

@asmorkalov Thanks for the reply. Could you please tell me how to call the python function correctly then? I have not been able to get a result, that does not contain the jacobian matrix

from opencv-python.

asmorkalov avatar asmorkalov commented on July 22, 2024

You can try None as the function parameter as empty OutputArray.

from opencv-python.

weidinger-c avatar weidinger-c commented on July 22, 2024

No that does not work ("Expression cannot be assignment target")

image

from opencv-python.

asmorkalov avatar asmorkalov commented on July 22, 2024
image_points = cv2.projectPoints(..., None)

from opencv-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.