Loading...
Loading...
Compare original and translation side by side
python scripts/ocr_caller.pypython scripts/ocr_caller.py--file-url--file-path--file-pathpython scripts/ocr_caller.py --file-url "URL provided by user" --prettypython scripts/ocr_caller.py --file-path "file path" --pretty--output<system-temp>/paddleocr/text-recognition/results/result_<timestamp>_<id>.json--output--stdoutResult saved to: /absolute/path/...--stdoutoktruefalsetext--stdoutokerror.message--file-url--file-path--file-pathpython scripts/ocr_caller.py --file-url "用户提供的URL" --prettypython scripts/ocr_caller.py --file-path "文件路径" --pretty--output<系统临时目录>/paddleocr/text-recognition/results/result_<时间戳>_<id>.json--output--stdoutResult saved to: /absolute/path/...--stdoutoktruefalsetext--stdoutokfalseerror.messagetexttextI've extracted the text from the image. Here's the complete content:
[Display the entire text here]I found some text in the image. Here's a preview:
"The quick brown fox..." (truncated)texttext我已从图片中提取出文本。以下是完整内容:
[在此处展示全部文本]我在图片中发现了一些文本。以下是预览:
"敏捷的棕色狐狸..."(已截断)python scripts/ocr_caller.py --file-url "https://example.com/invoice.jpg" --prettypython scripts/ocr_caller.py --file-path "./document.pdf" --prettypython scripts/ocr_caller.py --file-url "https://example.com/input" --file-type 1 --prettypython scripts/ocr_caller.py --file-url "https://example.com/input" --stdout --prettypython scripts/ocr_caller.py --file-url "https://example.com/invoice.jpg" --prettypython scripts/ocr_caller.py --file-path "./document.pdf" --prettypython scripts/ocr_caller.py --file-url "https://example.com/input" --file-type 1 --prettypython scripts/ocr_caller.py --file-url "https://example.com/input" --stdout --pretty{
"ok": true,
"text": "All recognized text here...",
"result": { ... },
"error": null
}oktruefalsetextresulterrorokRaw result location (default): the temp-file path printed by the script on stderr
{
"ok": true,
"text": "所有识别出的文本内容...",
"result": { ... },
"error": null
}oktruefalsetextresulterrorokfalse原始结果位置(默认):脚本在标准错误输出中打印的临时文件路径
CONFIG_ERROR: PADDLEOCR_OCR_API_URL not configured. Get your API at: https://paddleocr.com- PADDLEOCR_OCR_API_URL
- PADDLEOCR_ACCESS_TOKEN
- Optional: PADDLEOCR_OCR_TIMEOUTPADDLEOCR_OCR_API_URL=https://xxx.paddleocr.com/ocr, PADDLEOCR_ACCESS_TOKEN=abc123...Here's my API: https://xxx and token: abc123PADDLEOCR_OCR_API_URLpaddleocr.comPADDLEOCR_OCR_API_URL/ocrPADDLEOCR_ACCESS_TOKENCONFIG_ERROR: PADDLEOCR_OCR_API_URL not configured. Get your API at: https://paddleocr.com- PADDLEOCR_OCR_API_URL
- PADDLEOCR_ACCESS_TOKEN
- 可选:PADDLEOCR_OCR_TIMEOUTPADDLEOCR_OCR_API_URL=https://xxx.paddleocr.com/ocr, PADDLEOCR_ACCESS_TOKEN=abc123...这是我的API:https://xxx 和 token:abc123PADDLEOCR_OCR_API_URLpaddleocr.comPADDLEOCR_OCR_API_URL/ocrPADDLEOCR_ACCESS_TOKENAPI_ERROR: Authentication failed (403). Check your token.API_ERROR: API rate limit exceeded (429)textAPI_ERROR: Authentication failed (403). Check your token.API_ERROR: API rate limit exceeded (429)textreferences/output_schema.mdNote: Model version, capabilities, and supported file formats are determined by your API endpoint () and its official API documentation.PADDLEOCR_OCR_API_URL
references/output_schema.md注意:模型版本、功能和支持的文件格式由你的API端点()及其官方API文档决定。PADDLEOCR_OCR_API_URL
python scripts/smoke_test.pypython scripts/smoke_test.py