Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
OpenCV contrib Python
#1
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?
Reply
#2
(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)
Reply
#3
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?
Reply
#4
(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.
Reply
#5
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?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Problem with using opencv in python Raunak1023984765 21 1,675 Feb-21-2024, 04:25 PM
Last Post: Pedroski55
  Help for the shortest way to install a suitable version of Python, Numpy, and OpenCV. Ezzat 2 2,279 Dec-23-2021, 12:34 PM
Last Post: snippsat
  Python OpenCV window not opening in fullscreen mode Zman350x 0 3,292 Apr-29-2021, 07:54 PM
Last Post: Zman350x
  Python IDE doesn't see opencv-python package on my Jetson Nano sadhaonnisa 1 3,338 Oct-11-2020, 01:04 AM
Last Post: Larz60+
  pip3 install opencv-python fails on 'skbuild' Pedroski55 2 5,710 Sep-15-2020, 11:33 AM
Last Post: snippsat
  python and openCV installation dejhost 16 10,815 Aug-04-2020, 02:23 AM
Last Post: snippsat
  libhdf5 library error (opencv-contrib) 1979gian 0 1,940 May-11-2020, 06:10 PM
Last Post: 1979gian
  How to detect the text above lines using OpenCV in Python pframe 0 2,513 Apr-14-2020, 09:53 AM
Last Post: pframe
  Developing Python with OpenCV into an Android App AviationFreak 1 6,817 Sep-29-2019, 08:55 AM
Last Post: wavic
  python opencv grayscale conversion error Spandora 1 9,571 May-26-2019, 10:43 AM
Last Post: heiner55

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020