Solution

Focusing on FPGA image solution customization

FPGA simulation MIPI camera successfully integrated into NVIDIA AGX developer
  • FPGA simulation MIPI camera successfully integrated into NVIDIA AGX developer
FPGA simulation MIPI camera successfully integrated into NVIDIA AGX developer
FPGA simulation MIPI camera successfully integrated into NVIDIA AGX developer

FPGA simulated MIPI camera, successfully connectedNVIDIAAGX Developer

1. preface

Visual cameras are key to machine intelligence/automation, and NVIDIA Jetson supports cameras from multiple partners, including cameras with USB, Ethernet, MIPI, and other interfaces. Jetson provides a complete Jetpack SDK for these cameras, enabling users to quickly connect to these cameras and implement corresponding designs.

The list of cameras supported by Jetson can be found on the official website as follows:

https://developer.nvidia.com/embedded/jetson-partner-supported-cameras?t -1 supported jet son products=Origin&t1 supported jet son products=Xavier

image.png 

Select the CSI/MIPI interface and Orin suite, and the webpage will display a list of Jetson Partner supported cameras, mainly Sony's IMX290 IMX334、IMX179、IMX335、IMX415 , And Aptina's AR0234, AR0144, AR0822, etc. Therefore, for example, if users use NVIDIA's Jetson AGX Orin developer suite, the SDK of the suite natively supports CSI access to the sensors listed above, allowing users to quickly develop their own solutions.

image.png 

If you choose the camera from the above list and use it with the accompanying CSI adapter board, as the Camera Partner has already pre docked with various models of NVIDIA Jetson, the driver in the original factory image is already supported by default, and can be plug and play.

howeverIf we choose a sensor model outside the list, which is not a Camera Partner product, we cannot directly use it,For example, if I want to use Sony's IMX472, IMX252, Sitewe's SC2210, SC235HGS, etc., thenIt is necessary to upgrade the supporting hardware and driver software.For this, Aoweisi provides you with a complete solution, which can be equipped with any camera or choose FPGA integrated ISP.

2. FPGA analog MIPI camera accessJetsonprogramme

 

As shown in the following figure: The scheme adopts Yilingsi Titanium 16nm FPGA Ti60F225, collects image sensor data through MIPI CSI RX, undergoes a series of complex ISP operations inside the FPGA, and then sends the image data to the backend through MIPI CSI TX.

image.png 

Among them, VC-MIPI-AGX is the MIPI access sub card of the NVIDIA Jetson AGX Orin developer kit developed by Aoweisi. As shown in the figure below, it is the MIPI card slot of AGX and the access sub card we designed. We use a high-speed and stable TypeC 3.0 data cable to transmit MIPI signals. The current solution can support 2 MIPI CSI channels, with a maximum bandwidth of 6Gbps per channel. At present, the solution has been successfully integrated into AGX, stable and reliable, and the baking machine has passed the test.

image.png 

 

2.1Introduction to Yilingsi MIPI

The low power consumption, high bandwidth, and small size characteristics of the Yilingsi 16nm titanium series FPGA fully empower terminal products to make them innovative and competitive. The titanium series Ti60 can support multi camera input, multi type screen driver, high-performance RISC-V soft core and other functions with MIPI/LVDS interfaces, suitable for various camera and sensor systems and other scene applications.

image.png 

Therefore, we chose Yilingsi's FPGA as the main controller, fully utilizing its high-speed and low-power characteristics to complete the collection of MIPI CSI, ISP image processing, and transmission of MIPI CSI. The MIPI PHY of Yilingsi Ti60 FPGA is 1.5Gbps single channel, and 4 lanes support 6Gbps. At 85% effective bandwidth, the effective transmission resolution/frame rate is evaluated as follows:

RGB888 transmission

Effective bandwidth

Actual bandwidth

(85%)

result

RGB888 24bit transmission

1920* 1080@60

Effective bandwidth=1920 * 1080 * 8bit * 60 * 3=2.986Gbps

3.513Gbps

1920* 1080@100

Effective bandwidth=1920 * 1080 * 8bit * 100 * 3=5.286Gbps

6.219Gbps

X

1920* 1080@120

Effective bandwidth=1920 * 1080 * 8bit * 120 * 3=5.972Gbps

7.026Gbps

X

Bayer 8-bit transmission

1920* 1080@60

Effective bandwidth=1920 * 1080 * 8bit * 60=0.9953Gbps

1.171Gbps

1920* 1080@100

Effective bandwidth=1920 * 1080 * 8bit * 100=1.659Gbps

1.952Gbps

1920* 1080@120

Effective bandwidth=1920 * 1080 * 8bit * 120=1.991Gbps

2.342Gbps

4096* 2304@60

Effective bandwidth=1920 * 1080 * 8bit * 60=4.530Gbps

5.330Gbps

Adopting RGB888 or Bayer 8-bit transmission has its advantages and disadvantages:

1) RGB888 8-bit transmission, AGX can directly obtain image data, with the advantage of no additional source data processing overhead; The downside is that due to Bayer's 3x bandwidth, the current FPGA scheme can only support up to 1080P60 scheme.

