视频处理和过滤库 [英] Video processing and filtering libraries

查看:153
本文介绍了视频处理和过滤库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试确定要选择哪个库,以便创建可以 过滤视频,例如美化或清晰度.

I'm trying to decide which library to choose in order to create app that can filters a video, for example beautify or clarity.

在搜索过程中,我遇到了两个候选人:OpenCv和FFmpeg,我发现了一个仅适用于FFmpeg的完整框架(为此,我为此+1).

During my search I came across 2 candidates: OpenCv and FFmpeg, and I found a complete framework only for FFmpeg(so +1 for this).

我找不到两者之间的完整比较,因此,如果有人尝试过并可以发布答案,那将非常有帮助.

I couldn't found a complete comparision between the two so if someone has tried them and can post the answer it would be really helpful.

另一个候选对象是适用于Android的Marvin框架(Java项目)- https://code .google.com/p/android-image-filtering/

Another candidate is Marvin framework(Java project) for Android - https://code.google.com/p/android-image-filtering/

推荐答案

OpenCV 是Computer Vision的框架,它对您所需要的内容非常有限,因为它需要您编写大多数出色的过滤器你自己. 尽管如此,它提供了一些技术来模糊图像,改变对比度,转换为灰度,翻转,裁剪,阈值,侵蚀,扩大,调整大小,旋转,隔离颜色,合成以及其他一些东西.为了让您对如何实现过滤器有所了解,我最近使用OpenCV实现了置换贴图过滤器" .

OpenCV is a framework for Computer Vision and it's very limited for what you need because it requires you to write most of the cool filters yourself. Nevertheless, it provides a few techniques to blur images, change contrast, convert to grayscale, flip, crop, threshold, erode, dilate, resize, rotate, isolate colors, composite, and few other things. Just so you have an idea of how to implement filters, I recently implemented a Displacement Map Filter using OpenCV.

FFmpeg 有一些 过滤器,但它是跨平台解决方案来记录,转换和流音频和视频,这意味着它实际上并没有提供很多滤镜效果.

FFmpeg has a few filters as well, but it's meant to be a cross-platform solution to record, convert and stream audio and video, which means it doesn't really offer many filter effects.

尽管如此,两个API都可以在Android上读取视频(文件和来自摄像头的流)并提供对视频帧的访问权限,以便您可以执行自定义过滤器.

我相信可以真正帮助您为应用程序带来大量过滤器的技术是 ImageMagick .请注意,ImageMagick不处理视频,因此您可以在此部分中使用Android的本地API,OpenCV或FFmpeg. 以下是一些示例,您可以使用命令中的ImageMagick处理图像行,程序界面或脚本:

I believe the technology that can really help you bring a large collection of filters to your application is ImageMagick. Note that ImageMagick doesn't handle videos, so you can use Android's native API, OpenCV or FFmpeg for this part. Here are a few examples of what you can do with an image using ImageMagick from the command line, a program interface, or script:

这篇关于视频处理和过滤库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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