Taking pictures from webcam - command line
Install ImageSnap (Using Homebrew)
- Install brew - To install brew → http://brew.sh/
- Then open the terminal and type
brew install imagesnap
Usage
- Open the terminal
- To take a photo every x seconds:
imagesnap -t 1
Replace 1 by the number of seconds you want.
By default the image will be saved to a snapshot.png file.
To kill the process: ctrl + C
If you have multiple video devices attached to your computer, use the -l ("el") flag to list them:
$ imagesnap -l
To select a specific video device use the -d device flag:
imagesnap -d nameofdevice -t 1
Documentation about imagesnap: https://github.com/rharder/imagesnap