ITS scenes 1_1 test_param_noise_reduction.py fail

4 篇文章 1 订阅
2 篇文章 17 订阅

测试要点:

测试android.noiseReduction.mode参数在设置时是否正确应用。在相机光线昏暗的情况下拍摄图像。使用高模拟增益来确保捕获的图像有噪声。捕获三个图像,用于 NR 关闭、“快速”和“高质量”。还捕获具有低增益和 NR 关闭的图像,并将其方差用作基线。 SNR(信噪比)越高,图像质量越好。

0:关闭,1:快速,2:HQ,3:MIN,4:ZSL

google 官网对这个几个模式的解释如下

https://developer.android.com/reference/android/hardware/camera2/CaptureRequest?hl=zh-cn#NOISE_REDUCTION_MODE

OFF means no noise reduction will be applied by the camera device, for both raw and YUV domain.

MINIMAL means that only sensor raw domain basic noise reduction is enabled ,to remove demosaicing or other processing artifacts. For YUV_REPROCESSING, MINIMAL is same as OFF. This mode is optional, may not be support by all devices. The application should check android.noiseReduction.availableNoiseReductionModes before using it.

FAST/HIGH_QUALITY both mean camera device determined noise filtering will be applied. HIGH_QUALITY mode indicates that the camera device will use the highest-quality noise filtering algorithms, even if it slows down capture rate. FAST means the camera device will not slow down capture rate when applying noise filtering. FAST may be the same as MINIMAL if MINIMAL is listed, or the same as OFF if any noise filtering will slow down capture rate. Every output stream will have a similar amount of enhancement applied.

ZERO_SHUTTER_LAG is meant to be used by applications that maintain a continuous circular buffer of high-resolution images during preview and reprocess image(s) from that buffer into a final capture when triggered by the user. In this mode, the camera device applies noise reduction to low-resolution streams (below maximum recording resolution) to maximize preview quality, but does not apply noise reduction to high-resolution streams, since those will be reprocessed later if necessary.

For YUV_REPROCESSING, these FAST/HIGH_QUALITY modes both mean that the camera device will apply FAST/HIGH_QUALITY YUV domain noise reduction, respectively. The camera device may adjust the noise reduction parameters for best image quality based on the android.reprocess.effectiveExposureFactor if it is set.

正常的情况下,这个五个SNR的走势图

 

问题描述:

测试输出的图片的分辨率是3840*2160, ZSL的SNR比MIN高许多,这个不是ITS case期望的结果。

说明在我们的设备上,针对ZSL模式,在高分辨率降噪强度也是降噪的。

这个不符合ITS的要求。

 

解决办法:

将MinZSLNoiseReductionModeWidth和MinZSLNoiseReductionModeHeight调低。这样对于高分辨率的streams不降噪。

static const INT32 MinZSLNoiseReductionModeWidth = 1920;

static const INT32 MinZSLNoiseReductionModeHeight = 1440;

修改后的测试结果就是如下图。

其实,我们的相机都是运行在ZSL模式,若是把高分辨率的降噪去掉的话,那么我们snapshot拍出的照片都是raw domain的降噪,这样效果不好。

这个case还是要针对ITS做特殊处理。

  • 2
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值