简体   繁体   English

Android Camera预览带有Funhouse镜面效果

[英]Android Camera preview with funhouse mirror effect

I created a android small app that uses the front facing camera to shoot a selfie. 我创建了一个使用前置摄像头拍摄自拍照的android小型应用。 But what i want to accomplish is a funhouse mirror effect. 但是我要完成的是一个游乐园镜像效果。

I searched the internet trying to find a solution or a way to do this but i am guessing i am searching for the wrong terms here: 我在互联网上搜索,试图找到解决方案或方法,但是我想我在这里搜索错误的术语:

Sample Image 样本图片

在此处输入图片说明

Can someone push me in the right direction or how this is made? 有人可以将我推向正确的方向或如何实现吗? I searched for morphing, distortion etc. 我搜索了变形,失真等。

What i have right now: A basic camera app wich is saving a taken photo using the Camera2 API in Android SDK 23 我现在拥有的是:一个基本的相机应用程序正在使用Android SDK 23中的Camera2 API保存拍摄的照片

Just only Camera2 API are not enough to develop an app which is like mentioned you. 仅Camera2 API不足以开发像您提到的应用程序。 You should use computer vision libraries such as OpenCV or OpenGL . 您应该使用计算机视觉库,例如OpenCVOpenGL

First of all, please check it out for creating theoretical background. 首先,请出来,用于创建理论背景。

Here is an example application which is using OpenCV and it is about funny effects. 是一个使用OpenCV的示例应用程序,它涉及有趣的效果。

This can be another reference application which is about fun house effects and it was developed by using GLSL. 可以是另一个有关游乐园效果的参考应用程序,它是使用GLSL开发的。

Also this post can be helpful for you. 这篇文章也可以为您提供帮助。

Moreover, you can check it and it out. 此外,你可以检查出来。 And, you can use "image warping" term to search to find solutions for your problem on internet. 并且,您可以使用“图像变形”一词来搜索以找到您在Internet上遇到的问题的解决方案。

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

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