?

Log in

This · is · Not · a · Brain · Surgery


OpenCV 2.4 packages for RasperryPI (Raspbian 'wheezy')

Recent Entries · Archive · Friends · Profile

* * *
RasperryPI OS (Raspbian) comes with OpenCV 2.3. Many people experimenting with this platform want to use newer OpenCV version 2.4. It could be compiled on this platform but it is a laborious process requiring installing bunch of dependencies. The compilation takes about 10 hours and you need about 4Gb of disk space on your PI to do that.

To save you the pain Codeminders built binary packages which you can easily install on your PI. They are based on Raspbian OpenCV packages for Jessie which are not stable. Use at your own risk. Instructions:

1. Install public Codeminders repository public GPG key:

wget -O - http://www.codeminders.com/raspbian-apt/KEY.txt | sudo apt-key add -

2. Add the following line to /etc/apt/sources.list:

deb http://www.codeminders.com/raspbian-apt/ wheezy main

3. Use the following commands to install:

$ sudo apt-get update
$ sudo apt-get install libopencv-dev


You should see something like this:

root@lordberry:/home/pi# apt-get install libopencv-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libcv-dev libcvaux-dev libhighgui-dev libopencv-calib3d-dev libopencv-calib3d2.4 libopencv-contrib-dev
libopencv-contrib2.4 libopencv-core-dev libopencv-core2.4 libopencv-features2d-dev libopencv-features2d2.4
libopencv-flann-dev libopencv-flann2.4 libopencv-gpu-dev libopencv-gpu2.4 libopencv-highgui-dev
libopencv-highgui2.4 libopencv-imgproc-dev libopencv-imgproc2.4 libopencv-legacy-dev libopencv-legacy2.4
libopencv-ml-dev libopencv-ml2.4 libopencv-objdetect-dev libopencv-objdetect2.4 libopencv-ocl-dev
libopencv-ocl2.4 libopencv-photo-dev libopencv-photo2.4 libopencv-stitching-dev libopencv-stitching2.4
libopencv-superres-dev libopencv-superres2.4 libopencv-ts-dev libopencv-ts2.4 libopencv-video-dev
libopencv-video2.4 libopencv-videostab-dev libopencv-videostab2.4 libopencv2.4-java libopencv2.4-jni
opencv-data
The following NEW packages will be installed:
libcv-dev libcvaux-dev libhighgui-dev libopencv-calib3d-dev libopencv-calib3d2.4 libopencv-contrib-dev
libopencv-contrib2.4 libopencv-core-dev libopencv-core2.4 libopencv-dev libopencv-features2d-dev
libopencv-features2d2.4 libopencv-flann-dev libopencv-flann2.4 libopencv-gpu-dev libopencv-gpu2.4
libopencv-highgui-dev libopencv-highgui2.4 libopencv-imgproc-dev libopencv-imgproc2.4 libopencv-legacy-dev
libopencv-legacy2.4 libopencv-ml-dev libopencv-ml2.4 libopencv-objdetect-dev libopencv-objdetect2.4
libopencv-ocl-dev libopencv-ocl2.4 libopencv-photo-dev libopencv-photo2.4 libopencv-stitching-dev
libopencv-stitching2.4 libopencv-superres-dev libopencv-superres2.4 libopencv-ts-dev libopencv-ts2.4
libopencv-video-dev libopencv-video2.4 libopencv-videostab-dev libopencv-videostab2.4 libopencv2.4-java
libopencv2.4-jni opencv-data
0 upgraded, 43 newly installed, 0 to remove and 62 not upgraded.
Need to get 16.0 MB of archives.
After this operation, 61.4 MB of additional disk space will be used.
Do you want to continue [Y/n]?



4. Enjoy!
* * *