相机特性SENSOR_INFO_EXPOSURE_TIME_RANGE输入了错误的值 [英] CameraCharacteristics SENSOR_INFO_EXPOSURE_TIME_RANGE gives wrong values

查看:113
本文介绍了相机特性SENSOR_INFO_EXPOSURE_TIME_RANGE输入了错误的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用

但是,当我使用内置相机应用的专业模式时,可以将曝光值设置为30s,这实际上比API提供的值大.

有人可以帮我吗?如何获得支持的曝光持续时间范围内的正确值?

解决方案

由于相机算法在不同手机型号和制造商上的定义不同,因此对于华为Mate30 Pro,请使用HMS相机套件API获取计算的曝光范围,而不要使用Android Camera2本机API:API示例如下,然后您将看到的曝光范围返回为:1/4000-30s.

mMode.getModeCharacteristics().getParameterRange(RequestKey.HW_PRO_SENSOR_EXPOSURE_TIME_VALUE)

有关更多详细信息.关于如何集成HMS camera Pro的信息.模式,请参考 HMS摄像头引擎开发人员指南:

请注意:HMS Camera Engine SDK当前仅在HMS手机上可用.

I am using SENSOR_INFO_EXPOSURE_TIME_RANGE to calculate the range of supported exposure time.

I tested this in Huawei P30 Pro and it seems like this API is giving wrong values(10000 - 1000000000).

But when I use the built in camera app's pro mode, there I can set exposure value to 30s which is really larger than what is provided by the API.

Can anyone help me with this? How to get correct values for the range of supported exposure durations?

解决方案

As Camera algorithms are defined differently on different phone models and manufactures, for Huawei Mate30 Pro, please use HMS camera kit API to get the calculated exposure range instead of using Android Camera2 native API:API example is as follows, then you will see the exposure range returned as : 1/4000-30s.

mMode.getModeCharacteristics() .getParameterRange(RequestKey.HW_PRO_SENSOR_EXPOSURE_TIME_VALUE)

For more detailed info. on how to integrate HMS camera Pro. Mode, please refer to HMS Camera Engine Developer’s Guide:

Please note: HMS Camera Engine SDK is currently only available on HMS phones.

这篇关于相机特性SENSOR_INFO_EXPOSURE_TIME_RANGE输入了错误的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