Skip to content

Commit

Permalink
fix cpp order (PaddlePaddle#2948)
Browse files Browse the repository at this point in the history
  • Loading branch information
littletomatodonkey committed May 28, 2021
1 parent 0ae041e commit ac3768a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion deploy/cpp_infer/src/ocr_rec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit ac3768a

Please sign in to comment.