2) Bayer 8-bit transmission, with a bandwidth of 1/3 of RGB888, can support higher resolutions (4K60), and at the same resolution, can support longer transmission distances than RGB888; The shortcoming is that AGX's CPU (Neon) is needed to process the Bayer2RGB algorithm. Currently, testing 1080P120 consumes 43% of the resources of one CPU (a total of 12 CPUs, with single core resource consumption as shown in the following figure).

Based on comprehensive evaluation, due to the current use of only one AGX CPU and the user's algorithm mainly running CUDA on the GPU, the advantage of using Bayer transmission is more obvious.

image.png 

2.2Introduction to Aoweisi ISP

NVIDIA can also perform complete ISP image processing, and even the ISP function and performance implemented by ASIC are more powerful than FPGA. However, in this solution, we have to use FPGA for complete ISP processing, mainly for the following reasons:

1) NVIDIA still requires a lot of tuning work for the selected sensors;

2) NVIDIA's ISP does not support 8-bit RAW input mode;

3) Some application engineers are not familiar with the ISP field;

4) Some ISP algorithms are not included in NVIDIA;

5) The demand for low latency requires a pipeline to complete ISP.

In view of this, we have completed a complete ISP processing process using FPGA. MIPI CSI directly outputs the data after FPGA image processing. After NVIDIA AGX receives the RGB data, users can directly carry out subsequent application algorithms. The ISP image processing pipeline based on Yilingsi FPGA is as follows:

 

image.png 

The self-developed assembly line ISP by Aoweisi and its related features are shown in the table below:

parameter

describe

Parameter switch

Black Leveling

Black level correction

Dead Pixel Correction

Bad Point Correction Module (DPC)

Auto Exposure

Automatic exposure algorithm module

U adjustable switch

U AE brightness target value

U AE sensitivity

Auto White Balance

Automatic white balance algorithm module

Bayer2RGB

Bayer to RGB domain

RGB2YUV

RGB to YUV domain

Gamma Correction

YUV domain Gamma correction

U adjustable parameters

Color Correction

RGB color correction

2DNR

2D noise reduction algorithm module

U adjustable switch

U adjustable strength

Sharping

Edge sharpening module

U adjustable switch

U adjustable strength

Saturation

Saturation adjustment

U adjustable strength

Contrast

Contrast enhancement module

U adjustable strength

Brightness

Brightness adjustment module

U adjustable strength

Scaler&Crop

Zoom/Screenshot Module

U adjustable parameters

YUV2RGB

YUV to RGB module

 

2.3AGX Orin Access Driver

In terms of hardware, the VC-MIPI-AGX sub card designed by Ovis is used to achieve user MIPICSI to AGX Samtec input. In terms of software, it is necessary to develop specific Sensor driver adaptations based on hardware board and module design. If there are special customized control requirements, such as ISP parameter control, it is necessary to modify the Camera framework for deep customization development.

For the protection of system security, Jetson's kernel compilation was turned on when it left the factoryDriver Signature OptionsIf the newly developed driver signature certificate does not match, the driver ko file cannot be loaded. However, most users are unable to obtain the signature certificate from NVIDIA when compiling factory images, which cannot solve the ko signature problem. If you need to use a new sensor module, you will need toRecompile the kernel, generate a full system image, and burnsystemThe workload is quite enormous.

 

Aoweisi solves the above-mentioned software and hardware problems for customers and creatively uses typeC 3.0 cables as data transmission media, with reliable connections and stable communication. Based on the NVIDIA Jetson AGX Orin developer platform, the self-developed FPGA MIPI ISP camera connection environment is connected as follows:

 image.png

3. Effect display

image.png 

Function

Programme

SZOVS,Born for FPGA images…

Buy Now

Detailed introduction


基于MIPI的FPGA-ISP相机标准化

  • 1.被迫放弃了USB3.0


基于FPGA的全国产ISP相机,我们已经先后努力了2个年头,也持续向大家汇报过我们的进展:


  1. 时隔10年,我将重新杀回国产FPGA
  2. 全国产0延时USB3.0 ISP工业相机但就2年的坎坷经历来看,这也许是个伪命题,因为不管是从需求侧还是应用侧,虽然我做到了全国产,但仍有2个问题是无解:


  • USB3.0接口的相机,有海康大华等龙头在,后来者入场很难
  • USB3.0接口的相机,在冲击抗震中的表现不佳,是个难题
  • USB3.0接口接入ARM协议解析延时更大,无法做到低延时


USB接口会由于震动撞击等脱落,导致触电接触不良,这需要耗费大量的精力去做自恢复以及断点重传尽管扛住了了苛刻的测试流程,也安装到了甲板上,但始终觉得南辕北辙,身心疲惫——方向不对,努力白费!
经过了一年多的持续迭代与探索,我们终于在工业相机模组应用上,放弃了USB3.0接口,放弃了在全国产方寸T630 USB3.0方案上,投入1年多研发精力的方案,全面走向MIPI CSI接口,并且推出了标准化产品。


  1. 迭代6代后,终于推出MIPI ISP全国产相机
  2. FPGA在低空经济中的入场机会:ISP相机


  • 2.全国产关键物料选型


