32

While the Raspberry Pi is not exactly a powerhouse, it should be capable of doing some OpenCV image or video processing. Has anyone tried to install it?

asked Jun 17, 2012 at 14:00
2

3 Answers 3

14

OpenCV is now available in apt-get. You can search for it:

apt-cache search opencv

If you are doing development, just do:

sudo apt-get install libopencv-dev

At the time of this writing, it is OpenCV 2.3

answered Nov 18, 2012 at 22:50
2
  • 2
    This deserves more upvotes Commented Jan 23, 2013 at 16:06
  • 1
    Beware the libopencv-dev version via apt probably does not get updated in the repos... as of April 2015 the package version is stuck at 2.4.1 still while the latest version is 2.4.11. If you need a newer version you have to compile OpenCV from sources most likely. Commented Apr 24, 2015 at 8:23
13

Yes, it is possible to install OpenCV on the Raspberry Pi using either Debian Squeeze or Arch Linux ARM. As done in the following two blog posts, it should just be a matter of either installing or compiling.

For prosperity's sake, you need to install opencv via pacman on Arch Linux ARM and compile it on Debian. Like so.

$ wget http://sourceforge.net/projects/opencvlibrary/files/ \
 opencv-unix/2.3.1/OpenCV-2.3.1a.tar.bz2/download
$ cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local \
 -D BUILD_PYTHON_SUPPORT=ON -D BUILD_EXAMPLES=ON ..
$ make
$ sudo make install

Your biggest problem will be performance though. It seems that OpenCV has a GPU module designed to utilize GPU computational capabilities, though. It is implemented using NVidia's CUDA Runtime API though, so you will need a NVidia GPU in order to utilize the GPU capabilities. For more information, you should read the wiki page.

answered Jun 22, 2012 at 23:49
1

Its pretty straightforward if you compile every thing on the RPi, I couldn't get a cross compiler to work and the camera/webcam was slow/unresponsive So my answer is yes but . . . depends what you want to do with it :)

answered Nov 19, 2012 at 12:50

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.