Skip to content

UniFace: A Unified Face Analysis Library for Python | Detection, alignment, landmarks, face-mesh, recognition, parsing, gaze, attributes and anti-spoofing under one API.

docs: Add example images and update MkDocs files (#104)

Yakhyokhuja Valikhujaevc87ec1ad0ff0
diff --git a/README.md b/README.md
index 625f301..326a781 100644
--- a/README.md
+++ b/README.md
@@ -40,6 +40,36 @@
---
+## Visual Examples
+
+<table>
+ <tr>
+ <td align="center"><b>Face Detection</b><br><img src="https://raw.githubusercontent.com/yakhyo/uniface/main/assets/demos/detection.jpg" width="100%"></td>
+ <td align="center"><b>Gaze Estimation</b><br><img src="https://raw.githubusercontent.com/yakhyo/uniface/main/assets/demos/gaze.jpg" width="100%"></td>
+ </tr>
+ <tr>
+ <td align="center"><b>Head Pose Estimation</b><br><img src="https://raw.githubusercontent.com/yakhyo/uniface/main/assets/demos/headpose.jpg" width="100%"></td>
+ <td align="center"><b>Age &amp; Gender</b><br><img src="https://raw.githubusercontent.com/yakhyo/uniface/main/assets/demos/age_gender.jpg" width="100%"></td>
+ </tr>
+ <tr>
+ <td align="center" colspan="2"><b>Face Verification</b><br><img src="https://raw.githubusercontent.com/yakhyo/uniface/main/assets/demos/verification.jpg" width="80%"></td>
+ </tr>
+ <tr>
+ <td align="center" colspan="2"><b>106-Point Landmarks</b><br><img src="https://raw.githubusercontent.com/yakhyo/uniface/main/assets/demos/landmarks.jpg" width="36%"></td>
+ </tr>
+ <tr>
+ <td align="center" colspan="2"><b>Face Parsing</b><br><img src="https://raw.githubusercontent.com/yakhyo/uniface/main/assets/demos/parsing.jpg" width="80%"></td>
+ </tr>
+ <tr>
+ <td align="center" colspan="2"><b>Face Segmentation</b><br><img src="https://raw.githubusercontent.com/yakhyo/uniface/main/assets/demos/segmentation.jpg" width="80%"></td>
+ </tr>
+ <tr>
+ <td align="center" colspan="2"><b>Face Anonymization</b><br><img src="https://raw.githubusercontent.com/yakhyo/uniface/main/assets/demos/anonymization.jpg" width="100%"></td>
+ </tr>
+</table>
+
+---
+
## Installation
**Standard installation**
diff --git a/assets/demos/age_gender.jpg b/assets/demos/age_gender.jpg
new file mode 100644
index 0000000..f88f67e
Binary files /dev/null and b/assets/demos/age_gender.jpg differ
diff --git a/assets/demos/anonymization.jpg b/assets/demos/anonymization.jpg
new file mode 100644
index 0000000..7f50245
Binary files /dev/null and b/assets/demos/anonymization.jpg differ
diff --git a/assets/demos/detection.jpg b/assets/demos/detection.jpg
new file mode 100644
index 0000000..649b46c
Binary files /dev/null and b/assets/demos/detection.jpg differ
diff --git a/assets/demos/gaze.jpg b/assets/demos/gaze.jpg
new file mode 100644
index 0000000..d5603a4
Binary files /dev/null and b/assets/demos/gaze.jpg differ
diff --git a/assets/demos/headpose.jpg b/assets/demos/headpose.jpg
new file mode 100644
index 0000000..f11dba6
Binary files /dev/null and b/assets/demos/headpose.jpg differ
diff --git a/assets/demos/landmarks.jpg b/assets/demos/landmarks.jpg
new file mode 100644
index 0000000..4bd589c
Binary files /dev/null and b/assets/demos/landmarks.jpg differ
diff --git a/assets/demos/parsing.jpg b/assets/demos/parsing.jpg
new file mode 100644
index 0000000..ab84701
Binary files /dev/null and b/assets/demos/parsing.jpg differ
diff --git a/assets/demos/segmentation.jpg b/assets/demos/segmentation.jpg
new file mode 100644
index 0000000..8a5171b
Binary files /dev/null and b/assets/demos/segmentation.jpg differ
diff --git a/assets/demos/src_friends.jpg b/assets/demos/src_friends.jpg
new file mode 100644
index 0000000..bde4829
Binary files /dev/null and b/assets/demos/src_friends.jpg differ
diff --git a/assets/demos/src_man1.jpg b/assets/demos/src_man1.jpg
new file mode 100644
index 0000000..792baa4
Binary files /dev/null and b/assets/demos/src_man1.jpg differ
diff --git a/assets/demos/src_man2.jpg b/assets/demos/src_man2.jpg
new file mode 100644
index 0000000..3e2d088
Binary files /dev/null and b/assets/demos/src_man2.jpg differ
diff --git a/assets/demos/src_man3.jpg b/assets/demos/src_man3.jpg
new file mode 100644
index 0000000..eb137bf
Binary files /dev/null and b/assets/demos/src_man3.jpg differ
diff --git a/assets/demos/src_meeting.jpg b/assets/demos/src_meeting.jpg
new file mode 100644
index 0000000..1f8b3d0
Binary files /dev/null and b/assets/demos/src_meeting.jpg differ
diff --git a/assets/demos/src_portrait1.jpg b/assets/demos/src_portrait1.jpg
new file mode 100644
index 0000000..3d29e66
Binary files /dev/null and b/assets/demos/src_portrait1.jpg differ
diff --git a/assets/demos/verification.jpg b/assets/demos/verification.jpg
new file mode 100644
index 0000000..6d2997f
Binary files /dev/null and b/assets/demos/verification.jpg differ
diff --git a/docs/modules/attributes.md b/docs/modules/attributes.md
index a5d15a1..c947ead 100644
--- a/docs/modules/attributes.md
+++ b/docs/modules/attributes.md
@@ -2,6 +2,11 @@
Facial attribute analysis for age, gender, race, and emotion detection.
+<figure markdown="span">
+ ![Age & Gender Prediction](https://raw.githubusercontent.com/yakhyo/uniface/main/assets/demos/age_gender.jpg){ width="100%" }
+ <figcaption>Age and gender prediction with detection bounding boxes</figcaption>
+</figure>
+
---
## Available Models
diff --git a/docs/modules/detection.md b/docs/modules/detection.md
index 65955c5..111ce53 100644
--- a/docs/modules/detection.md
+++ b/docs/modules/detection.md
@@ -2,6 +2,11 @@
Face detection is the first step in any face analysis pipeline. UniFace provides four detection models.
+<figure markdown="span">
+ ![Face Detection](https://raw.githubusercontent.com/yakhyo/uniface/main/assets/demos/detection.jpg){ width="100%" }
+ <figcaption>SCRFD detection with corner-style bounding boxes and 5-point landmarks</figcaption>
+</figure>
+
---
## Available Models
diff --git a/docs/modules/gaze.md b/docs/modules/gaze.md
index 9f3f8f7..44d7a1c 100644
--- a/docs/modules/gaze.md
+++ b/docs/modules/gaze.md
@@ -2,6 +2,11 @@
Gaze estimation predicts where a person is looking (pitch and yaw angles).
+<figure markdown="span">
+ ![Gaze Estimation](https://raw.githubusercontent.com/yakhyo/uniface/main/assets/demos/gaze.jpg){ width="100%" }
+ <figcaption>Gaze direction arrows with pitch/yaw angle labels</figcaption>
+</figure>
+
---
## Available Models
diff --git a/docs/modules/headpose.md b/docs/modules/headpose.md
index e356086..feb31e9 100644
--- a/docs/modules/headpose.md
+++ b/docs/modules/headpose.md
@@ -2,6 +2,11 @@
Head pose estimation predicts the 3D orientation of a person's head (pitch, yaw, and roll angles).
+<figure markdown="span">
+ ![Head Pose Estimation](https://raw.githubusercontent.com/yakhyo/uniface/main/assets/demos/headpose.jpg){ width="100%" }
+ <figcaption>3D head pose visualization with pitch, yaw, and roll angles</figcaption>
+</figure>
+
---
## Available Models
diff --git a/docs/modules/landmarks.md b/docs/modules/landmarks.md
index 99c802f..1b695c5 100644
--- a/docs/modules/landmarks.md
+++ b/docs/modules/landmarks.md
@@ -2,6 +2,11 @@
Facial landmark detection provides precise localization of facial features.
+<figure markdown="span">
+ ![106-Point Landmarks](https://raw.githubusercontent.com/yakhyo/uniface/main/assets/demos/landmarks.jpg){ width="50%" }
+ <figcaption>106-point facial landmark localization</figcaption>
+</figure>
+
---
## Available Models
diff --git a/docs/modules/parsing.md b/docs/modules/parsing.md
index 50a0127..f05192d 100644
--- a/docs/modules/parsing.md
+++ b/docs/modules/parsing.md
@@ -2,6 +2,16 @@
Face parsing segments faces into semantic components or face regions.
+<figure markdown="span">
+ ![Face Parsing](https://raw.githubusercontent.com/yakhyo/uniface/main/assets/demos/parsing.jpg){ width="80%" }
+ <figcaption>BiSeNet face parsing with 19 semantic component classes</figcaption>
+</figure>
+
+<figure markdown="span">
+ ![Face Segmentation](https://raw.githubusercontent.com/yakhyo/uniface/main/assets/demos/segmentation.jpg){ width="80%" }
+ <figcaption>XSeg face region segmentation mask</figcaption>
+</figure>
+
---
## Available Models
diff --git a/docs/modules/privacy.md b/docs/modules/privacy.md
index f70916a..4e73502 100644
--- a/docs/modules/privacy.md
+++ b/docs/modules/privacy.md
@@ -2,6 +2,11 @@
Face anonymization protects privacy by blurring or obscuring faces in images and videos.
+<figure markdown="span">
+ ![Face Anonymization](https://raw.githubusercontent.com/yakhyo/uniface/main/assets/demos/anonymization.jpg){ width="100%" }
+ <figcaption>Five anonymization methods: pixelate, gaussian, blackout, elliptical, and median</figcaption>
+</figure>
+
---
## Available Methods
diff --git a/docs/modules/recognition.md b/docs/modules/recognition.md
index 9040046..a90493c 100644
--- a/docs/modules/recognition.md
+++ b/docs/modules/recognition.md
@@ -2,6 +2,11 @@
Face recognition extracts embeddings for identity verification and face search.
+<figure markdown="span">
+ ![Face Verification](https://raw.githubusercontent.com/yakhyo/uniface/main/assets/demos/verification.jpg){ width="80%" }
+ <figcaption>Pairwise face verification with cosine similarity scores</figcaption>
+</figure>
+
---
## Available Models