add deepseek-ocr2 support

This commit is contained in:
jhqxxx
2026-03-18 19:15:21 +08:00
parent ca57a7245c
commit 6890f86030
22 changed files with 708 additions and 89 deletions
+13
View File
@@ -7,6 +7,10 @@
"OCR:" | "Table Recognition:" | "Formula Recognition:" | "Chart Recognition:" | "Spotting:" | "Seal Recognition:"
## DeepSeekOCR
#### Main Prompts
1. document: <image>\n<|grounding|>Convert the document to markdown.
2. without layouts: <image>\nFree OCR.
#### Metadata
* base_size: 512 | 640 | 1024 | 1280
* image_size: 512 | 640 | 1024 | 1280
@@ -25,6 +29,15 @@
| Large | 1280 | 1280 | false |
| Gundam | 1024 | 640 | true |
## DeepSeekOCR2
#### Main Prompts
1. document: <image>\n<|grounding|>Convert the document to markdown.
2. without layouts: <image>\nFree OCR.
#### Metadata
* crop_mode: false | true
## GLM-OCR
#### Prompt Limited
##### Document Parsing prompt