当前位置:网站首页>RK1126平台项目总结
RK1126平台项目总结
2022-07-02 15:18:00 【QMCY_jason】
项目的大概流程是 从摄像头读数据然后经过ai分析 输出ai分析结果编码成2路venc的流 然后 起一个rtsp服务器 供后续模块 处理
但是从需求来看的话其实很简单
但是实际上做的时候还是会遇到一些坑的
程序起来之后会起一个http服务 等待主控下发的各种指令
这些指令包括视频参数的设置 ai功能的开启还是关闭 rtsp服务的开启关闭
模型文件的上传下载,jpeg图片上传 做ai分析 等等
基于之前的3531开发经验 ,
比3531 多了一个地方 就是3531不涉及到文件的上传
1126 需要支持文件的上传一个是ai模型文件的上传 另一个是jpeg图片的上传。
然后程序监听http事件 做相应的处理
主要是做ai处理和不做ai处理的流程不太一样
不做ai助理的话直接vi rga venc出来
如果做ai处理的话就是vi rknn 因为需要两路流 所以需要对yuv数据进行缩放,而如果不做ai处理的话 直接调用rga 不需要手动缩放yuv数据 目前已经实现了 调用的其实也是rga提供的api imresize之类的,主要就是需要理解相关的数据接口和api就可以了
由于ai分析 是另一位工程师做的 我需要调用他的模块 我给他yuv数据 然做AI分析之后 给出AI分析结果并且在yuv数据上画框框什么的 。
然后还需要的就是OSD功能 ,把梅思平台之前的OSD直接拿过来之后 发现显示什么的都不正常 目前还没有时间来仔细研究这块 如下图 RK平台只支持ARGB8888一个像素占4个字节
而原来海思的可以设置成ARGB565什么的很多种格式 一个像素可以只占2个字节 原理是通过FreeType加载ttf字体然后将字体转为bitmap的结构 然后通过各自平台提供的接口渲染到venc通道上面 同样的代码拿过来之后 可以发现主要有两个问题
1,只有一个osd却显示了两行
2.字体颜色设置的白色但是不知道为啥部分区域变红

目前只是搭了个框架 许多细节功能还没完成 等完成之后 再更新到这里
边栏推荐
- chrome浏览器快速访问stackoverflow
- easyswoole3.2重启不成功
- Green bamboo biological sprint Hong Kong stocks: loss of more than 500million during the year, tiger medicine and Beijing Yizhuang are shareholders
- JS20 array flattening
- Eye of depth (III) -- determinant of matrix
- 选择 SAP Spartacus 作为 SAP Commerce Cloud Storefront 实现框架的五个理由
- 【目标跟踪】|数据集汇总
- ROS knowledge points -- the difference between ros:: nodehandle N and NH ("~")
- A few lines of code to complete RPC service registration and discovery
- Platform management background and business menu resource management: business permissions and menu resource management design
猜你喜欢

【目标跟踪】|数据集汇总

Sword finger offer 27 Image of binary tree

Map集合详细讲解

阿里天池SQL学习笔记——DAY3

线性规划例题 投资的收益与风险

Si446 usage record (I): basic data acquisition
![[非线性控制理论]7_High gain and High Frequency](/img/e5/6c5ca4a89c97d9613cddccb281b35b.png)
[非线性控制理论]7_High gain and High Frequency

Sword finger offer 24 Reverse linked list

TCP拥塞控制详解 | 2. 背景

Fuyuan medicine is listed on the Shanghai Stock Exchange: the market value is 10.5 billion, and Hu Baifan is worth more than 4billion
随机推荐
VScode知识点——常见报错
Blog theme "text" summer fresh Special Edition
牛客JS2 文件扩展名
Idea2021.1 installation tutorial
[fluent] dart data type map type (create map set | initialize map set | traverse map set)
Jiuxian's IPO was terminated: Sequoia and Dongfang Fuhai were shareholders who had planned to raise 1billion yuan
SAP commerce cloud storefront framework selection: accelerator or Spartacus?
Sword finger offer 27 Image of binary tree
A few lines of code to complete RPC service registration and discovery
Niuke js3 separator
将您的基于 Accelerator 的 SAP Commerce Cloud Storefront 迁移到 Spartacus
chrome浏览器快速访问stackoverflow
Believe in yourself and finish the JVM interview this time
Sword finger offer 21 Adjust the array order so that odd numbers precede even numbers
How to quickly distinguish controlled components from uncontrolled components?
visibilitychange – 指定标签页可见时,刷新页面数据
Si446 usage record (II): generate header files using wds3
人生的开始
easyswoole3.2重启不成功
例题 非线性整数规划