添加效果的Andr​​oid摄像头preVIEW [英] Adding effect to an Android Camera preview

查看:135
本文介绍了添加效果的Andr​​oid摄像头preVIEW的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望得到现场摄像头饲料添加效果,并显示它。这是正确的技术去向前。任何开放源代码的

I am looking to get Live camera feed and add effects to it and display it. Which is the right technology to go forward with. Any open source

推荐答案

您可以配置摄像头类为您提供了preVIEW缓冲区(但副本)。这是提供throuh previewBuffer回调接口。你必须实现接口,并将其设置在相机上。在preVIEW您将得到preVIEW缓冲区。 的http://developer.android.com/reference/android/hardware/Camera.$p$pviewCallback.html

You can configure camera class to provide you the preview buffer (but copies). This is provided throuh PreviewBuffer Callback interface. You have implement the interface and set it on the camera. During preview you will get the preview buffers. http://developer.android.com/reference/android/hardware/Camera.PreviewCallback.html

然后就可以在缓冲区应用自定义处理算法,并利用地面或OpenGL的表面绘制相同的。

Then you can apply custom processing algorithm on the buffer and use either Surface or opengl surface to draw the same.

Shash316

这篇关于添加效果的Andr​​oid摄像头preVIEW的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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