ios - 在双摄像头设备中设置自定义曝光的可能解决方案是什么?

标签 ios objective-c avfoundation avcapturesession avcapturedevice

我的代码将 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/

相关文章:

ios - 通过 Microsoft Intune 分发内部 iOS 应用程序

ios - 带+号的界面语法(UIView+AdditionalFeatures.h)?

ios - 在设备上运行但不在 Swift 模拟器中运行时的断点

swift - AVAudioSession.setCateogry 没有蓝牙麦克风输入

ios - 设置AVCaptureDevice格式范围

ios - FBLikeControl 不显示类似按钮

ios - NFC在iPhone中的实现

ios - 状态栏使用 Capacitor 覆盖 iOS 上的 webview

ios - Interstitial Ads(iAd 和 Spritekit)出错

macos - 访问 AVFoundation 中的当前输出样本缓冲区