Skip to content

Commit d823a5a

Browse files
committed
1
1 parent 4de9186 commit d823a5a

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

docs/using-with/cpp.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,15 @@ for (auto& result : results) {
105105
image.Write("result.jpg");
106106
```
107107
108+
### Face Landmark
109+
110+
Face landmark prediction can be used in any detection mode state, but it should be noted that if the detection mode is in **TRACK** state, you will get smoother facial landmark points. This is because the internal face tracking state landmark optimization filtering has been integrated. We provide two solutions: 5 basic key points and denser key points (more than 100 points).
111+
112+
```c
113+
inspire::FaceTrackWrap result = results[0];
114+
std::vector<inspirecv::Point2f> landmark = session->GetFaceDenseLandmark(result);
115+
```
116+
108117
### Face Embeding
109118

110119
Get face Embeding is an important step in face recognition, comparison or face swap, which usually needs to be carried out after face detection or tracking:
@@ -115,6 +124,19 @@ inspire::FaceEmbedding feature;
115124
session.FaceFeatureExtract(process, results[0], feature, true);
116125
```
117126

127+
### Face Pose Estimation
128+
129+
When you create a session with the **enable_face_pose** option enabled, you can obtain face pose Euler angle values from the returned MultipleFaceData during face detection or tracking:
130+
131+
- **HFFaceEulerAngle**:
132+
- **roll**: Head rotation around the Z-axis (tilting left/right)
133+
- **yaw**: Head rotation around the Y-axis (turning left/right)
134+
- **pitch**: Head rotation around the X-axis (nodding up/down)
135+
136+
```c
137+
std::cout << "yaw: " << result.face3DAngle.yaw << ", pitch: " << result.face3DAngle.pitch << ", roll: " << result.face3DAngle.roll << std::endl;
138+
```
139+
118140
### Face Comparison
119141

120142
Face comparison is the process of comparing two faces to determine if they are the same person.

0 commit comments

Comments
 (0)