https://github.com/altunenes/part-whole
Swap facial landmarks(or whole facial area) for the part-whole task with OpenCV + dlib and MediaPipe.
Science Score: 31.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
○codemeta.json file
-
○.zenodo.json file
-
✓DOI references
Found 2 DOI reference(s) in README -
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (6.9%) to scientific vocabulary
Keywords
Repository
Swap facial landmarks(or whole facial area) for the part-whole task with OpenCV + dlib and MediaPipe.
Basic Info
Statistics
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Topics
Metadata Files
README.md
Update for Media Pipe
Since dlib library is getting older, I edited main code and apply with the Media Pipe library. It's faster than dlib but I don't think it giving better results. I added faces that are processed with media pipe, so try both; and use the best result :)
Part-Whole
Swap facial landmarks for the part-whole task
The part-whole task is a well-known task among face researchers especially studying face processing. It has been developed by (Tanaka & Farah, 1993) https://doi.org/10.1080/14640749308401045.
This script provides you a realistic results with seamlessClone function.
In order to get clear results, use high-quality images as much as possible. But if you have low-quality faces you probably need to use some extra filter methods to edges (Gaussian is working well in most scenarios).
Referance for the trained detector: https://github.com/codeniko/shapepredictor81facelandmarks
Example for facial parts:

(the leftmost is nose+mouth)


Faces from: https://thispersondoesnotexist.com/
Owner
- Name: Enes
- Login: altunenes
- Kind: user
- Website: altunenes.github.io
- Repositories: 30
- Profile: https://github.com/altunenes
I like science, computers, and budgies :-)
Citation (CITATION.cff)
cff-version: 1.2.0 message: "If you use this code, please cite it as below." authors: - family-names: "Altun" given-names: "Enes" orcid: "https://orcid.org/0000-0002-6478-6909" title: "Part-Whole" version: 1.0.0 date-released: 2021-08-24 url: "https://github.com/emportent/Part-Whole"
GitHub Events
Total
- Watch event: 1
Last Year
- Watch event: 1
Dependencies
- dlib *
- mediapipe *
- numpy *
- opencv-python *