raspi 2 opencv howto? [SOLVED]

I have a usb camera attached to my raspi pi.

I can capture an image with
  fswebcam -r 640x480 i1.img

and display it wit
  l
inks2 -g i1.jpg

When I start the mrl OpenCV service I haven't been able to get an image. But there are quite some settings available - what settings should work for me then?

beetlejuice's picture

hi Juerg, I already had this

hi Juerg,

I already had this problem with my raspberry banana pi , maybe this could help you :

http://myrobotlab.org/content/webcam-under-linux

Particularly this part :

But, that work !! I don't know exactly what was missing, i've just installed a lot of thing after read this web page : https://ariandy1.wordpress.com/2013/02/13/raspberry-pi-rasbian-opencv/

I've done this part :

sudo apt-get -y install libpng12-0 libpng12-dev libpng++-dev libpng3
sudo apt-get -y install libpnglite-dev libpngwriter0-dev libpngwriter0c2
sudo apt-get -y install zlib1g-dbg zlib1g zlib1g-dev
sudo apt-get -y install libjasper-dev libjasper-runtime libjasper1
sudo apt-get -y install pngtools libtiff4-dev libtiff4 libtiffxx0c2 libtiff-tools
sudo apt-get -y install libjpeg8 libjpeg8-dev libjpeg8-dbg libjpeg-prog
sudo apt-get -y install libavcodec53 libavcodec-dev libavformat53 libavformat-dev libavutil51 libavutil-dev libswscale2 libswscale-dev
sudo apt-get -y install libgstreamer0.10-0-dbg libgstreamer0.10-0 libgstreamer0.10-dev
sudo apt-get -y install libxine1-ffmpeg libxine-dev libxine1-bin
sudo apt-get -y install libunicap2 libunicap2-dev
sudo apt-get -y install libdc1394-22-dev libdc1394-22 libdc1394-utils
sudo apt-get -y install swig

 

Alessandruino's picture

Hey juerg... In this moment

Hey juerg... In this moment myrobotlab doesn t support opencv on armv7 (raspi2)... I m working on the armv6(raspi1) here..Almost got it working... We need to compile it on the specific board...but since I Don t have a raspi 2 would help if you want to share your board with me so that I can work remotely on your raspi to build opencv on it... Let me know if you want me to work on it... This way we can contribute to make it worky on all the raspi 2 on the planet :)

Ale

juerg's picture

raspi 2 opencv

Hi Alessandro

Hope you did get enough money together to replace your stolen Mac?

What about I donate you 35 USD and you order a raspi 2 for yourself and share the results?

Juerg

Alessandruino's picture

hey Juerg...unfortunately not

hey Juerg...unfortunately not yet . but it's already a big help !.. 

About the raspi, thanks but it's not necessary :) you can just let the raspi 2 connected , with the port open in your router  and i can work on it ! :)

juerg's picture

raspi 2

Hi Ale

connection is an option, however you will need to tell me what exactly I have to do and publishing all my address information does not seem a very good idea to me...

maybe you emall me directly on juerg.maier@pobox.ch and tell me whats needed?

Juerg

juerg's picture

raspi 2 opencv WORKY!!

Thanks to 2 longer remote sessions from Ale on my raspi 2 he was able to build an armv7 version of the opencv.

He then showed me also some of the features of opencv to get higher fps. I was first a bit lost with the many options. So we ended with about 20 fps and a working face-tracking!

 

GroG's picture

WOOOHOO !   Nice going Ale

WOOOHOO !   Nice going Ale o/

 

Alessandruino's picture

\o :)

\o :)

kwatters's picture

borg it!

We should make a plan to get the artifacts into the repo so it is 1 click worky :)  

We'll identify the ras pi 2 as  "armv7"  in the ivy files.

 

beetlejuice's picture

Hi, There was longtime i

Hi,

There was longtime i didn't used my raspberry banana pi . And yesterday i've tryed openCV after had updated MRL and it stopped to work ! When i clic on "capture", nothing happen . I've noticed that the processor is know as ARMv6 but the Cortex-A7 dual-core is a a ARMv7 architecture .

must i try this new build of opencv ?

Alessandruino's picture

Sure...tell me your email so

Sure...tell me your email so i can send you the files...

mano1979's picture

Could you send me those files too?

Could you send me those files too? I also use a raspberry pi 2.

Is there a way to send you my email adress in private?

mano1979's picture

Opencv arm7 files

I hope you can send me the files too.

My email is : info.equibo@gmail.com

mecax's picture

hi ale

hello ale,I would appreciate if send me the files for ARM v7. my e.mail: fscauso8@ hotmail.com 

mecax's picture

hi ale

hello ale,I would appreciate if send me the files for ARM v7. my e.mail: fscauso8@ hotmail.com