From the course: Computer Vision on the Raspberry Pi 4
Unlock the full course today
Join today to access over 24,400 courses taught by industry experts.
Introducing the picamera package
From the course: Computer Vision on the Raspberry Pi 4
Introducing the picamera package
- [Instructor] This video introduces the Pi Camera package, which makes it possible to capture images from a camera. The Raspberry Pi supports a few different cameras. And on my system, I'm using the Raspberry Pi high-quality or HQ camera. The left image shows what the board looks like with the HQ camera module connected. No matter what camera you use, it's important to attach a good lens. This focuses the light received by the sensor and without it, your images will be blurry. The image on the right shows the lens that I'm using. This is a 16 millimeter telephoto lens that connects to the camera using a C mount. To access the camera in Python, you need to install the Pi Camera package. This provides the PiCamera class, which plays a central role in this discussion. In this course, we'll access the PiCamera class using five steps. First, we'll call the constructor to create a PiCamera instance. Then we'll configure the…