Git Product home page Git Product logo

faceswap-android's Introduction

Face Swap

Old FaceSwap Android project is scrapped.

The new interface is very light weight, no extra functionality other than swapping faces. When tapping the screen, the user is prompted to select an image in the photo library. When two images have been selected, the app is ready to swap faces.

This app is now written in the Kotlin language, which really is an update and improvement over Java. Performance-wise maybe not, but code readability and speed of adding new content has improved a lot.

There's no native C++ code to run the face swap OpenCV functions this time. Instead, the C++ code is ported to Kotlin. The swapping is not that slow, when the facial landmarks have been extracted by the Goolge API, the app is very fast in swapping the faces.

It should be easier to get started if you have cloned or forked this repository, no complicated build steps, no risk of missing files or deprecated build files that are related to native C++. Just click on the play button in Android Studio and Gradle should handle the build steps.

Source of inspiration

http://www.learnopencv.com/face-swap-using-opencv-c-python/

Interface

The arrow button changes color when the app is ready to swap faces.

Examples

Note that examples below have been based on images with very good image quality. Don't expect the same result of some random selfie of yourself.

faceswap-android's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

faceswap-android's Issues

Not compatible on Apple arm M1 processors

I was going to update the UI to SwiftUI and noticed that the app couldn't run on the new Apple arm M1 processors.
There's also a problem with OpenCV, I hardly think it will compile.

If anyone knows how to fix it, please share.

Alpha missing from Bitmap

In your Swap class you convert bitmap into Imagproc.COLOR.BGRA2BGR. which cause to lost alpha.
Is there any way to swap faces to keep alpha. without alpha faces are blur sometimes.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.