323
- 收藏
- 点赞
- 分享
- 举报
海思如何修改摄像头曝光时间?(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
-
2025-01-17 10:39:31
-
2020-10-29 11:20:08
-
2019-12-20 12:00:55
-
2023-08-18 09:48:27
-
2023-04-04 14:39:26
-
2023-04-04 21:37:53
-
2019-01-03 16:31:43
-
2019-01-03 16:27:35
-
2023-12-25 10:12:10
-
2020-05-29 16:42:23
-
2022-06-08 18:36:33
-
2020-11-20 15:32:10
无更多相似问答 去提问

点击登录
-- 积分
-- E币
提问
—
收益
—
被采纳
—
我要提问
切换马甲
上一页
下一页
悬赏问答
-
10GK7202V300 liteos 回放 JPG 相片黑屏
-
10hi3516cd610运行sample_uvc例程报错hi_mpi_uvc_create_chn(chn:0) failed with 0xa05a8018!
-
5海思SS928V100,svp_npu部署yolov8自训练模型,离线om模型转换过程中报错
-
5OS08A20 sensor i2c 报错
-
5DTOF的demo运行时内核挂死
-
10Hi3516DV500+IMX482运行sample_venc,报错:HI_MPI_ISP_MemInit failed with 0xa01c800c!
-
10PQTOOL在调试的时候,出现通讯异常,是不是PQ软件问题?还是什么?
-
5hi3516dv500改了sensor驱动后使用pqtools出图出现彩色的竖条纹
-
10海思3559的VGS模块在VI上画线问题
-
53519dv500接lvds的sensor mn34120,图像出现很多竖线,sensor板接以前的3519v101没问题
举报反馈
举报类型
- 内容涉黄/赌/毒
- 内容侵权/抄袭
- 政治相关
- 涉嫌广告
- 侮辱谩骂
- 其他
详细说明
提醒
你的问题还没有最佳答案,是否结题,结题后将扣除20%的悬赏金
取消
确认
提醒
你的问题还没有最佳答案,是否结题,结题后将根据回答情况扣除相应悬赏金(1回答=1E币)
取消
确认