RockX  1.0.0
pose.h
Go to the documentation of this file.
1 /****************************************************************************
2 *
3 * Copyright (c) 2017 - 2019 by Rockchip Corp. All rights reserved.
4 *
5 * The material in this file is confidential and contains trade secrets
6 * of Rockchip Corporation. This is proprietary information owned by
7 * Rockchip Corporation. No part of this work may be disclosed,
8 * reproduced, copied, transmitted, or used in any way for any purpose,
9 * without the express written permission of Rockchip Corporation.
10 *
11 *****************************************************************************/
12 
13 #ifndef _ROCKX_POSE_H
14 #define _ROCKX_POSE_H
15 
16 #include "rockx_type.h"
17 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
25 static const char *ROCKX_POSE_BODY_KEYPOINTS_NAME[] = {
26  "Nose", "Neck",
27  "R-Sho", "R-Elb", "R-Wr",
28  "L-Sho", "L-Elb", "L-Wr",
29  "R-Hip", "R-Knee", "R-Ank",
30  "L-Hip", "L-Knee", "L-Ank",
31  "R-Eye", "L-Eye", "R-Ear", "L-Ear"
32 };
33 
37 typedef struct rockx_keypoints_t {
38  int count;
40  float score[32];
42 
46 typedef struct rockx_keypoints_array_t {
47  int count;
50 
60  rockx_async_callback callback);
61 
74 
75 #ifdef __cplusplus
76 } //extern "C"
77 #endif
78 
79 #endif // _ROCKX_POSE_H
rockx_type.h
rockx_keypoints_array_t::keypoints
rockx_keypoints_t keypoints[32]
Array of rockx_keypoints_t.
Definition: pose.h:48
rockx_keypoints_array_t
KeyPoints Array.
Definition: pose.h:46
rockx_keypoints_array_t::count
int count
Array size.
Definition: pose.h:47
rockx_keypoints_array_t
struct rockx_keypoints_array_t rockx_keypoints_array_t
KeyPoints Array.
rockx_ret_t
rockx_ret_t
Return Value of RockX functions.
Definition: rockx_type.h:36
rockx_keypoints_t
KeyPoints for One Body or Finger.
Definition: pose.h:37
rockx_keypoints_t::score
float score[32]
Key points score.
Definition: pose.h:40
rockx_pose_body
rockx_ret_t rockx_pose_body(rockx_handle_t handle, rockx_image_t *in_img, rockx_keypoints_array_t *keypoints_array, rockx_async_callback callback)
rockx_keypoints_t::count
int count
key points count
Definition: pose.h:38
rockx_keypoints_t::points
rockx_point_t points[32]
key points
Definition: pose.h:39
rockx_async_callback
void(* rockx_async_callback)(void *result, size_t result_size)
Pointer of Async Callback Function.
Definition: rockx_type.h:31
rockx_pose_finger
rockx_ret_t rockx_pose_finger(rockx_handle_t handle, rockx_image_t *in_img, rockx_keypoints_t *keypoints)
rockx_handle_t
void * rockx_handle_t
Handle of a created RockX module.
Definition: rockx_type.h:26
rockx_point_t
Point.
Definition: rockx_type.h:86
rockx_image_t
Image.
Definition: rockx_type.h:122
rockx_keypoints_t
struct rockx_keypoints_t rockx_keypoints_t
KeyPoints for One Body or Finger.