Take a Picture
With the Terminal window still open, change to your PhotoHook project directory:
$ cd /home/pi/projects/photohook
Use the raspistill program already installed in the Raspberry Pi OS to take a photo, passing it the file path and name where you want to save the picture:
$ raspistill -o test0.jpg
After a few seconds, the test0.jpg file should appear in that directory. If raspistill reports an error, verify that your camera ribbon is attached correctly and that the Pi camera port has been enabled.
If you’re logged into the Raspberry Pi desktop, navigate to the project directory using the desktop File Manager, and double-click the test0.jpg file to view it in the photo viewer app.
Notice that the default image resolution for photos ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access