Merge remote-tracking branch 'PaddlePaddle/dygraph' into dygraph

This commit is contained in:
Leif 2021-06-02 19:38:59 +08:00
commit 810d00b515
1 changed files with 2 additions and 1 deletions

View File

@ -25,8 +25,9 @@ void CRNNRecognizer::Run(std::vector<std::vector<std::vector<int>>> boxes,
std::cout << "The predicted text is :" << std::endl;
int index = 0;
for (int i = boxes.size() - 1; i >= 0; i--) {
for (int i = 0; i < boxes.size(); i++) {
crop_img = GetRotateCropImage(srcimg, boxes[i]);
if (cls != nullptr) {
crop_img = cls->Run(crop_img);
}