add batch infer for cpp rec
parent
86e4981703
commit
8d47ab6eab
|
@ -66,7 +66,6 @@ public:
|
|||
// Load Paddle inference model
|
||||
void LoadModel(const std::string &model_dir);
|
||||
|
||||
// void Run(cv::Mat &img, std::vector<double> *times);
|
||||
void Run(std::vector<cv::Mat> img_list, std::vector<double> *times);
|
||||
|
||||
private:
|
||||
|
|
|
@ -51,7 +51,6 @@ public:
|
|||
static cv::Mat GetRotateCropImage(const cv::Mat &srcimage,
|
||||
std::vector<std::vector<int>> box);
|
||||
|
||||
// 实现argsort功能
|
||||
static std::vector<int> argsort(const std::vector<float>& array);
|
||||
|
||||
};
|
||||
|
|
|
@ -147,7 +147,6 @@ cv::Mat Utility::GetRotateCropImage(const cv::Mat &srcimage,
|
|||
}
|
||||
}
|
||||
|
||||
// 实现argsort功能
|
||||
std::vector<int> Utility::argsort(const std::vector<float>& array)
|
||||
{
|
||||
const int array_len(array.size());
|
||||
|
|
Loading…
Reference in New Issue