iPhone 12 Pro,13 Pro Max拍摄带有Flash的超亮(可能过度曝光)照片

发布于 2025-01-24 01:33:13 字数 573 浏览 4 评论 0原文

在当前项目上,我再次使用相机。 我使用两个视频和照片视频流来检测矩形和照片,以捕获闪光灯的照片。经过几次检查后,我找到了这个错误。在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.

enter image description here

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

站稳脚跟 2025-01-31 01:33:13

因此,我发现要提供帮助的是avcapturephotosettings's isautostillostillostillimageStabilizationEnabled,自ios 13以来被弃用,并引用了photo> photo> photo> photoqualityProriatization
使用.balance.quality(并在avcapturephotooutput上设置相同的设置)无济于事,但是.speed。做过。

So what I've discovered to help is AVCapturePhotoSettings's isAutoStillImageStabilizationEnabled, which is deprecated since iOS 13, with a reference to photoQualityPrioritization.
Using .balance or .quality (and setting the same on AVCapturePhotoOutput) didn't help, but .speed did.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文