简体   繁体   中英

Android Camera preview with funhouse mirror effect

I created a android small app that uses the front facing camera to shoot a selfie. 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

Just only Camera2 API are not enough to develop an app which is like mentioned you. You should use computer vision libraries such as OpenCV or OpenGL .

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.

This can be another reference application which is about fun house effects and it was developed by using 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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