Waveshare IMX219 camera modules provide 8MP imaging for computer vision and edge AI on Raspberry Pi 5.
Specs
- Sony IMX219, 8 megapixel, 3280×2464
- MIPI CSI-2 interface
- Available in 79.3-degree and 120-degree FOV
- IR-cut filter (standard) or no-IR for night vision
- Video: 1080p30, 720p60
Setup
- Connect CSI ribbon cable to Pi 5 camera port (CAM0 or CAM1).
- Enable camera:
sudo raspi-config> Interface > Camera. - Test:
rpicam-still -o test.jpg
OpenCV Basics
import cv2
from picamera2 import Picamera2
picam2 = Picamera2()
picam2.start()
while True:
frame = picam2.capture_array()
grey = cv2.cvtColor(frame, cv2.COLOR_RGB2GRAY)
cv2.imshow('Camera', grey)
if cv2.waitKey(1) & 0xFF == ord('q'): break
TensorFlow Lite Object Detection
import tflite_runtime.interpreter as tflite
interpreter = tflite.Interpreter(model_path='detect.tflite')
interpreter.allocate_tensors()
# Process camera frames through model for real-time detection
Projects
- People counter for retail foot traffic
- Bird/animal identification camera
- Quality inspection on production line
- License plate recognition
- Face detection for access control
Frequently Asked Questions
79.3 vs 120-degree FOV?
79.3 for focused subjects (face recognition). 120 for wide-area monitoring (security, counting).
Night vision?
Use the NoIR (no infrared filter) variant with IR LED illuminators.
Pi 5 vs Pi 4 for AI?
Pi 5 is ~2x faster for inference. Use Pi 5 for real-time object detection.
Multiple cameras?
Pi 5 has 2 CSI ports. Run dual cameras simultaneously for stereo vision.
Conclusion
Waveshare IMX219 cameras bring AI vision to Pi at an affordable price point. From people counting to quality inspection, the possibilities are vast.
Browse the full Waveshare collection at Zbotic.in with fast shipping across India.
Add comment