卡脖子确实难受,是一种呼吸不过来的憋屈,那么国产化仍然是坚定不移的,未来10年的战略,所以我们一如既往地坚持:全国产化ISP相机
如下是我们的全国产相机的选型/架构:
微信截图_20250416233958.jpg
这里的关键元件选型,如下:


  • FPGA:易灵思钛金16nm Ti60F225,低功耗高性能
  • Sensor:思特威CMOS图像传感器,全国产高性能
  • DDR3:FPGA合封DDR3,追求体积
  • 其他:各种国产芯片选型,


经过1年的迭代,以及几个客户的先后系统集成+对接测试后,一次性推出6个机型(4种传感器),如下图所示:

微信截图_20250416234651.jpg

其中有几个型号重点描述下:


  1. VM-200CR是目前出货最多的彩色1/1.8寸1080P60的机芯;
  2. VH-130MG则是目前130万无线图传客户喜欢的HDMI输出模式;
  3. VM-500MG的成本很高,参数性能也很高,面向高端需求
  4. VM-130CG功耗非常夸张,做到720P 240帧的实时ISP,将近3W++


图片

  • 3.全国产ISP相机特性


利用易灵思FPGA高速并行低功耗等特性,我们在有限的资源内,将流水线按ISP的性能与延时做到了极致。
同时,利用FPGA来实现ISP,相对于ARM的优势,主要有如下:
微信截图_20250416234909.jpg
尤其是帮客户解决了Sensor对接,以及ISP调试的工作量,加上FPGA 低延时的特性,是基于FPGA的ISP相机的最大特性。如下所示,是我们在FPGA上实现的ISP Pipeline:
微信截图_20250416234936.jpg
基于此,我们调试了几款思特威的主流CMOS传感器,包括130→500万,以及卷帘/全局曝光传感器,主要有如下:
微信截图_20250416234948.jpg


  • IPEX同轴20P传输


在车载/无人机应用领域,往往希望线缆可以有以下特性:


  1. 传输速率高
  2. 线缆材质软
  3. 接口安装稳定
  4. 10-50cm的传输(更长建议SDI)


USB3.0除了传输带宽还可以,需求2+3着实无法满足,鉴于此,我们选用了无人机常用的IPEX线缆,信号线都走同轴,号称单线可以运行10Gbps的速率(我们实测过2.5Gbps)。
IPEX(被动元件)是进口的品牌,但是也有国产替代型号;另外工厂对IPEX同轴线的加工,已经是轻车熟路,因此选型没有壁垒。自从我们选用IPEX同轴线缆进行传输后,终于打破了1米传输高速MIPI ISP相机的限制。
图片
如下是我们提供给定制客户的80cm的IPEX 20P同轴线,双目接入了NVIDIA Jetson,已经稳定上机测试,完美解决了原来TypeC传输接口的问题。
微信图片_20250417000804 拷贝.jpg


  • 成功案例分享


1)单目VM-200CR接入FPGA
如下所示,客户基于易灵思钛金ti60F100做机器视觉的开发,但又不想把精力放在ISP上,因此采用我们的FPGA-ISP相机,50+cm传输后接入Ti60F100做显示后处理。
🔺为了加速客户开发,我们提供基于Ti60F100 接入VM-200CR的源代码级FPGA工程。
微信截图_20250416235541.jpg
2)双目VM-200CR接入RK3588
这是目前行业客户需求量最大的应用,即采用RK进行无人机侦察,或者低空飞行的相关检测应用。RK3588有强大的算力,但负责AI开发的工程师,仍然有3个问题:


  • 负责AI的同时不会RK ISP
  • 没有更多精力投入ISP Tuning
  • RK处理启动+延时太慢了


因此,也就有了我们FPGA实现ISP相机的需求。如下是客户RK3588接入奥唯思双目VM-200CR的实物演示(原先用USB3.0方案,最终放弃):
微信截图_20250416235632.jpg          
在国产ISP相机方案上,我们将持续迭代,不断地优化图像效果功耗
如果对我们产品感兴趣,可以联系我们:
https://item.taobao.com/item.htm?ft=t&id=830528734362
或在”奥唯思FPGA店铺“ 搜索 ISP相机(批量可谈):

微信截图_20250417001230.jpg




 

302, Building 17, Nanshan Ruiyuan, Xili Longzhu 3rd Road, Nanshan District, Shenzhen City, Guangdong Province

19926595670

cb@szovs.com

WeChat

Skype

Official WeChat

CopyRight © 2023 Shenzhen Aoweisi(SZOVS) All Right Reserved.
Service

website

二维码

FPGA website

Official account

二维码

Official WeChat public account

Official account

二维码

Official account

Skype

skype

Skype

Mailbox

Mailbox

cb@szovs.com

Comeback