如何在相机中应用自定义滤镜 [Surfaceview 预览]...?

2022-01-08 00:00:00 camera android java surfaceview

伙计们,我正在开发相机应用程序,这是我的第一个 android 应用程序.

Guys i am developing Camera Application and this is my first android Application.

下面我正在为我想要的添加我的应用屏幕截图.

below i am Adding My App Screenshot for what i want.

第一个视图:

在这里,单击右上角的过滤器图标后,我想要一个下面的视图.

Here , after Clicking on a Top-Right Corner Filter icon i want a below View.

第二个视图:

我不知道如何才能获得这种类型的视图.还有我如何将这种类型的视图设计成 XML 部分.

i don't know how can i get this type of a view. also how can i design this type of view into XML parts.

我阅读了更多文章,例如如何在单个屏幕上打开多个表面视图预览,但我没有得到任何非常感谢的解决方案.

and i read more articles like how to Open a Multiple Surface-view Preview onto single screen but i did not get any much appreciate solution.

最后在选择任何过滤器预览后,我想要一个上面的图像类型视图.

and Finally after selecting any of the Filter Preview i want a above Image type View.

表示选定滤镜的预览应用于相机 [Surfaceview 预览].请提供任何类型的材料链接example.etc

means Selected Filter's is Preview apply onto Camera [Surfaceview Preview]. Please provide any type of Material link example.etc

各位,请帮助我.任何类型的帮助将不胜感激..):

guys please help me.any type of help will be appreciated..):

提前致谢

推荐答案

所有这些操作都可以使用 OpenCV 执行.下载他们的基本 Android 示例,您可以将逻辑添加到 onCameraFrame() 回调.

All these manipulations can be performed with OpenCV. Download their basic Android example, and you can add your logic to onCameraFrame() callback.

相关文章