16 #include "fastdeploy/vision/common/processors/transform.h" 17 #include "fastdeploy/vision/common/result.h" 22 namespace classification {
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_; }
49 std::map<std::string, std::array<float, 2>>* im_info);
52 std::vector<int> size_;
std::vector< int > GetSize() const
Get target size, tuple of (width, height), default size = {224, 224}.
Definition: preprocessor.h:45
FDTensor object used to represend data matrix.
Definition: fd_tensor.h:31
void SetSize(const std::vector< int > &size)
Set target size, tuple of (width, height), default size = {224, 224}.
Definition: preprocessor.h:42
FDMat is a structure for replace cv::Mat.
Definition: mat.h:34
Preprocessor object for YOLOv5Cls serials model.
Definition: preprocessor.h:25
All C++ FastDeploy APIs are defined inside this namespace.
Definition: option.h:16