gpt4 book ai didi

ios - 带有 AVFoundation 的 HDR

转载 作者:可可西里 更新时间:2023-11-01 03:56:23 26 4
gpt4 key购买 nike

我想通过 AVFoundation 和/或 CoreImage 获得实时和后处理的 HDR 效果。我假设一旦捕捉到全帧静止图像,使用 CoreImage 就相对容易,但是有人知道如何使用 AVCaptureVideoPreviewLayer 实现类似 HDR 的效果吗?

最佳答案

您可以使用 AVCaptureVideoOutput 类和上面提到的委托(delegate)方法 (captureOutput:didOutputSampleBuffer:fromConnection:) 从摄像机获取每个实时帧。从该框架,您可以创建 CIImage 并使用 CoreImage 框架进行更改;之后只需使用 drawRect: 方法绘制输出

关于ios - 带有 AVFoundation 的 HDR,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8145148/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com