GithubHelp home page GithubHelp logo

faceswap's Introduction

FaceSwap

This is face swapping project with opencv python. It takes two images as input then replace the face part of the first image into the face face part of the second one. if there are multiple faces in one of the images, it use the largest face.

Prerequisites

  • For this project you need to install python3 and necessary libraries using the following command:

    • pip3 install -r requirements.txt
  • Download the facial landmark detector dlib model from here and put it in the main project folder. Or alternatively, use the following command from main project folder to get the file:
    • wget https://github.com/AKSHAYUBHAT/TensorFace/raw/master/openface/models/dlib/shape_predictor_68_face_landmarks.dat

Getting Started

For getting start with this project

  • select two image from the given one or your own images.
  • then run the demo.py python script and Enter image1 and image2 absolute or relative path as argument. and choose the modes either choose_largest_face or apply_on_all mode.
  • ex: python demo.py images/yony.jpg images/anchorman.jpg choose_largest_face
  • the output show the two original images and the swapped image based on your choose.

how to use the grpc client and server

To test the grpc client and server interaction follow these steps:

  • first run the start_server.py.
  • then run client.py from /Service/client.py
  • and see the swapped image output on /Service/images/output.img
  • open /Service/client.py [optional]
  • then change the the first image and meme image path to your own image path. [optional]
  • you can also change the output image path. [optional]

Authors

  • yonathan cherkos, Israel Abebe, and Yared Taddese

License

This project is licensed under the MIT License - see the LICENSE.md file for details

faceswap's People

Contributors

yonycherkos avatar yaredtaddese avatar israelabebe avatar

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.