Code Monkey home page Code Monkey logo

deep-fake's Introduction

Deep-Fake

Full video: Deep Fakes

Here there are two files, one which takes 2 images a input and applies first image on top of second and second file where it takes 1 image and applies on the face of person captured from the webcam.

To achive this, we use shape_predictor_81.dat file

Using that we plot the facial landmarks on the image from webcam.

After this we construct delaunary triangles on that face.

We save all the points forming the face.

These same triangles are constructed on the image we provided and dividing the image into these triangular parts.

Now these triangular parts are reshaped to fit on same triangle from first image.

Now we reconstruct second image's face on first iimage.

Using openCV functions we make necessary color change to look more natural and realistic.

Future Scope:

  • We can take a video of someone who is moving this face, then divide it similarly into delaunary triangles and story every image into folders inside another folder.
  • Here we can store some lenghts. (distances of some important points to identift face orientation)
  • Once its done, we can take imput from webcam and calculate the distances and pick the most matched image from our folder.
  • Using that matched image we can construct much better image without weird distortions.
  • Giving us much better results when face is rotated.

deep-fake's People

Contributors

karan-owalekar avatar

Watchers

 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.