Nolaan
Posts: 57
Joined: Thu Jul 10, 2014 6:35 pm

OpenCV 2.4.9 compiled libraries for Raspberry Pi (RPi)

Thu Jul 10, 2014 6:48 pm

[EDIT]
Hi, for the one time posters just download and unzip the latest released file https://github.com/Nolaan/libopencv_24/releases then install it.
[/EDIT]

Hi,
Here are the compiled opencv 2.4.9 libraries for the raspberry pi.
https://github.com/Nolaan/libopencv_24
Download and put them in your /usr/local/lib directory. No need to compile. Hope it will remove some pain and save time for some, and speed up development time.

There also is a face recognition (not detection) test app for RPi and Desktop.
Enjoy!
Last edited by Nolaan on Sat Nov 22, 2014 2:33 pm, edited 1 time in total.
http://www.jetsonblog.com
twitter : @nolaan_boy

darkkillerme
Posts: 15
Joined: Thu Dec 27, 2012 6:36 am

Re: OpenCV 2.4.9 compiled libraries for Raspberry Pi (RPi)

Wed Jul 16, 2014 4:13 am

I just have to put them in /usr/local/lib and I can use opencv in raspberry? This is awesome... I just having trouble with installing opencv. Thank a lot. You saved my work. :D

darkkillerme
Posts: 15
Joined: Thu Dec 27, 2012 6:36 am

Re: OpenCV 2.4.9 compiled libraries for Raspberry Pi (RPi)

Wed Jul 16, 2014 10:25 am

May I know how raspberry pi detect installed opencv? thanks.

mugiwara
Posts: 1
Joined: Fri Jul 18, 2014 9:04 am

Re: OpenCV 2.4.9 compiled libraries for Raspberry Pi (RPi)

Fri Aug 08, 2014 8:12 am

Really works great (need more 2 extra libs openexr and ffmpeg in my case).

chenxilinsidney
Posts: 1
Joined: Wed Aug 06, 2014 4:11 am

Re: OpenCV 2.4.9 compiled libraries for Raspberry Pi (RPi)

Fri Aug 15, 2014 1:19 pm

that's nice ,I think i would use it to save compile time,thank you~

dr_ill
Posts: 1
Joined: Sat Aug 02, 2014 2:59 pm

Re: OpenCV 2.4.9 compiled libraries for Raspberry Pi (RPi)

Sat Aug 23, 2014 11:12 pm

How do you use your app example? Sorry I am new to this.

Nolaan
Posts: 57
Joined: Thu Jul 10, 2014 6:35 pm

Re: OpenCV 2.4.9 compiled libraries for Raspberry Pi (RPi)

Mon Sep 01, 2014 4:36 pm

Hi,
The apps are just a demo of what you can achieve with the OpenCV libs.
Everything is in the README

Take the demo_app dir put it somewhere on your Rpi and then browse it and launch either : qt-facetrainer-cam or qt-facetrainer-video.
You can also do the same on your computer with qt-facetrainer-x64 ( eg : you must have a 64 bits OS)

@darkkillerme : Just run on RPi => "sudo ldconfig" , you can find more information in the README files
http://www.jetsonblog.com
twitter : @nolaan_boy

Div
Posts: 1
Joined: Tue Sep 09, 2014 2:41 pm

Re: OpenCV 2.4.9 compiled libraries for Raspberry Pi (RPi)

Tue Sep 09, 2014 2:54 pm

I've followed all the steps you posted here yet I don't seem able to make use of these libraries from python.

I'm trying to get this project working: http://makezine.com/projects/pi-face-treasure-box/
Source code is here: https://github.com/tdicola/pi-facerec-box/

In python the following commands:

Code: Select all

import cv2
model = cv2.createEigenFaceRecognizer()
results in

Code: Select all

attributeError 'module' object has no attribute ‘createeigenfacerecognizer’ 
Am I missing a step here? Has anyone else got this working from python?

Thanks!

Nolaan
Posts: 57
Joined: Thu Jul 10, 2014 6:35 pm

Re: OpenCV 2.4.9 compiled libraries for Raspberry Pi (RPi)

