IMX477 12.3MP Camera
| ||
Introduction
Parameters
- Sensor
- IMX477R
- 12.3 million pixels: 4056(H) x 3040(V)
- CMOS diagonal length: 7.9mm
- Single pixel size: 1.55μm(H) x 1.55μm (V)
- Output format: RAW12/10/8, COMP8
- Lens standard
- C-mount
- CS-mount (including C/CS connection ring)
- IR filter: integrated
Specification of Lens
Lens | 6mm Wide Angle Lens |
16mm Telephoto Lens |
25mm Telephoto Lens |
35mm Telephoto Lens |
8-50mm Zoom Lens |
Size | 1/2" | 1" | 2/3" | 1" | 1/2.3" |
F/No | F1.2 | F1.4-16 | F1.4-16 | F1.7-16 | F1.4 |
Connector | CS-mount | C-mount | |||
FoV | 63° | 1″ 44.6° × 33.6° 2/3″ 30.0° × 23.2° 1/1.8″ 24.7° × 18.6° 1/2″ 21.8° ×16.4° |
2/3" 20.2°×15.1° 1/1.8″ 16.5°×12.4° 1/2″ 14.5°×10.5° |
1″ 20.9°×15.8° 2/3″ 14.4°×10.8° 1/2″ 10.5°×7.9° |
45°-5.35° |
BFL | 7.53mm | 17.53mm | |||
TTL | - | 67.53mm | - | ||
Distortion | - | 1″(-0.7%) 1/2″(-0.5%) 1/3″(-0.15%) |
0.05% | 0.35% | - |
M.O.D. | 0.20m | 0.20m | 0.25m | 0.30m | 0.20m |
Dimenstion | Φ30.00 × 34.00mm | Φ39.00 × 50.00mm | Φ34.00×34.00mm | Φ35.00×34.00mm | Φ40.00×68.30mm |
Aperature | Manual | ||||
Weight | 53g | 133.7g | 82g | 78g | 148g |
Notice
IMX477 12.3MP Camera can only support the Raspberry Pi Compute Module series, it cannot be used with Raspberry Pi boards like Raspberry Pi Model 4B.
IMX477 12.3MP Camera can be used with Jetson Nano Developer Kit, if you want to use it with Jetson Nano, you need to install the driver. Please backup your OS before you install the driver because the driver is not suitable for IMX219.
Hardware Connection
To test the Camera, you need to connect a HDMI display or a DIS display for previewing.
The connectors of the DSI interface (display) and the CSI interface (camera) look the same, please take care of it when you connect the camera. The CSI interface is placed between the Audio jack and the HDMI port. The CSI connector of Pi zero is beside the Power interface. If you use the Compute Module, please check the actual place of the carrier board.
- Connect to Raspberry Pi 5
- Place the metal surface of the FPC cable towards the wired network port, then connect to the CSI port. The Pi5 has two CSI ports; either port can be used for connection.
- Connect to Pi Zero Series
- Connect to other Raspberry Pi boards
About the model
Photosensitive Chip Model | Supported Raspberry Pi Board Model | Supported Driver Type |
---|---|---|
OV5647 | All Raspberry Pi boards | libcamera / Raspicam |
OV9281 | All Raspberry Pi boards | libcamera |
IMX219 (Official Raspberry Pi) | All Raspberry Pi boards | libcamera / Raspicam |
IMX219 (Third party) | Raspberry Pi Compute Module | libcamera |
IMX290/IMX327 | All Raspberry Pi boards | libcamera |
IMX378 | All Raspberry Pi boards | libcamera |
IMX477 (Official Raspberry Pi) | All Raspberry Pi boards | libcamera / Raspicam |
IMX477 (Third party) | Raspberry Pi Compute Module | libcamera |
IMX519 | All Raspberry Pi boards | libcamera (driver required) |
IMX708 (Raspberry Pi Camera Module 3) | All Raspberry Pi boards | libcamera |
IMX296 (Raspberry Pi Global Camera) | All Raspberry Pi boards | libcamera |
Test Camera
Software Configuration
If you are using the latest Raspberry Pi Camera Module 3 or Raspberry Pi Global Shutter Camera, you need to run the following command to update the system (network connection is required).
sudo apt-get update -y sudo apt-get upgrade-
If you do not use an official Raspberry Pi camera, you need to configure the "config.txt " file. If you use the latest Bookworm system, you need to configure /boot/firmware/config.txt.
sudo nano /boot/config.txt #If using the bookworm system sudo nano /boot/firmware/config.txt
Find "camera-auto-detect=1" and modify it to "camera_auto_detect=0".
At the end of the file, add the following setting statements according to the camera model.
Model | Set Statement |
---|---|
OV9281 | dtoverlay=ov9281 |
IMX290/IMX327 | dtoverlay=imx290, clock-frequency=37125000 |
IMX378 | dtoverlay=imx378 |
IMX219 | dtoverlay=imx219 |
IMX477 | dtoverlay=imx477 |
IMX708 | dtoverlay=imx708 |
Binocular Camera Configuration
- Currently, both the CM4 and Raspberry Pi 5 support the connection of two cameras.
- If you want to simultaneously connect to two cameras, you can designate the cameras by adding 'cam0' and 'cam1' after the corresponding camera configuration statements.
- For example, the imx219 is connected to the cam0 interface and the ov5647 camera is connected to the cam1 interface.
dtoverlay=imx219,cam0 dtoverlay=ov5647,cam1
Test Camera Commands
Enter the Raspberry Pi and enable the camera to preview:
sudo libcamera-hello -t 0
If you want to close the preview window, you can directly press the keys "Alt-F4", or click "x" to close. Also, you can return to the terminal interface and press Ctrl-c to end the demo.
Note: if using "Camera Module 3", the auto-focus function is enabled.
Test Binocular Camera
- When testing the binocular camera, you need to add "--camera" to specify the camera. If you do not add this parameter, "cam0" is specified by default.
sudo libcamera-hello -t 0 --camera 0 sudo libcamera-hello -t 0 --camera 1
FAQ
The following OpenCV adjustment code is for reference only. (The code is shared by RPi Camera (G) users)
import picamera import picamera.array import cv2 from time import sleep import numpy as np def test_gcamera(): cv2.namedWindow("img",0) with picamera.PiCamera() as camera: camera.resolution = (1920, 1080) camera.awb_mode = 'off' rg, bg = (1.8, 1.4) camera.awb_gains = (rg, bg) with picamera.array.PiRGBArray(camera) as output: for foo in camera.capture_continuous(output, 'rgb', use_video_port=True): img = cv2.cvtColor(output.array, cv2.COLOR_RGB2BGR) cv2.imshow("img", img) cv2.waitKey(1) cv2.imwrite("test.jpg",img) r, g, b = (np.mean(output.array[..., i]) for i in range(3)) if abs(r - g) > 2: if r > g: rg -= 0.1 else: rg += 0.1 if abs(b - g) > 1: if b > g: bg -= 0.1 else: bg += 0.1 camera.awb_gains = (rg, bg) output.seek(0) output.truncate(0) if __name__=="__main__": test_gcamera()
{{{5}}}
Resources
- User manual
- Camera Guide
- Raspberry Pi High Quality Camera Getting Started
- HQ Camera Drawing
- C-Mount Lens Guide
- CS-Mount Lens Guide
- FCC
- CE