Commit 350662f0 authored by zhougaofeng's avatar zhougaofeng
Browse files

Update pp_structure_v2.py

parent 45f75145
...@@ -21,7 +21,7 @@ class CustomPaddleModel: ...@@ -21,7 +21,7 @@ class CustomPaddleModel:
def __init__(self, ocr: bool = False, show_log: bool = False): def __init__(self, ocr: bool = False, show_log: bool = False):
self.model = PPStructure(table=False, ocr=ocr, show_log=show_log) self.model = PPStructure(table=False, ocr=ocr, show_log=show_log)
def __call__(self, img): def __call__(self, img,index,end_page_id):
try: try:
import cv2 import cv2
except ImportError: except ImportError:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment