如何在iOS中对彩色视频应用黑白效果 [英] How to apply black and white effect to a color video in iOS

查看:144
本文介绍了如何在iOS中对彩色视频应用黑白效果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序中,我有一个彩色视频,我想制作黑白视频。 iOS中是否有支持此功能的框架?如果是这样,如何在彩色视频上实现这种效果?

In my application I have a color video which I want to make as black and white video. Is there any framework that supports this in iOS? If so, how to implement that effect on color video?

任何人都可以在这方面提供帮助吗?

Can anyone help in this regard?

推荐答案

这里有点晚了,但你应该看看 OpenCV

A bit late here, but you should check out OpenCV.

它可以编译为iPhone的静态库,可以将视频(逐帧)转换为灰度或两种颜色。

It can be compiled as a static lib for the iPhone and can convert video (frame by frame) to grayscale or two color.

你可以开始这里。还有其他资源可以解决此问题。

You can start here. There are other resources for doing this floating around.

这篇关于如何在iOS中对彩色视频应用黑白效果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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