|
ailia
1.5.0.0
|
AILIA library for human pose estimation and human face landmarks extraction. More...

Go to the source code of this file.
Classes | |
| struct | _AILIAPoseEstimatorKeypoint |
| struct | _AILIAPoseEstimatorObjectPose |
| struct | _AILIAPoseEstimatorObjectFace |
| struct | _AILIAPoseEstimatorObjectUpPose |
| struct | _AILIAPoseEstimatorObjectHand |
Typedefs | |
| typedef struct _AILIAPoseEstimatorKeypoint | AILIAPoseEstimatorKeypoint |
| typedef struct _AILIAPoseEstimatorObjectPose | AILIAPoseEstimatorObjectPose |
| typedef struct _AILIAPoseEstimatorObjectFace | AILIAPoseEstimatorObjectFace |
| typedef struct _AILIAPoseEstimatorObjectUpPose | AILIAPoseEstimatorObjectUpPose |
| typedef struct _AILIAPoseEstimatorObjectHand | AILIAPoseEstimatorObjectHand |
Functions | |
| int AILIA_API | ailiaCreatePoseEstimator (struct AILIAPoseEstimator **pose_estimator, struct AILIANetwork *net, unsigned int algorithm) |
| Creates a estimator instance. More... | |
| void AILIA_API | ailiaDestroyPoseEstimator (struct AILIAPoseEstimator *pose_estimator) |
| Destroys the estimator instance. More... | |
| int AILIA_API | ailiaPoseEstimatorSetThreshold (struct AILIAPoseEstimator *pose_estimator, float threshold) |
| Set the detection threshold. More... | |
| int AILIA_API | ailiaPoseEstimatorCompute (struct AILIAPoseEstimator *pose_estimator, const void *src, unsigned int src_stride, unsigned int src_width, unsigned int src_height, unsigned int src_format) |
| Performs human pose estimation and human face landmarks extraction. More... | |
| int AILIA_API | ailiaPoseEstimatorGetObjectCount (struct AILIAPoseEstimator *pose_estimator, unsigned int *obj_count) |
| Gets the number of detection results. More... | |
| int AILIA_API | ailiaPoseEstimatorGetObjectPose (struct AILIAPoseEstimator *pose_estimator, AILIAPoseEstimatorObjectPose *obj, unsigned int obj_idx, unsigned int version) |
| Gets the results of the human pose estimation. More... | |
| int AILIA_API | ailiaPoseEstimatorGetObjectFace (struct AILIAPoseEstimator *pose_estimator, AILIAPoseEstimatorObjectFace *obj, unsigned int obj_idx, unsigned int version) |
| Gets the results of the human face landmarks extraction. More... | |
| int AILIA_API | ailiaPoseEstimatorGetObjectUpPose (struct AILIAPoseEstimator *pose_estimator, AILIAPoseEstimatorObjectUpPose *obj, unsigned int obj_idx, unsigned int version) |
| Gets the results of the human up pose estimation. More... | |
| int AILIA_API | ailiaPoseEstimatorGetObjectHand (struct AILIAPoseEstimator *pose_estimator, AILIAPoseEstimatorObjectHand *obj, unsigned int obj_idx, unsigned int version) |
| Gets the results of the human hand estimation. More... | |
AILIA library for human pose estimation and human face landmarks extraction.
| #define AILIA_POSE_ESTIMATOR_ALGORITHM_ACCULUS_FACE (1) |
Human face landmarks extraction
| #define AILIA_POSE_ESTIMATOR_ALGORITHM_ACCULUS_HAND (5) |
Human hand estimation
| #define AILIA_POSE_ESTIMATOR_ALGORITHM_ACCULUS_POSE (0) |
Human pose estimation
| #define AILIA_POSE_ESTIMATOR_ALGORITHM_ACCULUS_UPPOSE (2) |
Human upper body pose estimation
| #define AILIA_POSE_ESTIMATOR_ALGORITHM_ACCULUS_UPPOSE_FPGA (3) |
Human upper body pose estimation(FPGA)
| #define AILIA_POSE_ESTIMATOR_ALGORITHM_LW_HUMAN_POSE (11) |
Human pose estimation
| #define AILIA_POSE_ESTIMATOR_ALGORITHM_OPEN_POSE (10) |
Human pose estimation
| #define AILIA_POSE_ESTIMATOR_ALGORITHM_OPEN_POSE_SINGLE_SCALE (12) |
Human pose estimation
| #define AILIA_POSE_ESTIMATOR_FACE_KEYPOINT_CNT (68) |
Count
| #define AILIA_POSE_ESTIMATOR_HAND_KEYPOINT_CNT (21) |
Count
| #define AILIA_POSE_ESTIMATOR_OBJECT_FACE_VERSION (1) |
Version of the struct format
| #define AILIA_POSE_ESTIMATOR_OBJECT_HAND_VERSION (1) |
Version of the struct format
| #define AILIA_POSE_ESTIMATOR_OBJECT_POSE_VERSION (1) |
Version of the struct format
| #define AILIA_POSE_ESTIMATOR_OBJECT_UPPOSE_VERSION (1) |
Version of the struct format
| #define AILIA_POSE_ESTIMATOR_POSE_KEYPOINT_ANKLE_LEFT (15) |
| #define AILIA_POSE_ESTIMATOR_POSE_KEYPOINT_ANKLE_RIGHT (16) |
| #define AILIA_POSE_ESTIMATOR_POSE_KEYPOINT_BODY_CENTER (18) |
| #define AILIA_POSE_ESTIMATOR_POSE_KEYPOINT_CNT (19) |
Count
| #define AILIA_POSE_ESTIMATOR_POSE_KEYPOINT_EAR_LEFT (3) |
| #define AILIA_POSE_ESTIMATOR_POSE_KEYPOINT_EAR_RIGHT (4) |
| #define AILIA_POSE_ESTIMATOR_POSE_KEYPOINT_ELBOW_LEFT (7) |
| #define AILIA_POSE_ESTIMATOR_POSE_KEYPOINT_ELBOW_RIGHT (8) |
| #define AILIA_POSE_ESTIMATOR_POSE_KEYPOINT_EYE_LEFT (1) |
| #define AILIA_POSE_ESTIMATOR_POSE_KEYPOINT_EYE_RIGHT (2) |
| #define AILIA_POSE_ESTIMATOR_POSE_KEYPOINT_HIP_LEFT (11) |
| #define AILIA_POSE_ESTIMATOR_POSE_KEYPOINT_HIP_RIGHT (12) |
| #define AILIA_POSE_ESTIMATOR_POSE_KEYPOINT_KNEE_LEFT (13) |
| #define AILIA_POSE_ESTIMATOR_POSE_KEYPOINT_KNEE_RIGHT (14) |
| #define AILIA_POSE_ESTIMATOR_POSE_KEYPOINT_NOSE (0) |
| #define AILIA_POSE_ESTIMATOR_POSE_KEYPOINT_SHOULDER_CENTER (17) |
| #define AILIA_POSE_ESTIMATOR_POSE_KEYPOINT_SHOULDER_LEFT (5) |
| #define AILIA_POSE_ESTIMATOR_POSE_KEYPOINT_SHOULDER_RIGHT (6) |
| #define AILIA_POSE_ESTIMATOR_POSE_KEYPOINT_WRIST_LEFT (9) |
| #define AILIA_POSE_ESTIMATOR_POSE_KEYPOINT_WRIST_RIGHT (10) |
| #define AILIA_POSE_ESTIMATOR_UPPOSE_KEYPOINT_BODY_CENTER (14) |
| #define AILIA_POSE_ESTIMATOR_UPPOSE_KEYPOINT_CNT (15) |
Count
| #define AILIA_POSE_ESTIMATOR_UPPOSE_KEYPOINT_EAR_LEFT (3) |
| #define AILIA_POSE_ESTIMATOR_UPPOSE_KEYPOINT_EAR_RIGHT (4) |
| #define AILIA_POSE_ESTIMATOR_UPPOSE_KEYPOINT_ELBOW_LEFT (7) |
| #define AILIA_POSE_ESTIMATOR_UPPOSE_KEYPOINT_ELBOW_RIGHT (8) |
| #define AILIA_POSE_ESTIMATOR_UPPOSE_KEYPOINT_EYE_LEFT (1) |
| #define AILIA_POSE_ESTIMATOR_UPPOSE_KEYPOINT_EYE_RIGHT (2) |
| #define AILIA_POSE_ESTIMATOR_UPPOSE_KEYPOINT_HIP_LEFT (11) |
| #define AILIA_POSE_ESTIMATOR_UPPOSE_KEYPOINT_HIP_RIGHT (12) |
| #define AILIA_POSE_ESTIMATOR_UPPOSE_KEYPOINT_NOSE (0) |
| #define AILIA_POSE_ESTIMATOR_UPPOSE_KEYPOINT_SHOULDER_CENTER (13) |
| #define AILIA_POSE_ESTIMATOR_UPPOSE_KEYPOINT_SHOULDER_LEFT (5) |
| #define AILIA_POSE_ESTIMATOR_UPPOSE_KEYPOINT_SHOULDER_RIGHT (6) |
| #define AILIA_POSE_ESTIMATOR_UPPOSE_KEYPOINT_WRIST_LEFT (9) |
| #define AILIA_POSE_ESTIMATOR_UPPOSE_KEYPOINT_WRIST_RIGHT (10) |
| typedef struct _AILIAPoseEstimatorKeypoint AILIAPoseEstimatorKeypoint |
| typedef struct _AILIAPoseEstimatorObjectFace AILIAPoseEstimatorObjectFace |
| typedef struct _AILIAPoseEstimatorObjectHand AILIAPoseEstimatorObjectHand |
| typedef struct _AILIAPoseEstimatorObjectPose AILIAPoseEstimatorObjectPose |
| typedef struct _AILIAPoseEstimatorObjectUpPose AILIAPoseEstimatorObjectUpPose |
| int AILIA_API ailiaCreatePoseEstimator | ( | struct AILIAPoseEstimator ** | pose_estimator, |
| struct AILIANetwork * | net, | ||
| unsigned int | algorithm | ||
| ) |
Creates a estimator instance.
| pose_estimator | An estimator instance pointer |
| net | The network instance pointer |
| algorithm | Estimation algorithm(AILIA_POSE_ESTIMATOR_ALGORITHM_*) |
This function creates an estimator instance from AILIANetwork when reading caffemodel and prototxt.
| void AILIA_API ailiaDestroyPoseEstimator | ( | struct AILIAPoseEstimator * | pose_estimator | ) |
Destroys the estimator instance.
| pose_estimator | An estimator instance pointer |
| int AILIA_API ailiaPoseEstimatorCompute | ( | struct AILIAPoseEstimator * | pose_estimator, |
| const void * | src, | ||
| unsigned int | src_stride, | ||
| unsigned int | src_width, | ||
| unsigned int | src_height, | ||
| unsigned int | src_format | ||
| ) |
Performs human pose estimation and human face landmarks extraction.
| pose_estimator | An estimator instance pointer |
| src | Image data (32 bpp) |
| src_stride | The number of bytes in 1 line |
| src_width | Image width |
| src_height | Image height |
| src_format | Image format (AILIA_IMAGE_FORMAT_*) |
| int AILIA_API ailiaPoseEstimatorGetObjectCount | ( | struct AILIAPoseEstimator * | pose_estimator, |
| unsigned int * | obj_count | ||
| ) |
Gets the number of detection results.
| pose_estimator | An estimator instance pointer |
| obj_count | The number of objects. Set to 1 or 0 for human face landmarks. |
| int AILIA_API ailiaPoseEstimatorGetObjectFace | ( | struct AILIAPoseEstimator * | pose_estimator, |
| AILIAPoseEstimatorObjectFace * | obj, | ||
| unsigned int | obj_idx, | ||
| unsigned int | version | ||
| ) |
Gets the results of the human face landmarks extraction.
| pose_estimator | An estimator instance pointer |
| obj | Object information |
| obj_idx | Object index. Ensure that 0 is specified. |
| version | AILIA_POSE_ESTIMATOR_OBJECT_FACE_VERSION |
| int AILIA_API ailiaPoseEstimatorGetObjectHand | ( | struct AILIAPoseEstimator * | pose_estimator, |
| AILIAPoseEstimatorObjectHand * | obj, | ||
| unsigned int | obj_idx, | ||
| unsigned int | version | ||
| ) |
Gets the results of the human hand estimation.
| pose_estimator | An estimator instance pointer |
| obj | Object information |
| obj_idx | Object index. Ensure that 0 is specified. |
| version | AILIA_POSE_ESTIMATOR_OBJECT_HAND_VERSION |
| int AILIA_API ailiaPoseEstimatorGetObjectPose | ( | struct AILIAPoseEstimator * | pose_estimator, |
| AILIAPoseEstimatorObjectPose * | obj, | ||
| unsigned int | obj_idx, | ||
| unsigned int | version | ||
| ) |
Gets the results of the human pose estimation.
| pose_estimator | An estimator instance pointer |
| obj | Object information |
| obj_idx | Object index |
| version | AILIA_POSE_ESTIMATOR_OBJECT_POSE_VERSION |
| int AILIA_API ailiaPoseEstimatorGetObjectUpPose | ( | struct AILIAPoseEstimator * | pose_estimator, |
| AILIAPoseEstimatorObjectUpPose * | obj, | ||
| unsigned int | obj_idx, | ||
| unsigned int | version | ||
| ) |
Gets the results of the human up pose estimation.
| pose_estimator | An estimator instance pointer |
| obj | Object information |
| obj_idx | Object index |
| version | AILIA_POSE_ESTIMATOR_OBJECT_UPPOSE_VERSION |
| int AILIA_API ailiaPoseEstimatorSetThreshold | ( | struct AILIAPoseEstimator * | pose_estimator, |
| float | threshold | ||
| ) |
Set the detection threshold.
| pose_estimator | An estimator instance pointer |
| threshold | The detection threshold (for example, 0.1f) (The smaller it is, the easier the detection will be and the more detected objects found.) |