Shortcuts

pose_detector.h

struct mmdeploy_pose_detection_t

Public Members

mmdeploy_point_t *point

keypoint

float *score

keypoint score

int length

number of keypoint

typedef struct mmdeploy_pose_detector *mmdeploy_pose_detector_t
int mmdeploy_pose_detector_create(mmdeploy_model_t model, const char *device_name, int device_id, mmdeploy_pose_detector_t *detector)

Create a pose detector instance.

参数
返回

status code of the operation

int mmdeploy_pose_detector_create_by_path(const char *model_path, const char *device_name, int device_id, mmdeploy_pose_detector_t *detector)

Create a pose detector instance.

参数
  • model_path[in] path to pose detection model

  • device_name[in] name of device, such as “cpu”, “cuda”, etc.

  • device_id[in] id of device.

  • detector[out] handle of the created pose detector, which must be destroyed by mmdeploy_pose_detector_destroy

返回

status code of the operation

int mmdeploy_pose_detector_apply(mmdeploy_pose_detector_t detector, const mmdeploy_mat_t *mats, int mat_count, mmdeploy_pose_detection_t **results)

Apply pose detector to a batch of images with full image roi.

参数
返回

status code of the operation

int mmdeploy_pose_detector_apply_bbox(mmdeploy_pose_detector_t detector, const mmdeploy_mat_t *mats, int mat_count, const mmdeploy_rect_t *bboxes, const int *bbox_count, mmdeploy_pose_detection_t **results)

Apply pose detector to a batch of images supplied with bboxes(roi)

参数
  • detector[in] pose detector’s handle created by mmdeploy_pose_detector_create_by_path

  • images[in] a batch of images

  • image_count[in] number of images in the batch

  • bboxes[in] bounding boxes(roi) detected by mmdet

  • bbox_count[in] number of bboxes of each images, must be same length as images

  • results[out] a linear buffer contains the pose result, which has the same length as bboxes, must be release by mmdeploy_pose_detector_release_result

返回

status code of the operation

void mmdeploy_pose_detector_release_result(mmdeploy_pose_detection_t *results, int count)

Release result buffer returned by mmdeploy_pose_detector_apply or mmdeploy_pose_detector_apply_bbox.

参数
  • results[in] result buffer by pose detector

  • count[in] length of result

void mmdeploy_pose_detector_destroy(mmdeploy_pose_detector_t detector)

destroy pose_detector

参数

detector[in] handle of pose_detector created by mmdeploy_pose_detector_create_by_path or mmdeploy_pose_detector_create

int mmdeploy_pose_detector_create_v2(mmdeploy_model_t model, mmdeploy_context_t context, mmdeploy_pose_detector_t *detector)
int mmdeploy_pose_detector_create_input(const mmdeploy_mat_t *mats, int mat_count, const mmdeploy_rect_t *bboxes, const int *bbox_count, mmdeploy_value_t *value)
int mmdeploy_pose_detector_apply_v2(mmdeploy_pose_detector_t detector, mmdeploy_value_t input, mmdeploy_value_t *output)
int mmdeploy_pose_detector_apply_async(mmdeploy_pose_detector_t detector, mmdeploy_sender_t input, mmdeploy_sender_t *output)
int mmdeploy_pose_detector_get_result(mmdeploy_value_t output, mmdeploy_pose_detection_t **results)
Read the Docs v: stable
Versions
latest
stable
v1.3.1
v1.3.0
v1.2.0
v1.1.0
v1.0.0
0.x
v0.14.0
Downloads
pdf
html
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.