Files
FastDeploy/docs/api/vision_results/keypointdetection_result_EN.md
charl-u 02eab973ce [Doc]Add English version of documents in docs/cn and api/vision_results (#931)
* 第一次提交

* 补充一处漏翻译

* 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
2022-12-22 18:15:01 +08:00

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 image
    • J: 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 picture
    • J: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 image
    • J: 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 picture
    • J:num_joints (the number of keypoints of a target)
  • num_joints(int): Member variable which indicates the number of keypoints of a target.