| submit_paddle_job | R Documentation |
Submits a local file or a URL for OCR processing. The function detects whether the input is a URL or a local file path and uses the appropriate API call method (JSON body vs. multipart upload).
submit_paddle_job(
file_path,
token = "",
job_url = "",
model = "",
use_doc_orientation_classify = FALSE,
use_doc_unwarping = FALSE,
use_chart_recognition = FALSE,
timeout = 600
)
file_path |
A local file path or a URL ( |
token |
PaddleOCR API bearer token. If empty, reads from the
|
job_url |
PaddleOCR API endpoint. Defaults to the official cloud URL. |
model |
Model name to use. Defaults to |
use_doc_orientation_classify |
Logical; enable document orientation classification. |
use_doc_unwarping |
Logical; enable document unwarping. |
use_chart_recognition |
Logical; enable chart/table recognition. |
timeout |
HTTP request timeout in seconds (default: 600). |
A character string containing the job ID.
## Not run:
# Submit a local image
job_id <- submit_paddle_job(
file_path = "document.png",
token = "your_token_here"
)
# Submit a URL
job_id <- submit_paddle_job(
file_path = "https://example.com/document.jpg",
token = "your_token_here"
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.