English | 中文
The KeyPointDetectionResult code is defined in fastdeploy/vision/common/result.h
, and is used to indicate the coordinates and confidence level of each keypoint of the target's behavior in the image.
fastdeploy::vision::KeyPointDetectionResult
struct KeyPointDetectionResult {
std::vector<std::array<float, 2>> keypoints;
std::vector<float> scores;
int num_joints = -1;
void Clear();
std::string Str();
};
- keypoints: Member variable which indicates the coordinates of the identified target behavior keypoint.
keypoints.size() = N * J
:N
: the number of targets in the imageJ
: num_joints (the number of keypoints of a target)
- scores: Member variable which indicates the confidence level of the keypoint coordinates of the identified target behavior.
scores.size() = N * J
:N
: the number of targets in the pictureJ
:num_joints (the number of keypoints of a target)
- num_joints: Member variable which indicates the number of keypoints of a target.
- Clear(): Member function used to clear the results stored in the structure.
- Str(): Member function used to output the information in the structure as string (for Debug).
fastdeploy.vision.KeyPointDetectionResult
- keypoints(list of list(float)): Member variable which indicates the coordinates of the identified target behavior keypoint.
keypoints.size() = N * J
:N
: the number of targets in the imageJ
: num_joints (the number of keypoints of a target)
- scores(list of float): Member variable which indicates the confidence level of the keypoint coordinates of the identified target behavior.
scores.size() = N * J
:N
: the number of targets in the pictureJ
:num_joints (the number of keypoints of a target)
- num_joints(int): Member variable which indicates the number of keypoints of a target.