Table of contents
- 5-megapixel OmniVision sensor
- 1.4um x 1.4um pixel
- Active array size 2582x1933
- Optical size: ¼”
- Field of view: 84.0° / 87.6°
- F-number: F=2.2 ±5%
- TV distortion: <1.5%
- Focal length: 2.5mm
- Focusing range: 10cm ~ ∞
- Dual lane MIPI output interface
- Board dimensions: 25 x 25 mm
The camera attaches to the Coral Dev Board with a 24-pin FFC.
Other features include:
- ISP function: Automatic exposure control (AEC), automatic white balance (AWB), automatic band filter (ABF), automatic 50/60 Hz lumination, automatic blacklevel calibration (ABLC).
- Image quality control: color saturation, hue, gamma, sharpness, lens correction, defective pixel canceling, and noise canceling.
- Support autofocus control (AFC) with embedded AF VCM Driver.
For more information about the sensor, read about the Omnivision SOC.
To set up the camera, read Connect a camera to the Dev Board.
|Module size||25 x 25 x 6.98 mm|
|Hole size/spacing||Diameter: 2.4 mm|
Horizontal spacing: 20 mm
Vertical spacing: 20 mm
|Cable size||150 x 12.5 mm|
|Module weight||3 g (3.6 g with cable)|
The camera supports one-shot autofocus and continuous autofocus modes.
The Dev Board's sysfs node for the autofocus hardware is at
/sys/module/ov5645_camera_mipi_v2/parameters/ov5645_af and it reads back the
decimal representation of the status register in the autofocus hardware. The read values
are as follows.
|0 (0x00)||Autofocus is running.|
|16 (0x10)||Autofocus is complete (focused).|
|32 (0x20)||Analyzing the image. This state occurs intermittently when attempting to reach focus. It occurs once during one-shot autofocus mode before focus locks, and it is the steady state during continous autofocus mode.|
|112 (0x70)||Idle. Focus is released and the lens is at it's resting (furthest) position.|
To change the autofocus mode, write one of the following values to the
/sys/module/ov5645_camera_mipi_v2/parameters/ov5645_af file as follows.
|0||Turn off autofocus.|
|1||Enable one-shot autofocus mode. The camera will seek focus and then lock focus. (It will analyze the image once, and focus once.)|
|2||Enable continuous autofocus mode. The camera will continously seek focus. (It will analyze the image and focus, then continue to analyze the image and refocus when necessary.)|
For example, the following command enables continuous autofocous:
echo 2 > /sys/module/ov5645_camera_mipi_v2/parameters/ov5645_af
We designed a simple camera adapter board to interface the camera with the Dev Board, as illustrated in figure 2.
The MIPI-CSI2 camera connector is a 24-pin flex cable connector that's designed for the Coral Camera. The pinouts for the camera's cable connector (on the camera module), are shown in table 4. Whereas the corresponding pins on the Dev Board's connector are shown in table 5.
|4||DVDD 1.2V (NC)||16||MCLK|
|10||CAM_PWDN 1.8V||22||AVDD 2.8V|
The Mendel system image on the Coral Dev Board includes a Python program called
captures images with the connected Coral Camera.
To start it using an interactive mode, just run
snapshot from the terminal.
Then use the following keys to control the camera:
- Spacebar to snap a photo
- R to refocus
- Q to quit (or Control+C)
When using this interactive mode, each time you press Spacebar,
it saves the image to the current directory as a JPEG. The filename includes an incrementing number,
img0000.jpg. Overwritting filenames is avoided by always starting with the first
available enumeration of the filename.
The command also accepts the following arguments:
||Enable one-shot mode: Capture just one picture and quit, instead of using the interactive mode that accepts keyboard commands.|
||The filename prefix. This name is also appended with a four-digit number to avoid
overwriting any file with the same prefix—the number is always the first enumeration that's not
used. For example, |
||The file format. The type may be either: |
snapshot code is located at
|1.0 (August 2019)||
|Beta (March 2019)||Initial release|
Is this content helpful?