Mon Oct 27, 2014 8:50 pm

Div wrote:I've followed all the steps you posted here yet I don't seem able to make use of these libraries from python.

I'm trying to get this project working: http://makezine.com/projects/pi-face-treasure-box/
Source code is here: https://github.com/tdicola/pi-facerec-box/

In python the following commands:

Code: Select all

import cv2
model = cv2.createEigenFaceRecognizer()


results in

Code: Select all

attributeError 'module' object has no attribute ‘createeigenfacerecognizer’ 

Am I missing a step here? Has anyone else got this working from python?

Thanks!
This is normal because python use a totally different library. They compile it themselves ie /usr/lib64/python2.7/site-packages/cv2.so
http://www.jetsonblog.com
twitter : @nolaan_boy

Nolaan
Posts: 57
Joined: Thu Jul 10, 2014 6:35 pm

Re: OpenCV 2.4.9 compiled libraries for Raspberry Pi (RPi)

Mon Oct 27, 2014 8:51 pm

Today I made the 2.4.10 version available, clone it from here : https://github.com/Nolaan/libopencv_24
Instructions are still the same.
http://www.jetsonblog.com
twitter : @nolaan_boy

janszymanski
Posts: 1
Joined: Tue Oct 28, 2014 10:53 pm

Re: OpenCV 2.4.9 compiled libraries for Raspberry Pi (RPi)

Fri Oct 31, 2014 10:35 am

Hi,

I'm thinking of installing openCV your way, but before doing so, can you tell is /usr/local/include/opencv needed
and if yes, how it will be created?

Jan

Nolaan
Posts: 57
Joined: Thu Jul 10, 2014 6:35 pm

Re: OpenCV 2.4.9 compiled libraries for Raspberry Pi (RPi)

Fri Oct 31, 2014 9:19 pm

Hey,
The include directory is only needed for compilation. So no you won't need it. I will soon release .deb and .rpm to ease the process.
http://www.jetsonblog.com
twitter : @nolaan_boy

iman
Posts: 5
Joined: Fri Oct 31, 2014 9:31 pm

Re: OpenCV 2.4.9 compiled libraries for Raspberry Pi (RPi)

Fri Oct 31, 2014 9:34 pm

Thanks a lot. It took me a full day to download and compile openCV my self and at the end, It didn't work.
You saved my project :D

Nolaan
Posts: 57
Joined: Thu Jul 10, 2014 6:35 pm

Re: OpenCV 2.4.9 compiled libraries for Raspberry Pi (RPi)

Sat Nov 01, 2014 1:25 pm

iman wrote:Thanks a lot. It took me a full day to download and compile openCV my self and at the end, It didn't work.
You saved my project :D
Glad to read that, you made my day ;) :)
http://www.jetsonblog.com
twitter : @nolaan_boy

Nolaan
Posts: 57
Joined: Thu Jul 10, 2014 6:35 pm

Re: OpenCV 2.4.9 compiled libraries for Raspberry Pi (RPi)

Sat Nov 01, 2014 5:34 pm

Okay everybody,
Now, you can just install the .deb file, that's all here it is : https://github.com/Nolaan/libopencv_24/ ... nCV_2.4.10
NOTE : it's a zip file so you have first to unzip it, then just dpkg -i libopencv_2.4.10.deb

Good day ;)
http://www.jetsonblog.com
twitter : @nolaan_boy

User avatar
DougieLawson
Posts: 42232
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK

Re: OpenCV 2.4.9 compiled libraries for Raspberry Pi (RPi)

Sun Nov 02, 2014 7:36 pm

Hi Nolaan,
Is it possible to get SURF added to your OpenCV2 stuff?
Languages using left-hand whitespace for syntax are ridiculous

DMs sent on https://twitter.com/DougieLawson or LinkedIn will be answered next month.
Fake doctors - are all on my foes list.

The use of crystal balls and mind reading is prohibited.

Nolaan
Posts: 57
Joined: Thu Jul 10, 2014 6:35 pm

Re: OpenCV 2.4.9 compiled libraries for Raspberry Pi (RPi)

Mon Nov 03, 2014 1:36 pm

