udpate wechat, fix some little bugs
This commit is contained in:
@@ -1139,7 +1139,7 @@ print(output_text)
|
||||
# Parse a single image
|
||||
python3 dots_ocr/parser.py demo/demo_image1.jpg
|
||||
# Parse a single PDF
|
||||
python3 dots_ocr/parser.py demo/demo_pdf1.pdf --num_threads 64 # try bigger num_threads for pdf with a large number of pages
|
||||
python3 dots_ocr/parser.py demo/demo_pdf1.pdf --num_thread 64 # try bigger num_threads for pdf with a large number of pages
|
||||
|
||||
# Layout detection only
|
||||
python3 dots_ocr/parser.py demo/demo_image1.jpg --prompt prompt_layout_only_en
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 203 KiB After Width: | Height: | Size: 261 KiB |
+1
-1
@@ -190,7 +190,7 @@ class DotsOCRParser:
|
||||
|
||||
def parse_pdf(self, input_path, filename, prompt_mode, save_dir):
|
||||
print(f"loading pdf: {input_path}")
|
||||
images_origin = load_images_from_pdf(input_path)
|
||||
images_origin = load_images_from_pdf(input_path, dpi=self.dpi)
|
||||
total_pages = len(images_origin)
|
||||
tasks = [
|
||||
{
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
# 生产环境依赖
|
||||
# streamlit
|
||||
gradio
|
||||
gradio_image_annotation
|
||||
|
||||
Reference in New Issue
Block a user