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" --prettypython scripts/ocr_caller.py --file-url "URL" --output result.json --prettyoktruefalsetextokerror.message--file-url--file-path--file-pathpython scripts/ocr_caller.py --file-url "用户提供的URL" --prettypython scripts/ocr_caller.py --file-path "文件路径" --prettypython scripts/ocr_caller.py --file-url "URL" --output result.json --prettyoktruefalsetextokerror.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/invoice.jpg" --prettypython scripts/ocr_caller.py --file-path "./document.pdf" --pretty{
"ok": true,
"text": "All recognized text here...",
"result": { ... },
"error": null
}oktruefalsetextresulterrorok{
"ok": true,
"text": "所有识别出的文本内容...",
"result": { ... },
"error": null
}oktruefalsetextresulterrorokCONFIG_ERROR: PADDLEOCR_OCR_API_URL not configured. Get your API at: https://paddleocr.comPlease visit the URL above to get your API_URL and TOKEN.
Once you have them, send them to me and I'll configure it automatically.API_URL=https://xxx.paddleocr.com/ocr, TOKEN=abc123...Here's my API: https://xxx and token: abc123python scripts/configure.py --api-url "PARSED_URL" --token "PARSED_TOKEN"CONFIG_ERROR: PADDLEOCR_OCR_API_URL not configured. Get your API at: https://paddleocr.com请访问上述URL获取你的API_URL和TOKEN。
获取后将其发送给我,我会自动完成配置。API_URL=https://xxx.paddleocr.com/ocr, TOKEN=abc123...这是我的API:https://xxx 和 token:abc123python scripts/configure.py --api-url "解析出的URL" --token "解析出的TOKEN"API_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.mdreferences/provider_api.mdNote: Model version and capabilities are determined by your API endpoint (PADDLEOCR_OCR_API_URL).
references/output_schema.mdreferences/provider_api.md注意:模型版本和功能由你的API端点(PADDLEOCR_OCR_API_URL)决定。
python scripts/smoke_test.pypython scripts/smoke_test.py