mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-25 01:20:43 +08:00
Integrate FalconCV to boost image preprocessing (#331)
Remove opencv cuda code
This commit is contained in:
@@ -31,15 +31,12 @@ class Resize : public Processor {
|
||||
use_scale_ = use_scale;
|
||||
}
|
||||
|
||||
bool CpuRun(Mat* mat);
|
||||
#ifdef ENABLE_OPENCV_CUDA
|
||||
bool GpuRun(Mat* mat);
|
||||
#endif
|
||||
bool ImplByOpenCV(Mat* mat);
|
||||
std::string Name() { return "Resize"; }
|
||||
|
||||
static bool Run(Mat* mat, int width, int height, float scale_w = -1.0,
|
||||
float scale_h = -1.0, int interp = 1, bool use_scale = false,
|
||||
ProcLib lib = ProcLib::OPENCV_CPU);
|
||||
ProcLib lib = ProcLib::OPENCV);
|
||||
|
||||
bool SetWidthAndHeight(int width, int height) {
|
||||
width_ = width;
|
||||
|
||||
Reference in New Issue
Block a user