mindocr
mindocr copied to clipboard
Support det+cls+rec online prediction pipeline, improve RecResizeNormForInfer to fix bug in single img predict_rec
Thank you for your contribution to the MindOCR repo. Before submitting this PR, please make sure:
- [x] You have read the Contributing Guidelines on pull requests
- [x] Your code builds clean without any errors or warnings
- [x] You are using approved terminology
- [x] You have added unit tests
Motivation
- Add predict_cls and det+cls(optional)+rec online prediction pipeline.
- When run single image prediction in predict_rec.py, padding=False, keep_ratio=True, target_width=None, which will raise bug in RecResizeNormForInfer. Now fix it to support target_width=None.
Related Issues and PRs
Issue #238