Bash script to capture pictures using webcam
Hi friends,
I have a laptop with integrated web cam. I am using "cheese" to capture photos and taking video. Now I want to write a script with following features: >>> It should start at the time of login >>> Automatically it will capture one photo (to identify who is there in front of system), saves that photo in a specified folder and it will be closed automatically.... If there is a tool like this then I will be happy. Otherwise let me know how to write a script.... Thanks in advance... |
Hi,
take a look for streamer, which is part from xawtv package. This can capture pictures from your webcam Code:
streamer -c /dev/video0 -b 16 -o outfile.jpeg You can use this tool to script your required action. Also a good source is Webcam-Howto |
|
Hi mesiol and H_TeXMeX_H,
Very thanks for your quick response.... I am using FC9. streamer is not there in my system... But stream is there. Are both same??? I tried to install using yum as follows Quote:
|
I used this command
Quote:
Quote:
|
For
Quote:
Quote:
|
Now I copied /usr/lib/xawtv/ into /usr/local/lib/
Then also it showing following error Quote:
|
My Laptop configuration:
Dell inspiron 1420 with nvidia graphics card Ge Force 8-series and Integrated web cam. I hope it can help.... |
I think you need to mess with the settings, it looks like it can't get 320x240 resolution. Also, avoid copying stuff around in the system directories, I doubt it will help, but you could really mess up your system.
|
ok... But how to change settings... can anybody suggest me or is there any link.
|
On the main site it lists all the options and what they do:
http://xawdecode.sourceforge.net/htm.../indexUS.shtml See the record options, I think that's what need adjusting. |
I have tried in google search but I am not able to find proper solution....
GUI is not opening for "xawtv"... So, how can change settings through command line???? Please help me.... |
Try running 'xdtv' and post what the error is.
|
Are you kidding? How a webcam can identify a person??
Perhaps it has a function that can capture pictures by the webcam and save them to a specified folder? I have no idea how a webcam can identify a person!! any idea.. tell me pls! |
first thing I want save photo at every login.... Can make a software to identify a person using matlab or something else....
If it is possible tell me how to solve above error.... |
All times are GMT -5. The time now is 06:13 PM. |