https://github.com/mukosame/face-annotation-tool
Help you manually label facial landmarks.
https://github.com/mukosame/face-annotation-tool
Last synced: 6 months ago
JSON representation
Help you manually label facial landmarks.
- Host: GitHub
- URL: https://github.com/mukosame/face-annotation-tool
- Owner: Mukosame
- License: mit
- Created: 2018-11-12T22:54:02.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-12T22:55:32.000Z (almost 7 years ago)
- Last Synced: 2025-03-25T19:11:20.550Z (7 months ago)
- Language: Python
- Size: 112 KB
- Stars: 43
- Watchers: 3
- Forks: 22
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Faces Annotation Tool
It is a very simple GUI facial landmark annotation tool using Matplotlib and OpenCV.
This version helps you manually annotate a bounding box and 5 points: left eye center, right eye center, nose tip,
leftmost mouth point, rightmost mouth point.## How to use
To run this demo:
```python
python annotate_faces.py -d ./demo/
```## GUI

- Click the item and then click the corresponding point with your mouse to input coordinates. If you're unsatisfied about current coordinates, you can click as many times as you want until you feel OK
- Re-click the item to clean out the current coordinates
- Done: finish with current image
- Skip: skip current image
You can run the script for a single image or multiple images in a directory. Points are output to terminal in csv format, and save at the script's location as txt where landmarks are splitted by tab space.
Sample output:
```
./demo/1.jpg 49 152 110 139 78 185 75 208 121 203
```## Reference
[annotate-faces](https://github.com/waldr/annotate-faces)