8-megapixel CMOS
8-megapixel CMOS
3280 x 2464 (8 megapixels)
1920 x 1080 (1080p) at 30 fps
Wide-angle lens with a diagonal angle of view of approximately 62 degrees
Adjustable focus
None (NoIR)
15-way CSI-2 (Camera Serial Interface)
25mm x 23mm x 9mm
10g
Compatible with Raspberry Pi OS and other operating systems that support the Raspberry Pi camera interface.
Applications
The Raspberry Pi NoIR Camera Module V2 is suitable for a wide range of applications, including |
Security and surveillance systems
Robotics and automation
Thermal imaging and night vision
Machine vision and quality control
Media centers and home security systems
IoT projects and prototypes
Overall, the Raspberry Pi NoIR Camera Module V2 is a high-quality camera module that offers excellent performance, compact design, and adjustable focus, making it an ideal choice for a wide range of applications that require high-quality image and video capture.
Raspberry Pi NoIR Camera Module V2 - 8MP 1080P30
Overview
The Raspberry Pi NoIR Camera Module V2 is a high-quality, 8-megapixel camera module designed for use with Raspberry Pi boards. This camera module features a Sony IMX219 image sensor, and is capable of capturing 1080p video at 30 frames per second. The NoIR designation indicates that this camera module does not have an infrared filter, making it suitable for low-light applications and infrared-based computer vision projects.
Technical Specifications
Image sensor: Sony IMX219
Resolution: 8 megapixels (3280 x 2464 pixels)
Video resolution: 1080p at 30 frames per second
Field of view: 62.2 horizontal, 48.2 vertical
Focus range: 1m to infinity
Interface: CSI-2 (Camera Serial Interface)
Software Support
The Raspberry Pi NoIR Camera Module V2 is supported by the Raspberry Pi OS and can be accessed using the `raspistill` and `raspivid` commands. It is also compatible with various programming languages, including Python, C++, and Java.
Code Examples
### Example 1: Capturing a Still Image using Python
This example demonstrates how to use the Raspberry Pi NoIR Camera Module V2 to capture a still image using Python:
```python
import picamera
# Create a PiCamera object
camera = picamera.PiCamera()
# Set the camera resolution and format
camera.resolution = (3280, 2464)
camera.format = 'jpeg'
# Capture a still image
camera.capture('image.jpg')
# Close the camera
camera.close()
```
This code creates a `PiCamera` object, sets the camera resolution and format, captures a still image, and saves it to a file named `image.jpg`.
### Example 2: Recording Video using Python
This example demonstrates how to use the Raspberry Pi NoIR Camera Module V2 to record a video using Python:
```python
import picamera
# Create a PiCamera object
camera = picamera.Piamera()
# Set the camera resolution and format
camera.resolution = (1920, 1080)
camera.format = 'h264'
# Record a video for 10 seconds
camera.start_recording('video.h264')
camera.wait_recording(10)
camera.stop_recording()
# Close the camera
camera.close()
```
This code creates a `PiCamera` object, sets the camera resolution and format, starts recording a video, waits for 10 seconds, and stops recording.
### Example 3: Using OpenCV to Capture and Process Video Frames
This example demonstrates how to use the Raspberry Pi NoIR Camera Module V2 with OpenCV to capture and process video frames:
```python
import cv2
# Create a VideoCapture object
cap = cv2.VideoCapture(0)
while True:
# Read a frame from the camera
ret, frame = cap.read()
# Convert the frame to grayscale
gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
# Display the grayscale frame
cv2.imshow('frame', gray)
# Exit on key press
if cv2.waitKey(1) & 0xFF == ord('q'):
break
# Release the VideoCapture object
cap.release()
cv2.destroyAllWindows()
```
This code creates a `VideoCapture` object, reads frames from the camera, converts them to grayscale, and displays them using OpenCV. The program exits when the user presses the `q` key.
Additional Resources
Raspberry Pi Camera Module documentation: <https://www.raspberrypi.org/documentation/hardware/camera.md>
Picamera library documentation: <https://picamera.readthedocs.io/en/release-1.13/>
OpenCV documentation: <https://docs.opencv.org/master/>