GP2X Live Usb Camera Connection?


jangunhed

Still Fresh
Joined
Jul 2, 2007
Messages
7
Could it be possible to connect a USB-Webcam to the gp2x, either via the integrated USB-Port or the external-cradle-USB-Port, not to upload image-files from a cam, but to see live images from the webcam on the gp2x, in order to maybe even further proccess the images in real-time? (Eye-Toy like)

I am mostly interested in the connection possibilities, how many USB-Drivers are there for the Linux-Kernel of the gp2x?
 
Hi, I will be releasing such an application for the Gbax 2007 Coding Competition, so in a week or something there will be a version released (after they announced it on their site). This includes live webcam display on screen, taking pictures (photocamera application), ...

You can get a 3-4 frames per second (it is USB 1.1, so max 12Mbps, sending 320x240 @ 24bits per frame is the limiting factor). I am still working on a multithreaded capture to max the number of frames per second. But this still needs a lot of work. Then one threads constantly grabs a frame to a buffer, while another thread displays it and does other stuff with it.

The software includes a simple library with some simple functions (OpenCamera(), GetNewFrame(), CloseCamera()), so other applications and even games can be easily written. I've added 320x240 resolution to my webcam driver (cropping, not scaling, from 352x288). This is because my webcam doesn't support 320x240. I guess it's best we add this to all webcam drivers for webcams with other resolutions. So all the software can be written with 320x240 frames, this means no expensive scaling and more cpu time for other things.

My webcam get its power from the 5V output of the GP2X MK2 unit (artaylor EXT->USB cable). So no need to add extra batteries.

Can both of you tell me your webcam models? I'll try to find the drivers and compile kernel modules for them.

Guyfawkes: Are you interested in beta testing it, so I know it will work when you test it for the competition :p ?
 
Lithosphere - yeah it makes sense as I can judge the entry correctly. I did have two web cams but I cant find one, the second is the EyeToy so if you can get that working then I can test it no problem. There are drivers out for it on Windows and maybe Linux.

PM me with further details.
 
Lithosphere said:
Can both of you tell me your webcam models? I'll try to find the drivers and compile kernel modules for them.
Great! I am planning to use the "Philips SPC 900NC PC Camera".
 
Last edited by a moderator:
JanGunheD said:
Lithosphere said:
My webcam get its power from the 5V output of the GP2X MK2 unit (artaylor EXT->USB cable). So no need to add extra batteries.
Would this cradle also work?: http://www.gp2x.com/product/acce_cradle.asp


Yes, this will work too. Any GP2X -> USB is ok.

If I remember correctly my webcam is only using 70mA at most, and I've read somewhere the maximum was 100mA for getting from the GP2X. So I didn't have to get an extra power supply or use extra batteries to power it. I guess there will be some less power friendly webcams, but in that case you just need to have extra power for your cradle.
 
Last edited by a moderator:
Back
Top