16 #include "fastdeploy/vision/common/processors/transform.h" 17 #include "fastdeploy/vision/common/result.h" 25 class FASTDEPLOY_DECL Yolov7FacePreprocessor{
29 Yolov7FacePreprocessor();
38 bool Run(std::vector<FDMat>* images, std::vector<FDTensor>* outputs,
39 std::vector<std::map<std::string, std::array<float, 2>>>* ims_info);
42 void SetSize(
const std::vector<int>& size) { size_ = size; }
45 std::vector<int> GetSize()
const {
return size_; }
48 void SetPaddingColorValue(
const std::vector<float>& padding_color_value) {
49 padding_color_value_ = padding_color_value;
53 std::vector<float> GetPaddingColorValue()
const {
54 return padding_color_value_;
59 void SetScaleUp(
bool is_scale_up) {
60 is_scale_up_ = is_scale_up;
64 bool GetScaleUp()
const {
return is_scale_up_; }
67 bool Preprocess(FDMat * mat, FDTensor* output,
68 std::map<std::string, std::array<float, 2>>* im_info);
70 void LetterBox(FDMat* mat);
73 std::vector<int> size_;
76 std::vector<float> padding_color_value_;
All C++ FastDeploy APIs are defined inside this namespace.
Definition: option.h:16