want to create c++ project for webcam access in linux

Status
Not open for further replies.

g_shyam1682

Full Member level 4
Joined
Jan 11, 2010
Messages
204
Helped
53
Reputation
106
Reaction score
43
Trophy points
1,308
Location
Udaipur-Rajshan-India
Activity points
2,538
Hello friends,

I am newbie in embedded linux, and i want to create one c++ project.
In my project, i want to access my laptop webcam and take photo and save in my project_photo folder.
This project i am doing only for learning linxu and its API and how hardware interface done in linux.

Please help me to understand, how to start and where to start.

Regards,
Ghanshyam Dudhat
 

Most linuxes today use the UVC driver to control webcams. You might want to take a look at the UVC driver documentation in the linux kernel source code: Documentation/video4linux/uvcvideo.txt. Most userspace tools will use the v4l2 interface i.e. /dev/videoX device.

Here's an example I found with a quick search: **broken link removed**

For a more detailed code I recomment you download and look at the source code of one of the open source webcam projects i.e. Fswebcam.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…