mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-08 10:00:29 +08:00
[CVCUDA] PaddleDetection preprocessor support CV-CUDA (#1493)
* ppdet preproc use manager * pad_to_size chw opencv * pad_to_size chw flycv * fix pad_to_size flycv * add warning message * cvcuda convert cubic to linear, padToSize cvcuda * stridedpad cvcuda * fix flycv include * fix flycv include * fix flycv build * cast cvcuda * fix pybind * fix normalize permute cuda * base processor move funcs to cc * Update pad_to_size.cc
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
|
||||
#include "fastdeploy/core/fd_tensor.h"
|
||||
#include "fastdeploy/utils/utils.h"
|
||||
#include "fastdeploy/vision/common/processors/mat.h"
|
||||
#include "opencv2/core/core.hpp"
|
||||
|
||||
#ifdef ENABLE_FLYCV
|
||||
@@ -42,11 +43,12 @@ cv::Mat ConvertFlyCVMatToOpenCV(fcv::Mat& fim);
|
||||
|
||||
// Create zero copy OpenCV/FlyCV Mat from FD Tensor / Buffer
|
||||
cv::Mat CreateZeroCopyOpenCVMatFromBuffer(int height, int width,
|
||||
int channels, FDDataType type, void* data);
|
||||
cv::Mat CreateZeroCopyOpenCVMatFromTensor(const FDTensor& tensor);
|
||||
int channels, FDDataType type, void* data);
|
||||
cv::Mat CreateZeroCopyOpenCVMatFromTensor(const FDTensor& tensor,
|
||||
Layout layout = Layout::HWC);
|
||||
#ifdef ENABLE_FLYCV
|
||||
fcv::Mat CreateZeroCopyFlyCVMatFromBuffer(int height, int width,
|
||||
int channels, FDDataType type, void* data);
|
||||
int channels, FDDataType type, void* data);
|
||||
fcv::Mat CreateZeroCopyFlyCVMatFromTensor(const FDTensor& tensor);
|
||||
#endif
|
||||
} // namespace vision
|
||||
|
Reference in New Issue
Block a user