mirror of
https://github.com/PaddlePaddle/PaddleOCR.git
synced 2026-09-24 23:33:08 +08:00
add batch infer for cpp rec
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user