sub_ocr.py 470 B

12345678910111213141516171819202122232425262728
  1. # This Python file uses the following encoding: utf-8
  2. # @author runhey
  3. # github https://github.com/runhey
  4. import cv2
  5. from module.ocr.ppocr import TextSystem
  6. from module.exception import ScriptError
  7. from module.ocr.base_ocr import BaseCor, OcrMode, OcrMethod
  8. from module.logger import logger
  9. class Full(BaseCor):
  10. pass
  11. class SingleLine(BaseCor):
  12. pass
  13. class Digit(BaseCor):
  14. pass
  15. class DigitCounter(BaseCor):
  16. pass
  17. class Duration(BaseCor):
  18. pass