787
- 收藏
- 点赞
- 分享
- 举报
海思如何修改摄像头曝光时间?(hi3516DV300)
每个主程序运行周期修改并打印曝光参数:
ISP_EXPOSURE_ATTR_S pstExpAttr;
ISP_DRC_ATTR_S pstDRC;
ISP_EXP_INFO_S stExpInfo;
HI_MPI_ISP_GetExposureAttr(0,&pstExpAttr);
pstExpAttr.bByPass = HI_FALSE;
pstExpAttr.enOpType = OP_TYPE_AUTO;
// pstExpAttr.stAuto.u8Tolerance=100;
pstExpAttr.stAuto.stAGainRange.u32Max=0x7FFFFFFF;
pstExpAttr.stAuto.stAGainRange.u32Min=0x400;
pstExpAttr.stAuto.stDGainRange.u32Max=0x7FFFFFFF;
pstExpAttr.stAuto.stDGainRange.u32Min=0x400;
pstExpAttr.stAuto.stISPDGainRange.u32Max=0x7FFFFFFF;
pstExpAttr.stAuto.stISPDGainRange.u32Max=0x400;
pstExpAttr.stAuto.u16EVBias=0x90;
pstExpAttr.stAuto.stExpTimeRange.u32Min=300;
pstExpAttr.stAuto.stExpTimeRange.u32Max=400000;
pstExpAttr.stAuto.u8Speed = 0x80;
HI_MPI_ISP_SetExposureAttr(0, &pstExpAttr);
HI_MPI_ISP_GetDRCAttr(0, &pstDRC);
pstDRC.bEnable=HI_TRUE;
HI_MPI_ISP_SetDRCAttr(0, &pstDRC);
HI_MPI_ISP_QueryExposureInfo(0,&stExpInfo);
printf("Sensor exposure time: %dus\n",stExpInfo.u32ExpTime);
printf("Analog Gain: %d\n",stExpInfo.u32AGain);
printf("Digital Gain: %d\n",stExpInfo.u32DGain);
printf("ISP Gain: %d\n",stExpInfo.u32ISPDGain);
printf("Exposure: %d\n",stExpInfo.u32Exposure);
printf("Average Luminance: %d\n",stExpInfo.u8AveLum);
printf("Hist error: %d\n",stExpInfo.s16HistError);
stExpInfo.bExposureIsMAX ? printf("Exposure is MAX!\n") :
printf("Exposure is NOT MAX!\n");
输出结果:
Sensor exposure time: 2730us
Analog Gain: 9667
Digital Gain: 1024
ISP Gain: 1088
Exposure: 483350
Average Luminance: 0
Hist error: 40
Exposure is MAX!
似乎没办法修改摄像头曝光参数,是AE没生效,还是AE会自动调整为默认值?
请问是逻辑问题,还是设置参数的时机不对,是要在初始化vi之后设置或绑定vpss到VDEC后,还是在已经获取视频流数据的时候调用get-set也可以修改?小白疑惑,希望大佬指点(抱拳)谢谢!
包括使用手动模式也是一样的输出,修改不到曝光时间:
pstExpAttr.enOpType = OP_TYPE_MANUAL;
pstExpAttr.stManual.enAGainOpType = OP_TYPE_MANUAL;
pstExpAttr.stManual.enDGainOpType = OP_TYPE_MANUAL;
pstExpAttr.stManual.enISPDGainOpType = OP_TYPE_MANUAL;
我来回答
回答7个
时间排序
认可量排序
认可0
认可0
认可0
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币
Markdown 语法
- 加粗**内容**
- 斜体*内容*
- 删除线~~内容~~
- 引用> 引用内容
- 代码`代码`
- 代码块```编程语言↵代码```
- 链接[链接标题](url)
- 无序列表- 内容
- 有序列表1. 内容
- 缩进内容
- 图片
相关问答
-
2022-11-10 16:57:51
-
2019-09-20 09:53:08
-
2023-12-06 15:19:25
-
2019-10-09 11:10:36
-
2021-12-14 11:59:58
-
2020-03-31 11:14:26
-
2022-12-27 14:32:26
-
2019-12-20 12:00:55
-
2025-01-17 10:39:31
-
2023-04-04 14:39:26
-
2023-04-04 21:37:53
-
2023-08-18 09:48:27
-
2020-10-29 11:20:08
-
2022-06-08 18:36:33
-
2020-11-20 15:32:10
-
2019-01-03 16:27:35
-
2019-01-03 16:31:43
-
2023-12-25 10:12:10
-
2020-05-29 16:42:23
无更多相似问答 去提问
点击登录
-- 积分
-- E币
提问
—
收益
—
被采纳
—
我要提问
切换马甲
上一页
下一页
悬赏问答
-
5hisi3516cv610 + gc4336p 夜晚很模糊
-
5AIISP(功能演示,SC4336P为BGGR,强制转RGGB,会导致颜色异常)
-
5rv1106使用luckfox的SDK,设备树和驱动都写好了,结果设备文件没有生成
-
5海思3516cv610中如何进行SD卡升级,根据官方文档操作,烧录进板子时,走的默认uboot,没有执行uboot升级。
-
5G610Q-IPC-38E 夜晚很暗 有什么办法解决吗 已经补光了
-
10转换模型时,SoC版本里没显示hi3516cv610芯片
-
5hisi3516cv610 使用 yolov8n 模型训练 要如何提高 这里识别的是人
-
10有人在海思平台接过SC035HGS吗
-
5关于hi3519dv500,以SD卡虚拟 U 盘操作
-
5ss928 sample_venc代码移植到openEuler24.03上执行报错 [sample_comm_vi_start_dev]-1068: vi set dev attr failed wi
举报反馈
举报类型
- 内容涉黄/赌/毒
- 内容侵权/抄袭
- 政治相关
- 涉嫌广告
- 侮辱谩骂
- 其他
详细说明
提醒
你的问题还没有最佳答案,是否结题,结题后将扣除20%的悬赏金
取消
确认
提醒
你的问题还没有最佳答案,是否结题,结题后将根据回答情况扣除相应悬赏金(1回答=1E币)
取消
确认

微信扫码分享
QQ好友