16 lines
338 B
Python
16 lines
338 B
Python
from paddleocr import PPStructureV3
|
|
|
|
pipeline = PPStructureV3(
|
|
use_doc_orientation_classify=False,
|
|
# use_table_recognition=True,
|
|
use_doc_unwarping=False
|
|
)
|
|
|
|
# For Image
|
|
output = pipeline.predict(
|
|
input="./bm.jpg",
|
|
)
|
|
|
|
# 可视化结果并保存 json 结果
|
|
for res in output:
|
|
res.save_to_markdown(save_path="output") |