Recall & Review
beginner
What is the primary purpose of the picamera2 library?
The picamera2 library is used to control the Raspberry Pi camera module, allowing you to capture images and videos programmatically.
Click to reveal answer
beginner
How do you start the camera preview using picamera2?
You call the
start_preview() method on a Picamera2 object to show the camera preview on the screen.Click to reveal answer
beginner
Which method captures a still image with picamera2?
The
capture_file(filename) method captures a still image and saves it to the specified filename.Click to reveal answer
beginner
What is the typical first step before capturing images with picamera2?
You create a Picamera2 object and configure it, usually with
picam2 = Picamera2() and picam2.configure() before starting the camera.Click to reveal answer
beginner
How do you stop the camera preview in picamera2?
You call the
stop_preview() method on the Picamera2 object to stop showing the camera preview.Click to reveal answer
What does the
Picamera2() command do?✗ Incorrect
The
Picamera2() command creates a new camera object but does not start preview or capture automatically.Which method saves a photo to a file?
✗ Incorrect
The
capture_file(filename) method captures an image and saves it to the given filename.Before capturing images, what should you do after creating the Picamera2 object?
✗ Incorrect
You should call
configure() to set up camera settings before capturing images.How do you show the camera preview on the screen?
✗ Incorrect
The
start_preview() method shows the live camera preview on the screen.What is the correct way to stop the camera preview?
✗ Incorrect
You stop the preview by calling
stop_preview() on the Picamera2 object.Explain the basic steps to capture a photo using the picamera2 library.
Think about setting up, previewing, capturing, and stopping.
You got /5 concepts.
Describe how to show and stop the camera preview using picamera2.
Preview is like looking through the camera before taking a photo.
You got /2 concepts.
