Camera Library
VERSION | RELEASED | COMMENTS | ||
---|---|---|---|---|
2.0.0 | 2025-07-01 | Provides a high-level interface for camera operations, including image capture, processing, and configuration using the MIPI interface on xcore.ai. This library abstracts the complexities of camera hardware, providing a simple API for developers. | VIEW HTML VIEW PDF | ZIP |
Summary¶
lib_camera
is a library for controlling cameras using XCORE.AI. It provides an API for manipulating cameras, and perofrming Image Singal Processing (ISP) functions.
Features¶
Camera Interface: - MIPI-CSI2 interface for camera connection - I2C interface for camera control
Board Supported: - xcore.ai Vision Development Kit (XK-EVK-XU316-AIV)
Sensor Supported: - Sony IMX219 (Raspberry Pi Camera V2)
Capture and ISP: - RAW8 capture. - RGB888 capture. - Asynchronous Streaming Mode. - Dynamic Region of interest (ROI) selection. - Support the following downsample factors: x1, x2, x4. - Auto White Balance (AWB) control. - Auto Exposure (AE) control. - Sw Image rotation (90 degrees). - Sensor Image rotation (180 degrees). - Sensor Image Flip (horizontal and vertical).
Known issues¶
The library is designed to work with the IMX219 sensor. Other sensors may require modifications to the library. More information on how to add your own sensor can be found in the documentation.
White balancing is based on static white balancing of the sensor IMX219. The static values are not optimal for all lighting conditions. When using a different sensor, the static values should be adjusted to match the sensor’s characteristics.
Output Image Size must be a multiple of four.
Development repo¶
Required tools¶
XTC tools: 15.3.1 XTC Software Tools.
Python: 3.10 or later Python.
CMake: 3.21 or later CMAKE.
Required libraries (dependencies)¶
Support¶
This package is supported by XMOS Ltd. Issues can be raised against the software at http://www.xmos.com/support