简体   繁体   English

如何将不同的实时效果应用于android相机?

[英]How to apply different live effects to android Camera?

I want to develop a Camera 2 kind of application. 我想开发Camera 2类型的应用程序。 So i just wanted to know how to apply live effects to android Camera .Is there any android library for that? 所以我只想知道如何将实时效果应用于android Camera。是否有任何android库? plz help me to solve the issue. 请帮助我解决问题。

thanks in advance.... 提前致谢....

What have you tried? 你尝试了什么? I assume by live effects you mean shown on the preview. 我假设通过实时效果显示在预览中。

You can try what the answer here suggested, but any sort of complicated filter implemented in java is going to slow things down. 您可以尝试这里给出的答案,但是用Java实现的任何复杂过滤器都会减慢速度。 For good performance you'll probably have to write some native code to process the previews. 为了获得良好的性能,您可能必须编写一些本机代码来处理预览。 The good news is, if you're writing NDK code you can make use of libraries like OpenCV to do the filtering for you. 好消息是,如果您正在编写NDK代码,则可以利用OpenCV之类的库为您进行过滤。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM