up to 12 megapixels (4032 x 3024)
up to 12 megapixels (4032 x 3024)
up to 1080p at 30fps, 720p at 60fps, and 640x480p at 90fps
The camera module also features built-in image processing capabilities, allowing for features like |
Automatic gain control (AGC)
Automatic white balance (AWB)
Exposure compensation
Key Features
Technical Specifications
Sony IMX708
up to 12 megapixels (4032 x 3024)
6-element lens with f/1.8 aperture
102 diagonal
1m to infinity
CSI-2, I2C, power supply
250mA typical, 450mA maximum
-20C to 50C
25mm x 23mm x 9mm
Applications
The Raspberry Pi Camera Module 3 Wide is suitable for a wide range of applications, including |
Computer vision projects
Robotics and automation
Home security and surveillance systems
Media centers and streaming devices
IoT projects and prototyping
Overall, the Raspberry Pi Camera Module 3 Wide is a high-quality camera module that offers excellent image quality, improved low-light performance, and a wide range of features and interfaces. Its compact design and compatibility with Raspberry Pi boards make it an ideal choice for a wide range of applications.
Raspberry Pi Camera Module 3 Wide Documentation
Overview
The Raspberry Pi Camera Module 3 Wide is a high-quality camera module designed specifically for the Raspberry Pi series of single-board computers. It features a 12-megapixel sensor, improved low-light performance, and a wider angle lens compared to its predecessors. This module is ideal for various IoT applications, including computer vision, robotics, and monitoring systems.
Technical Specifications
12-megapixel Sony IMX708 sensor
Wide-angle lens (FOV: 102 horizontal, 76 vertical)
Supports up to 4K video at 30fps
Improved low-light performance
Compatible with Raspberry Pi 4, 3, and 2 models
Using the Raspberry Pi Camera Module 3 Wide
### Example 1: Capturing a Still Image using Python
To use the Raspberry Pi Camera Module 3 Wide, you'll need to have the Raspberry Pi OS installed on your Raspberry Pi board and the `picamera` library installed.
Code Example:
```python
import picamera
# Create a Picamera object
camera = picamera.PiCamera()
# Set the camera resolution and framerate
camera.resolution = (640, 480)
camera.framerate = 30
# Capture a still image and save it to a file
camera.capture('image.jpg')
# Close the camera
camera.close()
```
This code creates a `Picamera` object, sets the camera resolution and framerate, captures a still image, and saves it to a file named `image.jpg`.
### Example 2: Streaming Video using Python and OpenCV
In this example, we'll use the `picamera` library in conjunction with OpenCV to stream video from the Raspberry Pi Camera Module 3 Wide.
Code Example:
```python
import picamera
import cv2
# Create a Picamera object
camera = picamera.PiCamera()
# Set the camera resolution and framerate
camera.resolution = (640, 480)
camera.framerate = 30
# Create an OpenCV window
cv2.namedWindow('Video Stream', cv2.WINDOW_NORMAL)
while True:
# Capture a frame from the camera
frame = camera.capture_array(format='bgr')
# Display the frame using OpenCV
cv2.imshow('Video Stream', frame)
# Exit on key press
if cv2.waitKey(1) & 0xFF == ord('q'):
break
# Close the camera and OpenCV window
camera.close()
cv2.destroyAllWindows()
```
This code creates a `Picamera` object, sets the camera resolution and framerate, captures frames from the camera, and displays them using OpenCV. The video stream can be exited by pressing the 'q' key.
### Example 3: Time-Lapse Photography using Bash Scripting
In this example, we'll use a bash script to capture a series of images at regular intervals using the Raspberry Pi Camera Module 3 Wide.
Code Example:
```bash
#!/bin/bash
# Set the capture interval (in seconds)
INTERVAL=30
# Set the output directory
OUTPUT_DIR=/home/pi/timelapse
# Create the output directory if it doesn't exist
mkdir -p $OUTPUT_DIR
while true
do
# Capture an image and save it to the output directory
raspistill -o $OUTPUT_DIR/image_%03d.jpg -t 1000 -w 640 -h 480
# Wait for the capture interval
sleep $INTERVAL
done
```
This script captures an image every 30 seconds using the `raspistill` command and saves it to a directory named `timelapse`. The `sleep` command is used to wait for the specified interval before capturing the next image.
Remember to make the script executable by running `chmod +x script.sh` and then run it using `./script.sh`.