Bird
0
0
Raspberry Piprogramming~5 mins

picamera2 library basics in Raspberry Pi - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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?
ACreates a new camera object to control the Raspberry Pi camera
BStarts the camera preview automatically
CCaptures an image immediately
DStops the camera preview
Which method saves a photo to a file?
Astart_preview()
Bconfigure()
Ccapture_file(filename)
Dstop_preview()
Before capturing images, what should you do after creating the Picamera2 object?
ACall capture_file() immediately
BCall stop_preview()
CNothing, just start capturing
DCall configure() to set camera settings
How do you show the camera preview on the screen?
Astart_preview()
Bcapture_file()
Cconfigure()
Dstop_preview()
What is the correct way to stop the camera preview?
Astart_preview()
Bstop_preview()
Cconfigure()
Dcapture_file()
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.