You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Good news!
If you run sudo apt-get install libopencv-dev
it will install all the necessary opencv static libs into /usr/lib with the exception of libopencv_haartraining_engine.a
you can then
mkdir /home/pi/openFrameworks/addons/ofxOpenCv/libs/opencv/lib/linuxarmv6l
cd /usr/lib/
cp libopencv*.a /home/pi/openFrameworks/addons/ofxOpenCv/libs/opencv/lib/linuxarmv6l/
I then copied libsorder.make from addons/ofxOpenCv/libs/opencv/lib/linux64
to addons/ofxOpenCvopencv/lib/linuxarmv6l
and removed the line libopencv_haartraining_engine.a
Very nice! Given that it is already there, it seems that compiling for the platform from scratch isn't impossible. Definitely a job for someone with distcc running though. Are we currently using the haar training engine at all? I know we're using face recognition? If not, it seems like we should figure out a solution for addons that allows us to link to static or shared system libs without copying. It's still on the todo list ...
yeah - I would have just linked it but I am waiting for the new Make system to settle to figure out where the best place is to do it.
I am not sure if ofxCvHaarFinder.h requires libopencv_haartraining_engine.a . I am going to run a few common things through the addon to see if anything is broken
This line in config.make will allow you to compile without copying the libs PROJECT_LDFLAGS=-Wl,-rpath=./libs $(shell pkg-config opencv --libs 2> /dev/null)
For the moment (until we figure out a smart addons system that can pull from system libs), I copied the static libs into the repo. All examples are now working out of the box (although the haar finder example still takes a while!).
hi @bakercp@arturoc and all ,the example ofxOpenCv in PandaboardES build succesfully but in Liveo video mode i have only a black window. I'm using the develop-raspberrypi branch.
i will try disabling some ofxopencv draw to see if it is a memory issue.
Activity
jvcleave commentedon Nov 21, 2012
Is this something we should just use the ones available from apt-get?
jvcleave commentedon Nov 25, 2012
there are libs in /addons/ofxOpenCv/libs/opencv/lib/linuxarmv6l - know where these came from?
danzeeeman commentedon Nov 25, 2012
You can check the git blame?
On Nov 25, 2012 5:51 PM, "Jason Van Cleave" notifications@github.com
wrote:
bakercp commentedon Dec 6, 2012
btw, those libs are gone now and were dummies put there to test the new makefile's libsorder.make support.
Right now, this is pending a good way to allow addons to optionally link to native libs. This might happen via the addons.make file, or another file.
jvcleave commentedon Dec 7, 2012
Good news!
If you run
sudo apt-get install libopencv-devit will install all the necessary opencv static libs into
/usr/libwith the exception oflibopencv_haartraining_engine.ayou can then
I then copied
libsorder.makefromaddons/ofxOpenCv/libs/opencv/lib/linux64to
addons/ofxOpenCvopencv/lib/linuxarmv6land removed the line
libopencv_haartraining_engine.aSimple test
http://i.imgur.com/f99wV.jpg
Thresholding
http://i.imgur.com/llG3U.jpg
Random Threshold (about 30 fps)
https://vimeo.com/55077432
Contourfinder works:
http://i.imgur.com/A0eE7.jpg
https://gist.github.com/4231042
bakercp commentedon Dec 7, 2012
Very nice! Given that it is already there, it seems that compiling for the platform from scratch isn't impossible. Definitely a job for someone with distcc running though. Are we currently using the haar training engine at all? I know we're using face recognition? If not, it seems like we should figure out a solution for addons that allows us to link to static or shared system libs without copying. It's still on the todo list ...
jvcleave commentedon Dec 7, 2012
yeah - I would have just linked it but I am waiting for the new Make system to settle to figure out where the best place is to do it.
I am not sure if
ofxCvHaarFinder.hrequireslibopencv_haartraining_engine.a. I am going to run a few common things through the addon to see if anything is brokenarturoc commentedon Dec 7, 2012
yes i think we should solve the inclusion of pkg-config libraries and headers for addons, that way we can use this without copying the libraries.
there's actually several opencv packages:
libopencv-calib3d2.3 libopencv-features2d2.3 libopencv-highgui-dev libopencv-objdetect2.3
libopencv-calib3d-dev libopencv-features2d-dev libopencv-imgproc2.3 libopencv-objdetect-dev
libopencv-contrib2.3 libopencv-flann2.3 libopencv-imgproc-dev libopencv-video2.3
libopencv-contrib-dev libopencv-flann-dev libopencv-legacy2.3 libopencv-video-dev
libopencv-core2.3 libopencv-gpu2.3 libopencv-legacy-dev
libopencv-core-dev libopencv-gpu-dev libopencv-ml2.3
libopencv-dev libopencv-highgui2.3 libopencv-ml-dev
surely haartraining is in on of those
jvcleave commentedon Dec 7, 2012
it looks like I have all of those packages installed :/
jvcleave commentedon Dec 8, 2012
It took 141 seconds but surprisingly ofxCvHaarFinder still works without the training engine lib.
http://i.imgur.com/VCYJT.jpg
edit: got it to 65 seconds by doing it in setup (was previously doing it with a delay in update)
bakercp commentedon Dec 8, 2012
Very cool. I'm thinking the haar training engine is for creating your own haar training data sets (i.e. creating the frontal, profile, etc xml data).
Meach commentedon Dec 12, 2012
I haven't checked ofxCvHaarFinder but I confirm that with jvcleave instruction, the example works on the pandaboard as well. Great!
jvcleave commentedon Dec 12, 2012
This line in config.make will allow you to compile without copying the libs
PROJECT_LDFLAGS=-Wl,-rpath=./libs $(shell pkg-config opencv --libs 2> /dev/null)bakercp commentedon Dec 20, 2012
For the moment (until we figure out a smart addons system that can pull from system libs), I copied the static libs into the repo. All examples are now working out of the box (although the haar finder example still takes a while!).
Closed with a85f9bc
kalwalt commentedon Dec 24, 2012
hi @bakercp @arturoc and all ,the example ofxOpenCv in PandaboardES build succesfully but in Liveo video mode i have only a black window. I'm using the develop-raspberrypi branch.
i will try disabling some ofxopencv draw to see if it is a memory issue.
kalwalt commentedon Jan 5, 2013
@bakercp @arturoc we can close this issue. i tested ofxopenCV with latest develop-raspberrypi and it's fine . Also i have linuxarmv7l libs here: https://github.com/kalwalt/openFrameworks/tree/feature-openCv-linuxarmv7l i'm going to open a pull request for this.
bakercp commentedon Jan 5, 2013
done!
Merge pull request #18 from tgfrerer/feature-elinuxProgrammableGL