Call Doc task (supports image and PDF input)
(self, image_path=None, **kwargs)
| 259 | return self.model(img_path=image_path, max_length=max_length, **kwargs) |
| 260 | |
| 261 | def _call_doc(self, image_path=None, **kwargs): |
| 262 | """Call Doc task (supports image and PDF input)""" |
| 263 | return self.model(img_path=image_path, **kwargs) |
| 264 | |
| 265 | # Additional methods for doc task |
| 266 | def save_to_json(self, result, output_path: str): |