Camera
This application allows the robot to use his camera and take a photo and save it to a specific directory. This app is the base for the next application that allow that google api, tell us what is it.
First we need to import the libraries that we are going to use.
Explaining the code.
First we kill every instants of eog, this allow us to don't have any demon running.
Then we extract the date, so we could make a unique id for each photo.
We use os.system("") to give it instruction as we do on terminal.
We take the photo using the command fswebcam, and we define some parameters.
We move the photo to a specific directory.
We show the photo taken for 3 second and we kill it.
Last updated