17 #include "fastdeploy/utils/utils.h" 18 #include "fastdeploy/vision/common/processors/mat.h" 19 #include "fastdeploy/vision/common/processors/mat_batch.h" 20 #include "opencv2/highgui/highgui.hpp" 21 #include "opencv2/imgproc/imgproc.hpp" 22 #include <unordered_map> 50 virtual std::string Name() = 0;
52 virtual bool ImplByOpenCV(
FDMat* mat);
53 virtual bool ImplByOpenCV(
FDMatBatch* mat_batch);
55 virtual bool ImplByFlyCV(
FDMat* mat);
56 virtual bool ImplByFlyCV(
FDMatBatch* mat_batch);
58 virtual bool ImplByCuda(
FDMat* mat);
59 virtual bool ImplByCuda(
FDMatBatch* mat_batch);
61 virtual bool ImplByCvCuda(
FDMat* mat);
62 virtual bool ImplByCvCuda(
FDMatBatch* mat_batch);
69 virtual bool operator()(
FDMat* mat);
79 virtual bool operator()(
FDMat* mat, ProcLib lib);
86 virtual bool operator()(
FDMatBatch* mat_batch);
void SetProcLibCpuNumThreads(int threads)
Set the cpu num threads of ProcLib.
Definition: base.cc:169
FDMat is a structure for replace cv::Mat.
Definition: mat.h:34
Processor base class for processors in fastdeploy/vision/common/processors.
Definition: base.h:42
FDMatBatch contains batch data for preprocess.
Definition: mat_batch.h:28
void EnableFlyCV()
Enable using FlyCV to process image while deploy vision models. Currently, FlyCV in only available on...
Definition: base.cc:151
All C++ FastDeploy APIs are defined inside this namespace.
Definition: option.h:16
void DisableFlyCV()
Disable using FlyCV to process image while deploy vision models.
Definition: base.cc:163