16 #include "fastdeploy/vision/utils/utils.h" 20 namespace keypointdetection {
22 cv::Point2f Get3dPoint(
const cv::Point2f& a,
const cv::Point2f& b);
24 std::vector<float> GetDir(
const float src_point_x,
const float src_point_y,
27 void GetAffineTransform(
const std::vector<float>& center,
28 const std::vector<float>& scale,
const float rot,
29 const std::vector<int>& output_size, cv::Mat* trans,
32 void AffineTransform(
const float pt_x,
const float pt_y,
const cv::Mat& trans,
33 std::vector<float>* preds,
const int p);
35 void TransformPreds(std::vector<float>& coords,
36 const std::vector<float>& center,
37 const std::vector<float>& scale,
38 const std::vector<int>& output_size,
39 const std::vector<int>& dim,
40 std::vector<float>* target_coords);
42 void GetFinalPredictions(
const std::vector<float>& heatmap,
43 const std::vector<int>& dim,
44 const std::vector<int64_t>& idxout,
45 const std::vector<float>& center,
46 const std::vector<float> scale,
47 std::vector<float>* preds,
const bool DARK);
All C++ FastDeploy APIs are defined inside this namespace.
Definition: option.h:16