The Picamera2 Library
Raspberry Pi High Quality Camera
Sony IMX477R stacked, back-illuminated sensor, 12.3 megapixels, 7.9 mm sensor diagonal, 1.55 μm × 1.55 μm pixel size
Output: RAW12/10/8, COMP8
Back focus length of lens: 2.6mm–11.8mm (M12 Mount variant), 12.5mm–22.4mm (CS Mount variant)
Lens sensor format: 1/2.3” (7.9mm) or larger
IR cut filter: Integrated
Ribbon cable length: 200 mm
Tripod mount: 1/4”-20
https://datasheets.raspberrypi.com/hq-camera/hq-camera-product-brief.pdf
https://datasheets.raspberrypi.com/hq-camera/hq-camera-cs-mechanical-drawing.pdf
https://datasheets.raspberrypi.com/hq-camera/hq-camera-m12-mechanical-drawing.pdf
https://datasheets.raspberrypi.com/hq-camera/c-mount-lens-guide.pdf
https://datasheets.raspberrypi.com/hq-camera/cs-mount-lens-guide.pdf
Docs:
12.3 megapixel Sony IMX477 sensor, 7.9mm diagonal image size, and back-illuminated sensor architecture, with adjustable back focus. Available with your choice of C/CS mount or M12 mount.
Raspberry Pi Camera Module 2 NoIR
The infrared Raspberry Pi Camera Module 2 NoIR replaced the original PiNoIR Camera Module in April 2016. The Camera Module 2 Pi NoIR has a Sony IMX219 8-megapixel sensor (compared to the 5-megapixel OmniVision OV5647 sensor of the original camera).
The Camera Module 2 NoIR gives you everything the standard Camera Module offers, with one difference: it does not employ an infrared filter. (NoIR = No Infrared filter.) This means that pictures you take by daylight will look decidedly curious, but it gives you the ability to see in the dark with infrared lighting.
We bundle a little square of blue gel with the Camera Module 2 NoIR, which you can use with the camera to monitor the health of green plants. The NoIR variant is very popular among wildlife hobbyists: with a few infrared LEDs, you can monitor what nocturnal animals are doing in your garden without disturbing them.
The camera works with all models of Raspberry Pi that have a CSI connector (all except Raspberry Pi 400 and the 2016 launch version of Zero). It can be accessed through libcamera and the libcamera-based Picamera2 Python library beta.
All models of Raspberry Pi Zero require a Raspberry Pi Zero camera cable; the standard cable supplied with the camera module is not compatible with the Raspberry Pi Zero camera connector. Suitable cables are available at low cost from many Raspberry Pi Approved Resellers, and are supplied with the Raspberry Pi Zero Case.
Docs:
The infrared Raspberry Pi Camera Module 2 NoIR replaced the original PiNoIR Camera Module in April 2016
Raspberry Pi Camera Module 2
The Raspberry Pi Camera Module 2 replaced the original Camera Module in April 2016. The v2 Camera Module has a Sony IMX219 8-megapixel sensor (compared to the 5-megapixel OmniVision OV5647 sensor of the original camera).
The Camera Module 2 can be used to take high-definition video, as well as stills photographs. It’s easy to use for beginners, but has plenty to offer advanced users if you’re looking to expand your knowledge. There are lots of examples online of people using it for time-lapse, slow-motion, and other video cleverness. You can also use the libraries we bundle with the camera to create effects.
You can read all the gory details about IMX219 and the Exmor R back-illuminated sensor architecture on Sony’s website, but suffice to say this is more than just a resolution upgrade: it’s a leap forward in image quality, colour fidelity, and low-light performance. It supports 1080p30, 720p60 and VGA90 video modes, as well as still capture. It attaches via a 15cm ribbon cable to the CSI port on the Raspberry Pi.
The camera works with all models of Raspberry Pi 1, 2, 3 and 4. It can be accessed through the MMAL and V4L APIs, and there are numerous third-party libraries built for it, including the Picamera Python library. See the Getting Started with Picamera resource to learn how to use it.
All models of Raspberry Pi Zero require a Raspberry Pi Zero camera cable; the standard cable supplied with the camera module is not compatible with the Raspberry Pi Zero camera connector. Suitable cables are available at low cost from many Raspberry Pi Approved Resellers, and are supplied with the Raspberry Pi Zero Case.
The camera module is very popular in home security applications, and in wildlife camera traps.
Docs:
The Raspberry Pi Camera Module 2 replaced the original Camera Module in April 2016
Raspberry Pi Camera Module 3
Back-illuminated, stacked CMOS 12-megapixel Sony IMX708 image sensor
High signal-to-noise ratio (SNR)
Built-in 2D Dynamic Defect Pixel Correction (DPC)
Phase Detection Autofocus (PDAF) for rapid autofocus
QBC Re-mosaic function
HDR mode (up to 3 megapixel output)
CSI-2 serial data output
2-wire serial communication (supports I2C fast mode and fast mode plus)
2-wire serial control of focus mechanism
Resolution: 11.9 megapixels
Sensor size: 7.4mm sensor diagonal
Pixel size: 1.4μm × 1.4μm
Horizontal/vertical: 4608 × 2592 pixels
Diagonal field of view: 75 degrees (Camera Module 3, Camera Module 3 NoIR), 120 degrees (Camera Module 3 Wide, Camera Module 3 NoIR Wide)
Common video modes: 1080p50, 720p100, 480p120
Output: RAW10
IR cut filter: Integrated in standard variants; not present in NoIR variants
Dimensions: 25 × 24 × 11.5mm (12.4mm height for Wide variants)
Ribbon cable length: 200mm
Cable connector: 15 × 1mm FPC
https://datasheets.raspberrypi.com/camera/camera-module-3-product-brief.pdf
https://datasheets.raspberrypi.com/camera/camera-module-3-standard-mechanical-drawing.pdf
https://datasheets.raspberrypi.com/camera/camera-module-3-wide-mechanical-drawing.pdf
Docs:
The classic compact camera for Raspberry Pi with a 12MP sensor and autofocus
Quality of (still) life
Camera Module 3 comes with an improved 12MP IMX708 Quad Bayer sensor and features a High Dynamic Range mode, making it the highest quality Camera Module we’ve made so far.
Look from a different perspective
Need a wider field of view than the standard 75 degrees? Camera Module 3 Wide features an ultra-wide 120 degree angle of view, meaning your Raspberry Pi can see more of the world
Focus on the good
Camera Module 3 features ultra-fast auto focus as standard. A rich library of software commands means you can have total control over what you focus on and how you do it.
See things differently
Both the standard and wide cameras come with the option of having no IR filter, turning the Camera Module 3 into a night-vision camera when used with infrared lighting.
Not just for stills
Camera Module 3 can record full HD video at 50fps, with higher frame rates available at lower resolutions. Featuring an HDR mode and autofocus, it not only provides great stills quality, but is also a fantastic tool for video recording and streaming. Watch our video filmed entirely on Camera Module 3 to see it in action.
For developers
Camera Module 3 takes advantage of the Raspberry Pi Open Source Camera System powered by libcamera. This rich set of libraries gives developers precise control over image processing and better access to the internals of Camera Module 3.
For beginners
The latest version of Raspberry Pi OS comes pre-installed with a beta of Picamera2, a Python library developed here at Raspberry Pi in Cambridge. For beginners and advanced users alike, Picamera2 is perfect for everything from home projects to machine learning applications.