DougieLawson wrote:Hi Nolaan,
Is it possible to get SURF added to your OpenCV2 stuff?
Hi DougieLawson,
I didn't check the compilation option (just built the default without CUDA), but I'm seeing a lot of *SURF* symbols in the libs via objdump. I'll try to recompile it soon.
http://www.jetsonblog.com
twitter : @nolaan_boy

roman80
Posts: 4
Joined: Tue Nov 04, 2014 6:45 pm

Re: OpenCV 2.4.9 compiled libraries for Raspberry Pi (RPi)

Wed Nov 05, 2014 6:18 am

Nolaan wrote:Today I made the 2.4.10 version available, clone it from here : https://github.com/Nolaan/libopencv_24
Instructions are still the same.
Nolaan, thank you very much!
You saved me a lot of time. So, can You also publish header files from /usr/include to use with c/c++?
I think those that are placing in source file not suitable for use.

roman80
Posts: 4
Joined: Tue Nov 04, 2014 6:45 pm

Re: OpenCV 2.4.9 compiled libraries for Raspberry Pi (RPi)

Fri Nov 07, 2014 3:54 pm

When I did instruction in readme.txt and rund sudo ldconfig, it said:

ldconfig: /usr/local/lib/libopencv_videostab.so.2.4 is not a symbolic link

ldconfig: /usr/local/lib/libopencv_ocl.so.2.4 is not a symbolic link

ldconfig: /usr/local/lib/libopencv_nonfree.so.2.4 is not a symbolic link

ldconfig: /usr/local/lib/libopencv_gpu.so.2.4 is not a symbolic link

ldconfig: /usr/local/lib/libopencv_stitching.so.2.4 is not a symbolic link

etc...


What I do wrong?

Nolaan
Posts: 57
Joined: Thu Jul 10, 2014 6:35 pm

Re: OpenCV 2.4.9 compiled libraries for Raspberry Pi (RPi)

Fri Nov 07, 2014 8:25 pm

Hello,
It's not really a problem, much of a warning. It lets you know that those file should be symbolic links.
I assume you just `cp' the files. Try `cp -P' next time.
http://www.jetsonblog.com
twitter : @nolaan_boy


arduinopi+
Posts: 28
Joined: Wed Sep 24, 2014 10:58 am

Re: OpenCV 2.4.9 compiled libraries for Raspberry Pi (RPi)

Mon Nov 17, 2014 1:56 pm

hey guys,
i did download all the dependency files using wget and moved them to /usr/local/lib/opencv, then as instructed i created opncv.conf and stored /usr/local/lib/opencv in it, but when i run ldconfig , it gives an error stating that the library files such ad calib3d etc are not valid elf file-it has the wrong bytes at the start
thanking you

Nolaan
Posts: 57
Joined: Thu Jul 10, 2014 6:35 pm

Re: OpenCV 2.4.9 compiled libraries for Raspberry Pi (RPi)

Mon Nov 17, 2014 2:04 pm

Undo all your operations and install the .deb package : https://github.com/Nolaan/libopencv_24/ ... 10.deb.zip
Unzip it first! Then,

Code: Select all

dpkg -i libopencv_2.4.10.deb
http://www.jetsonblog.com
twitter : @nolaan_boy

arduinopi+
Posts: 28
Joined: Wed Sep 24, 2014 10:58 am

Re: OpenCV 2.4.9 compiled libraries for Raspberry Pi (RPi)

Mon Nov 17, 2014 2:35 pm

Nolaan wrote:Undo all your operations and install the .deb package : https://github.com/Nolaan/libopencv_24/ ... 10.deb.zip
Unzip it first! Then,

Code: Select all

dpkg -i libopencv_2.4.10.deb
thank u, so can i use these with codeblocks right away , or do i have to pre-configure it anywhere?

arduinopi+
Posts: 28
Joined: Wed Sep 24, 2014 10:58 am

Re: OpenCV 2.4.9 compiled libraries for Raspberry Pi (RPi)

Mon Nov 17, 2014 4:03 pm

hi,
i unzipped and used dpkg on the deb file, but do u have any idea how i can include these files in my c program
thanks again

Return to “C/C++”