OpenCV on python3 - import cv fail - Raspberry Pi Forums


i tried install opencv3 rc1 in rpi doing make , make install take me 10 hours when try import cv2 or import cv3 didnt work(import error: no module named cv2), work python2, used ccmake following tutorials, screen ccmake use default configuration.
image
image

make sure install dependencies:

install core dependencies

code: select all

 sudo apt-get install cmake python3-dev python3.2-dev python3-numpy gcc gcc-c++ build-essential cmake-curses-gui  
install other dependencies

code: select all

 sudo apt-get -y install pkg-config libpng12-0 libpng12-dev libpng++-dev libpng3 libpnglite-dev zlib1g-dbg zlib1g zlib1g-dev pngtools libtiff4-dev libtiff4 libtiffxx0c2 libtiff-tools libeigen3-dev

install helper apps

code: select all

 sudo apt-get -y install libjpeg8 libjpeg8-dev libjpeg8-dbg libjpeg-progs ffmpeg libavcodec-dev libavcodec53 libavformat53 libavformat-dev libgstreamer0.10-0-dbg libgstreamer0.10-0 libgstreamer0.10-dev libxine1-ffmpeg libxine-dev libxine1-bin libunicap2 libunicap2-dev swig libv4l-0 libv4l-dev libpython3.2 libgtk2.0-dev 
call right parameters related python 3 libraries , folders (copy , paste including ..):

code: select all

cmake -d cmake_build_type=release -d cmake_install_prefix=$(python3 -c "import sys; print(sys.prefix)") -d python_executable=$(which python3) .. 

code: select all

make -j4 
if utilise 4 core processors, should take around 45 minutes, not 10 hours on raspberry pi 2.

code: select all

sudo make install 
follow: http://www.linuxcircle.com/2015/05/18/o ... erry-pi-2/


raspberrypi



Comments

Popular posts from this blog

opencv3, tbb and rasp pi 2 - Raspberry Pi Forums

small ethernet problem - Raspberry Pi Forums

Multithumb configuration params not working? - Joomla! Forum - community, help and support