Bird
0
0
Raspberry Piprogramming~5 mins

Capturing still images in Raspberry Pi - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the basic command to capture a still image using the Raspberry Pi camera module?
The basic command is raspistill -o image.jpg, which captures an image and saves it as image.jpg.
Click to reveal answer
beginner
What does the -o option specify in the raspistill command?
The -o option specifies the output filename where the captured image will be saved.
Click to reveal answer
intermediate
How can you add a delay before capturing an image with raspistill?
Use the -t option followed by the delay time in milliseconds. For example, raspistill -t 5000 -o image.jpg waits 5 seconds before taking the picture.
Click to reveal answer
beginner
What Python library can you use to capture still images programmatically on a Raspberry Pi?
You can use the picamera Python library to control the Raspberry Pi camera and capture images in your Python scripts.
Click to reveal answer
beginner
How do you capture a still image using the picamera library in Python?
Example code:<br><pre>import picamera
with picamera.PiCamera() as camera:
    camera.capture('image.jpg')</pre>This captures and saves an image named <code>image.jpg</code>.
Click to reveal answer
Which command captures a still image immediately and saves it as 'photo.jpg'?
Araspistill -t 5000 -o photo.jpg
Braspivid -o photo.jpg
Craspistill -o photo.jpg
Draspivid -t 1000 -o photo.jpg
What does the -t option do in the raspistill command?
ASets a delay before capturing the image
BSets the image resolution
CSpecifies the output filename
DStarts video recording
Which Python library is commonly used to control the Raspberry Pi camera?
Aopencv
Bpicamera
Cpygame
Dmatplotlib
In Python, which method captures an image using picamera?
Acamera.record()
Bcamera.snap()
Ccamera.take_photo()
Dcamera.capture()
What file format does raspistill save images in by default?
AJPEG
BBMP
CPNG
DGIF
Explain how to capture a still image on a Raspberry Pi using both the command line and Python.
Think about the command line tool and the Python library.
You got /4 concepts.
    Describe the steps to add a delay before taking a picture with the Raspberry Pi camera.
    The delay is set in milliseconds using a command option.
    You got /3 concepts.