iPhone 12 Pro,13 Pro Max拍摄带有Flash的超亮(可能过度曝光)照片
在当前项目上,我再次使用相机。 我使用两个视频和照片视频流来检测矩形和照片,以捕获闪光灯的照片。经过几次检查后,我找到了这个错误。在12 pro& 13 Pro Max在一个明亮的房间里,我会得到过度曝光的照片,如果我在黑暗的房间里做同样的照片,则没有曝光过度的照片。这种行为在较旧的iPhone上不可用。
我期待您的所有建议和评论。
环境:iOS 15.4.1,iPhone 12,12 Pro,12 Pro Max,13,13 Pro,13pro Max
附加信息:我捕获照片
func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {...}
On the current project once again I use the camera.
I use two streams of video and photo Video to detect rectangle and photo to capture a photo with the flash. After several checks I found the bug. On 12 Pro & 13 Pro Max in a bright room I obtain overexposed photos, if I do the same in a dark room, there are no overexposed photos. This behavior is not available on older iPhones.
I look forward to all your suggestions and comments.
Environment: iOS 15.4.1, iPhone 12, 12 Pro, 12 Pro Max, 13, 13 Pro, 13Pro Max
Additional info: I capture photo in -
func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) {...}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
因此,我发现要提供帮助的是
avcapturephotosettings
'sisautostillostillostillimageStabilizationEnabled
,自ios 13以来被弃用,并引用了photo> photo> photo> photoqualityProriatization
。使用
.balance
或.quality
(并在avcapturephotooutput上设置相同的设置
)无济于事,但是.speed
。做过。So what I've discovered to help is
AVCapturePhotoSettings
'sisAutoStillImageStabilizationEnabled
, which is deprecated since iOS 13, with a reference tophotoQualityPrioritization
.Using
.balance
or.quality
(and setting the same onAVCapturePhotoOutput
) didn't help, but.speed
did.