Regarding USB camera and image capture

Abhi11
Hi,

I using mini2440 as my platform and linux as my OS.

I want to capture image from usb camera.I am using camera from logitech.
Please tell me how I can do it.

Though when I searched on net, I get to know that it is done through v4l2
and opencv.But I didn't get the procedure.

Please throw some light on this.

Thnaks,
Abhi