Sign up ×
Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. It's 100% free, no registration required.

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?

share|improve this question
Please see… wrt GPU calculations. – Alex Chamberlain Jun 17 '12 at 14:09
Thanks. That's just one part of my question – Gil Jun 17 '12 at 14:19
Could be useful:… – Alex Chamberlain Jun 18 '12 at 6:33

3 Answers 3

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 \
$ 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.

share|improve this answer

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

share|improve this answer
This deserves more upvotes – Lipis Jan 23 '13 at 16:06
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. – Kozuch Apr 24 at 8:23

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 :)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.