webcam

Hello

How can I capture live video from a webcam connected to my beaglebone
running angstrom?

I need to use the command line

Regards
Frank

How can I capture live video from a webcam connected to my beaglebone
running angstrom?

http://bit.ly/TTIGZ9

hahahaha a a ahhahahahajaha thats a good one!!

Too many days without taking a bath eh?

Im developing in C++ and, get opencv compiling and running on
beaglebone has been a nightmare.

Now I finally can compile directly on beaglebone, but when I run a
simple example for live video displaying it only displays 1 image and
freezes.

I think is a camera installation problem because Im just running a
simple example for video capture.

Is there a way that I can change the video size of the capture?

This is my code:

#include "stdio.h"
#include "cv.h"
#include "highgui.h"
#include "stdlib.h"

int main ( int argc, const char* argv[] ){
CvCapture* capture = cvCaptureFromCAM(0);
IplImage* image = 0;
cvNamedWindow("Window");

int count = 1;
while (true)
{
image = cvQueryFrame(capture);
cvShowImage("Window", image);
int ch = cvWaitKey(1);

}

cvDestroyWindow("Window");
cvReleaseCapture(&capture);
return 0;
}

Yes im susbscribed to that forum.

Thanks

But how can i install mjpg-streamer into beaglebone?

Its not a package accesible through opkg install.

Yeah! right you are.

I get it to work and now I can also take live video in the command
line and in my opencv program

I had been fighting with this for almost 2 weeks!!
Now is solved.

Thanks!

Have you tried gstreamer?

have you tried gstreamer?

mjpg-streamer works well for me 10fps @ 1280x720 usb webcam

Try this for a start:

http://www.youtube.com/watch?v=-6DBR8PSejw&feature=c4-overview&list=UUf_sAmhBw7Tj7-2ujmLFoQg