from pdf_extract_kit.registry.registry import TASK_REGISTRY | |
from pdf_extract_kit.tasks.base_task import BaseTask | |
class TableParsingTask(BaseTask): | |
def __init__(self, model): | |
super().__init__(model) | |
def predict(self, input_data, result_path, **kwargs): | |
images = self.load_images(input_data) | |
# Perform layout detection on input_data | |
return self.model.predict(images, result_path, **kwargs) |