0

I am currently writing a script that helps me translate points to camera data in Autodesk Maya 2023. You can install python libraries like numpy and scipy into Maya like this:

"C:\Program Files\Autodesk\Maya2023\bin\mayapy.exe" -m pip install --user numpy
"C:\Program Files\Autodesk\Maya2023\bin\mayapy.exe" -m pip install --user scipy

and that works great, but I can not install opencv. My code works great inside of Python but because I can not use opencv in Maya I can not get it to work there.

I reduced all my code to just one opencv function I still need. But unfortunately it's a big one.

cv2.solvePnP()

Do you know of a python function someone wrote that works kinda like the solvePnP function from opencv but not using opencv?

Any help would be appreciated. Thanks

nasun
  • 1
  • 2
  • look into https://ieeexplore.ieee.org/document/6143946 or any referenced [here](https://docs.opencv.org/3.4/d9/d0c/group__calib3d.html#ga357634492a94efe8858d0ce1509da869)/[here](https://docs.opencv.org/4.x/d5/d1f/calib3d_solvePnP.html), then use numpy/scipy primitives to build the algorithm -- I'd recommend tagging with those libraries if you want that kind of eyes on your problem. you might get responses from `maya`-watchers but general `autodesk` seems less useful. – Christoph Rackwitz Oct 08 '22 at 14:04

0 Answers0