hjx

hjx

0个粉丝

2

问答

0

专栏

0

资料

hjx  发布于  2026-07-08 18:24:03
采纳率 50%
共2个问答
821

海思 PQTools 使用时显示无法注册ae库 awb库

悬赏金¥ 10
已结题
   

背景:
目前仿照os08a20编写的一款名为sc233hgs的传感器驱动。驱动文件包括sc233hgs_cmos.c sc233hgs_cmos.h sc233hgs_sensor_ctl.c sc233hgs_cmos_ex.h 四个文件。

驱动文件完成现状:

  1. sc233hgs_cmos_ex.h的具体参数我完全照抄os08a20_cmos_ex.h的配置 。
  2. sc233hgs_cmos.c中ISP AE AWB 注册回调部分我已完成,其中AE AWB中的参数可能不准确
  3. sc233hgs_sensor_ctl.c 中主要通过iic对传感器进行配置

PQTools配置文件:
sc233hgs_1200P60.ini:开启了ISP、 MIPI 、VI 、VPSS 、VENC 、VB 、SYS 。bind绑定链路为链路是 VI -> VPSS -> VENC

问题描述:
我已实现 mipi→vi→vpss→venc 的一套推流显示,并且能显示出传感器图像,不过因为isp参数问题导致图像颜色不太正常。但应该能说明我的传感器驱动应该是没有太大。

在海思SS928板端运行PQTools时,当sensor_ID为0传感器驱动sensor_register_callback函数中的isp ae awb 回调注册成功时,紧接着会显示无法注册ae库 awb库 ,运行后会持续性刷屏显示 ae awb 运算结果为0 ,且无PQTools推流图像。

但在PC端 PQTools 仍能连接 SS928板端 的程序,且能通过PQ Capture Tool工具抓取RAW image的彩色图像 , 但抓取JPEG image 和YUV image都是纯黑色图像,应该是ISP没生效的原因。

不知道为什么使用PQtools时 ae awb会无法注册。

传感器驱动sensor_register_callback函数中的isp ae awb 回调部分截图:

isp ae awb 回调注册成功 以及 无法注册ae库 awb库报错信息如下:
[Info][sensor_register_callback:1455] ot_mpi_isp_sensor_reg_callback ret=0
[Info][sensor_register_callback:1470] ot_mpi_ae_sensor_reg_callback ret=0
[Info][sensor_register_callback:1484] ot_mpi_awb_sensor_reg_callback ret=0
linear mode
[Func]:ae_sns_initialize [Line]:5244 [Info]:Sensor doesn’t register to ae(0)!
[Func]:awb_init [Line]:1241 [Info]:Sensor doesn’t register to awb(0)!

无法注册ae库 awb库报错截图:

显示 ae awb 运算结果为0报错信息如下:
[Func]:ae_result_check [Line]:1214 [Info]:int_time 0 should not be less than 1, current is 0
[Func]:ae_result_check [Line]:1221 [Info]:again within [1024 4194303] current is 0
[Func]:ae_result_check [Line]:1225 [Info]:dgain within [1024 4194303] current is 0
[Func]:ae_result_check [Line]:1229 [Info]:isp_dgain within [256 65536] current is 0
[Func]:ae_result_check [Line]:1232 [Info]:ae_run_interval should bigger than 0 current is 0
[Func]:ae_result_check [Line]:1235 [Info]:ae iso should bigger than 100 current is 0
[Func]:ot_ae_run_callback [Line]:1277 [Info]:WARNING!! ISP[0] run ae lib err!
[Func]:isp_awb_run [Line]:944 [Info]:WARNING!! ISP[0] run awb lib err!
[Func]:awb_result_check [Line]:435 [Info]:awb result white_balance_gain[0] 0 should be in (0, 1048320]
[Func]:awb_result_check [Line]:435 [Info]:awb result white_balance_gain[1] 0 should be in (0, 1048320]
[Func]:awb_result_check [Line]:435 [Info]:awb result white_balance_gain[2] 0 should be in (0, 1048320]
[Func]:awb_result_check [Line]:435 [Info]:awb result white_balance_gain[3] 0 should be in (0, 1048320]
[Func]:awb_result_check [Line]:445 [Info]:awb result color_matrix 0 row sum is 0, should not be 0
[Func]:awb_result_check [Line]:445 [Info]:awb result color_matrix 1 row sum is 0, should not be 0
[Func]:awb_result_check [Line]:445 [Info]:awb result color_matrix 2 row sum is 0, should not be 0

持续性刷屏显示 ae awb 运算结果为0截图:

我来回答
回答3个
时间排序
认可量排序

Sunshine

13个粉丝

2

问答

12

专栏

19

资料

Sunshine 2026-07-08 19:29:15
认可0

社区上海鸥派已经带SC233HGS 驱动了
https://gitee.com/hieulerpi/SS928V100_SDK_V2.0.2.2_MPP_Sample

hjx
hjx   回复   Sunshine  2026-07-08 20:31:51
赞0

请教一下,有什么途径能获取到sc233hgs的驱动源码吗。

Sunshine
Sunshine   回复   hjx  2026-07-09 08:39:03
赞0

网盘资料里有哦

或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
+ 添加网盘链接/附件

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
举报反馈

举报类型

  • 内容涉黄/赌/毒
  • 内容侵权/抄袭
  • 政治相关
  • 涉嫌广告
  • 侮辱谩骂
  • 其他

详细说明

易百纳技术社区