我的代码将 AVCaptureExposureModeCustom
设置为 AVCaptureDevicePositionBack
,但是在添加对 iPhone 7 Plus 的支持时,我可以将其设置为 AVCaptureDeviceTypeBuiltInTelephotoCamera
,但不能设置为AVCaptureDeviceTypeBuiltInDuoCamera
。
允许用户为 Duo Cam 设置曝光的可能解决方案是什么。
最佳答案
AVCaptureDeviceTypeBuiltInDuoCamera
不支持 RAW 捕获和手动控制。如果你想实现手动控制就必须选择广角或长焦相机。
When you use the dual camera capture device, RAW capture and most manual controls are not available. To use these features, specifically select either the wide-angle or telephoto capture device.
Apple 文档 link
无法进行手动控制的真正原因是双摄像头设备使用系统自动选择在捕获过程中使用哪个摄像头,并且可以结合两个摄像头的数据以提高捕获输出。
检查 iOSDeviceCompatibility了解更多信息。
关于ios - 在双摄像头设备中设置自定义曝光的可能解决方案是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41485096/