Skip to content

Commit f4c5440

Browse files
committed
Modify some incorrect and missing code comments.
Former-commit-id: 5b869f7
1 parent d2eef58 commit f4c5440

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

cpp/inspireface/c_api/inspireface.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,14 +636,19 @@ HYPER_CAPI_EXPORT extern HResult HFFaceQualityDetect(HFSession session, HFFaceBa
636636

637637

638638
/**
639-
* @brief Some facial states in the face interaction module.
639+
* @brief Facial states in the face interaction module.
640640
*/
641641
typedef struct HFFaceIntereactionResult {
642642
HInt32 num; ///< Number of faces detected.
643643
HPFloat leftEyeStatusConfidence; ///< Left eye state: confidence close to 1 means open, close to 0 means closed.
644644
HPFloat rightEyeStatusConfidence; ///< Right eye state: confidence close to 1 means open, close to 0 means closed.
645645
} HFFaceIntereactionResult, *PHFFaceIntereactionResult;
646646

647+
/**
648+
* @brief Get the prediction results of face interaction.
649+
* @param session Handle to the session.
650+
* @param result Facial state prediction results in the face interaction module.
651+
*/
647652
HYPER_CAPI_EXPORT extern HResult HFGetFaceIntereactionResult(HFSession session, PHFFaceIntereactionResult result);
648653

649654
/**

python/inspireface/modules/core/libInspireFace.dylib.REMOVED.git-id

Lines changed: 0 additions & 1 deletion
This file was deleted.

python/sample_face_track_from_video.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def case_face_tracker_from_video(resource_path, source, show):
6262
# Calculate center, size, and angle
6363
center = ((x1 + x2) / 2, (y1 + y2) / 2)
6464
size = (x2 - x1, y2 - y1)
65-
angle = face.roll # 这里使用 roll 角度
65+
angle = face.roll
6666

6767
# Get rotation matrix
6868
rotation_matrix = cv2.getRotationMatrix2D(center, angle, 1.0)

0 commit comments

Comments
 (0)