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.


make sure install dependencies:
install core dependencies install other dependencies
install helper apps call right parameters related python 3 libraries , folders (copy , paste including ..): if utilise 4 core processors, should take around 45 minutes, not 10 hours on raspberry pi 2.
follow: http://www.linuxcircle.com/2015/05/18/o ... erry-pi-2/
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
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
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
code: select all
sudo make install
raspberrypi
Comments
Post a Comment