https://github.com/gigacycle/extract3dfacelandmarks
This project extracts 3D face landmarks based on 2d screenshots of a 3D face (Lateral Left, Lateral Right and Front View)
https://github.com/gigacycle/extract3dfacelandmarks
3d-landmark 3d-landmarks face-alignment face-landmark python vedo
Last synced: over 1 year ago
JSON representation
This project extracts 3D face landmarks based on 2d screenshots of a 3D face (Lateral Left, Lateral Right and Front View)
- Host: GitHub
- URL: https://github.com/gigacycle/extract3dfacelandmarks
- Owner: gigacycle
- Created: 2024-05-06T11:38:04.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-13T11:03:03.000Z (about 2 years ago)
- Last Synced: 2025-01-31T12:19:00.954Z (over 1 year ago)
- Topics: 3d-landmark, 3d-landmarks, face-alignment, face-landmark, python, vedo
- Language: Python
- Homepage:
- Size: 5.97 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Extract3DFaceLandmarks
This Python project extracts 3D landmarks based on 2D screenshots of a 3D face, including Lateral Left, Lateral Right, and Front View. It has undergone testing with the ESRC dataset curated by Peter Hancock at Stirling and Bernie Tiddeman at Aberystwyth. You can find his work [here](https://pics.stir.ac.uk/ESRC/index.htm).

Before utilizing this project, ensure that the facial object is aligned with the Frankfort Horizontal Plane. Detailed instructions on this alignment process can be found [here](https://www.otoscape.com/eponyms/frankfort-horizontal-plane.html). Note that all ESRC 3D Faces are already aligned with the Frankfort Horizontal Plane.
## Installation
Begin by cloning the project with the following command:
```bash
git clone https://github.com/gigacycle/Extract3DFaceLandmarks.git
```
Next, install the required dependencies using the following command:
```bash
pip install face-alignment, torchvision, vedo
```
## Usage
After successfully cloning the project and installing the dependencies, Run `main.py` and follow the instructions.

1. Starts extracting 3D landmarks for ESRC dataset (stores at ./dataset/)
2. Starts extracting your own 3D face object (it needs full path of your .obj) and displays the landmarks at the end.
3. Displays the landmarks extracted in phase `1` (you should type the item name like the picture above)
## Acknowledgements
This project leverages the face-alignment and vedo libraries.
- Face-alignment: [Link to the project](https://github.com/1adrianb/face-alignment)
- Vedo: [Link to the website](https://vedo.embl.es/)
Please ensure proper citation of these projects in your work.
Contributions to this project are welcomed via the submission of issues or pull requests.
For inquiries or assistance, kindly contact me.