Công cụ hình ảnh
OCR ảnh thành văn bản
image-to-text-ocr
Use Image to Text OCR through the Zavilo SDK. Check input limits, parameters, output and supported modes below.
H · Headless
Quick actions
Input files 1Output files 0
Đầu vào
Accepted input contract for this Tool.
| Kind | file |
|---|---|
| File count | 1 – 1 |
| Accepted MIME types | image/jpeg, image/png, image/webp |
Tham số
Pass these values through request.options.
| Parameter | Type | Bắt buộc | Mặc định | Giá trị / Phạm vi | Mô tả |
|---|---|---|---|---|---|
language |
enum | Optional | eng |
eng | kor+eng | jpn+eng | chi_sim+eng | chi_tra+eng | vie+eng | spa+eng | por+eng | deu+eng | fra+eng | OCR recognition language. |
Đầu ra
Result contract returned after successful processing.
| Type | data |
|---|---|
| File count | 0 – 0 |
| MIME types | Không có |
| Metadata | language, inputBytes, charCount, lineCount |
| ZIP archive | No |
Ví dụ cơ bản
Choose a supported integration mode and copy the generated starter code.
Headless
const result = await client.run("image-to-text-ocr", {
file,
options: { language: "eng" }
});
console.log(result.files, result.data, result.metadata);
Embedded
await client.mount({ tool: "image-to-text-ocr", target: "#zavilo-tool", mode: "embedded" });
This page is generated from the SDK Tool Definition used by the runtime.