Comments (5)
In the function FaceSwapper::getMasks()
you should use the facial points to zero out the masks on the mouth area.
from faceswap.
is there a diagram to see which numbers correlate to which points? I thought that I would be adding the mouth points in FaceSwapper::getFacePoints() ? Thanks
from faceswap.
Here you go. Keep in mind that the points are 0 indexed in the code. https://i.stack.imgur.com/05uIT.jpg
from faceswap.
Thank you I appreciate the replies. I am confused as to where to use this. You said to zero out the masks in the mouth area. Not sure how to do this. I thought by adding mouth points to the array for bob and ann that the fillConvexPoly would automatically cut it out? Anything more you can tell me would help. Thanks
from faceswap.
In the method getMasks() the empty (all zeroes) matrix is being filled with 255. These are the areas where the faces are located or simply - face masks. If you zero out the part of the face masks where the mouth are located, I think it should work.
from faceswap.
Related Issues (20)
- How to run this project? HOT 4
- Ubuntu 14.04 LTS Instructions HOT 2
- OSX HOT 1
- build for linux (ubuntu) HOT 2
- run algorithm on still images (instead of camera) HOT 1
- build for macOS HOT 2
- why the result is bad when I use your code to test the before.jpg ? HOT 3
- [Feature] Creating better face masks using opencv::convexHull HOT 1
- error: (-215:Assertion failed)
- How to Run the codes ?
- swap face in real time on the desktop? HOT 2
- A question about the code
- error HOT 2
- Can you get more than 68 points on face? HOT 1
- Make swapped face follow mouth and eyes HOT 3
- Possible division by zero HOT 1
- Input as JPG/PNG/IMG HOT 1
- Cannot build source HOT 3
- building on linux HOT 14
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from faceswap.