Python Forum

Full Version: OpenCV contrib Python
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I want to learn programming (python) by realising different structured light 3D scanning methods. For this I wanted to try the structured_light contrib in openCV.
Contrary to docs.opencv.org/trunk/d1/d90/group__structured__light.html
there is no sinusoidal method in the structured_light group
installed via pypi.python.org/pypi/opencv-contrib-python .
Does anyone can help me where to find help with this issue?
(Aug-15-2017, 01:33 PM)peta Wrote: [ -> ]installed via pypi.python.org/pypi/opencv-contrib-python .
You look at this for Windows or this for Linux. 
You see that pip is an important part to get up and running.
opencv-contrib-python distribute wheel that you install with pip.

So as a examlple:
This will install openCV into Windows Python 3.6 which is 64-bit.
pip install opencv_contrib_python-3.3.0.9-cp36-cp36m-win_amd64.whl (md5)

This install openCV into Linux Python 3.6 which is 64-bit.
sudo pip3 install opencv_contrib_python-3.3.0.9-cp36-cp36m-manylinux1_x86_64.whl (md5)
iam using windows 10 64 bit. I already managed to install the opencv_contrib_python.
But when I type dir:
dir(cv2.structured_light)
['DECODE_3D_UNDERWORLD',
 'FAPS',
 'FTP',
 'GrayCodePattern_create',
 'PSP',
 '__doc__',
 '__loader__',
 '__name__',
 '__package__',
 '__spec__']
there is no sinusoidal pattern, like I would expect because of:
github.com/opencv/opencv_contrib/tree/master/modules/structured_light/src

Is dir the wrong command to show the Method?
(Aug-15-2017, 02:13 PM)peta Wrote: [ -> ]Is dir the wrong command to show the Method?
Dir is okay,but it easier with Ipython or ptpython.
Like is ptpython that i use most show all method show automatic when type cv2. --> show all method/function under cv2.
Same with Ipython just has to push Tab after cv2.
(Aug-15-2017, 02:13 PM)peta Wrote: [ -> ]github.com/opencv/opencv_contrib/tree/master/modules/structured_light/src
It can be under other import or name,there should be documentation for this.
Usually you shall not look at GitHub Repo and try to find method name that is used.
Ok there is no sinusoidal pattern method for 3D scanning in Python on the web. Do you think i can manage as a beginner to wrap the existing C++ code, so i can use it on python?