fix conflicts for ascend

This commit is contained in:
yunyaoXYY
2022-12-19 09:14:04 +00:00
330 changed files with 12347 additions and 981 deletions

View File

@@ -54,7 +54,7 @@ bool Recognizer::Initialize() {
return true;
}
bool Recognizer::Predict(cv::Mat& img, std::string* text, float* rec_score) {
bool Recognizer::Predict(const cv::Mat& img, std::string* text, float* rec_score) {
std::vector<std::string> texts(1);
std::vector<float> rec_scores(1);
bool success = BatchPredict({img}, &texts, &rec_scores);