iPhone:实时视频颜色信息,焦距,光圈? [英] iPhone: Real-time video color info, focal length, aperture?

查看:180
本文介绍了iPhone:实时视频颜色信息,焦距,光圈?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用AVFoundation和CoreVideo实时获取颜色信息,光圈和焦距值?

Is there any way using AVFoundation and CoreVideo to get color info, aperture and focal length values in real-time?

让我解释一下.假设我在拍摄视频时想在屏幕的一小部分采样颜色并将其以RGB值输出到屏幕吗?另外,我想展示一下当前的光圈设置为什么.

Let me explain. Say when I am shooting video I want to sample the color in a small portion of the screen and output that in RGB values to the screen? Also, I would like to show what the current aperture is set at.

有人知道是否有可能收集这些值?目前,我只看到静止图像可以做到这一点.

Does anyone know if it is possible to gather these values? Currently I have only seen that this is possible with still images.

想法?

推荐答案

AVCaptureStillImageOutput将为您提供视频流的实时静止图像,包括焦距,光圈等exif数据.您可以从该位图计算自己的颜色信息.

AVCaptureStillImageOutput will get you a real time still from the video stream, including exif data for focal length, aperture, etc. Color info you could calculate yourself from that bitmap.

这篇关于iPhone:实时视频颜色信息,焦距,光圈?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