Re: programming the usb cam



On 6 7 , 8 24 , Lew Pitcher <lpitc...@xxxxxxxxxxxx> wrote:
On Jun 7, 6:05 am, cmk...@xxxxxxxxxxx wrote:

On 6 4 , 10 00 , Lew Pitcher <lpitc...@xxxxxxxxxxxx> wrote:

On Jun 4, 2:24 am, cmk...@xxxxxxxxxxx wrote:

Hi
I have a logitech video cam, i want to programming it to capture
the screen back. Where i can download the protocol?

Sorry, Peter, but it is unclear to me what you want to do with your
webcam.
[snip]
Please clarify
Yes, i want to write a program to control the webcam directly.

OK, I need a little more clarification here. You say that you want to
"control the webcam directly"; what do you mean by "control"?

Is this "control" as in "capture images", or "control" as in "point
the camera somewhere else, and change the focus"?

If you mean "capture images", then you already have the ability with
the v4l2 (video4linux v2) set of syscalls that the Linux kernel
supports directly. If you mean "point the camera, change the focus",
then I don't think that there are any builtin facilities available.

If the V4L2 API answers your access problem, the only other question
is whether or not there is a video device driver for your brand of
webcam. You can check the Linux USB support (assuming that your webcam
is a USB connected one) for a driver - I have 4 USB webcams, all
working without problem under the Linux.

But
i don't think logitech or other web cam manufacturer will provide you
a sdk. So no API is available.

Are you certain that the v4l2 API won't do? As for "no sdk", you may
have to sign a NDA and/or pay a fee to the manufacturer to get that
sort of information. At least one Linux webcam driver was developed
that way. Otherwise, you've got a lot of debugging to do :-S

I am planning to build my linux robot
running on an arm development board.
I nearly have nothing on my embedded linux, not much library. so i
want to control the cam directly, that why i ask for a communication
protocol/API.

Well, you've got a lot of work ahead of you.

My recommendations would be to
a) use a supported webcam (IIRC, most of the logitech webcams are
supported)
b) use the V4L2 syscalls to access the video information
c) use libusb if possible to send any camera controls (rotate, tilt,
pan, zoom) directly, otherwise
d) build your own physical automation, and use the existing usb/serial/
parallel drivers to control it

Luck be with you
--
Lew

Hi Lew
Thank you for you great answer and thank you very much for your
time.
thanks again
from Peter

.



Relevant Pages

  • Re: good webcam for Linux (low light, mic, just works)
    ... I am looking to buy a good webcam for linux. ... Logitech Quickcam Connect Webcam ... Optia AF (uvcvideo driver too), ...
    (Debian-User)
  • Re: Why Im going back to windows from Suse.
    ... > 3) NO Webcam recording software for linux such as Aloecam, ... Works fine with easygprs on windows. ... > 5) It took a major act of God to get my wireless card working in Suse ...
    (alt.os.linux.suse)
  • Re: Linux Laptop
    ... The built in webcam quiality is quite poor and one of the things that won't be supported in Linux, can be better to spend a few bucks on an USB webcam that has Linux drivers. ... High resolution is expensive and it usually means that you will have to look at a machine with a high end graphics card, even if lesser cards would manage to deliver the needed resolution, but it's something that usually is matched together, good LCD and High End Graphics card. ...
    (alt.os.linux)
  • Re: Why Im going back to windows from Suse.
    ... NO Webcam recording software for linux such as Aloecam, ... Works fine with easygprs on windows. ... > winprinter so partially my fault but still a frustration) ...
    (alt.os.linux.suse)
  • Removing WebCam Device
    ... I am running RH9 and am not too experienced with Linux. ... interfere wiith my onboard sound chip. ... If I unplug the USB webcam and reboot, Kudzu finds four "unknown sound card" ... When RH finishes the mixer has all its ...
    (alt.os.linux.redhat)