Initialize OCR task (detection + recognition)
(self, **kwargs)
| 176 | self.model = OpenRecognizer(**kwargs) |
| 177 | |
| 178 | def _init_ocr_task(self, **kwargs): |
| 179 | """Initialize OCR task (detection + recognition)""" |
| 180 | from tools.infer_e2e import OpenOCRE2E |
| 181 | self.model = OpenOCRE2E(**kwargs) |
| 182 | |
| 183 | def _init_unirec_task(self, **kwargs): |
| 184 | """Initialize UniRec task (universal recognition)""" |