mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-26 01:50:33 +08:00
* 第一次提交 * 补充一处漏翻译 * deleted: docs/en/quantize.md * Update one translation * Update en version * Update one translation in code * Standardize one writing * Standardize one writing * Update some en version * Fix a grammer problem * Update en version for api/vision result * Merge branch 'develop' of https://github.com/charl-u/FastDeploy into develop * Checkout the link in README in vision_results/ to the en documents * Modify a title * Add link to serving/docs/ * Finish translation of demo.md
2.0 KiB
2.0 KiB
English | 中文
Keypoint Detection Result
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.
C++ Definition
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).
Python Definition
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.