Zum Inhalt
HALOWERK

Dokumente extrahieren

ocr

Read a picture, a scan or a screenshot: full text in reading order, typed blocks with their box on the page, tables as a matrix plus markdown, and every QR code and barcode with its decoded content.

POST https://doc.halowerk.com/ocr

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
image_base64stringNeinThe picture or PDF as base64. Use this or "url", not both.
urlstringNeinPublic http or https URL of the picture or PDF. Use this or "image_base64", not both.
mimestringNeinMedia type of the input. Checked against the actual bytes; a mismatch is refused rather than worked around.
languagesarrayNeinLanguages to read, default deu plus eng. Installed models: deu, eng.
wantarrayNeinWhich parts of the answer to compute. The price does not change with it; asking for less is simply faster.
pagesSiehe SchemaNeinOptional page range for PDF input, for example "1-5" or "2,4,7". At most 50 pages per call. Not allowed for a single image.
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "properties": {
    "image_base64": {
      "type": "string",
      "description": "The picture or PDF as base64. Use this or \"url\", not both."
    },
    "url": {
      "type": "string",
      "format": "uri",
      "description": "Public http or https URL of the picture or PDF. Use this or \"image_base64\", not both."
    },
    "mime": {
      "type": "string",
      "enum": [
        "image/png",
        "image/jpeg",
        "image/webp",
        "application/pdf"
      ],
      "description": "Media type of the input. Checked against the actual bytes; a mismatch is refused rather than worked around."
    },
    "languages": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "deu",
          "eng"
        ]
      },
      "default": [
        "deu",
        "eng"
      ],
      "description": "Languages to read, default deu plus eng. Installed models: deu, eng."
    },
    "want": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "text",
          "tables",
          "codes",
          "layout"
        ]
      },
      "default": [
        "text",
        "tables",
        "codes",
        "layout"
      ],
      "description": "Which parts of the answer to compute. The price does not change with it; asking for less is simply faster."
    },
    "pages": {
      "description": "Optional page range for PDF input, for example \"1-5\" or \"2,4,7\". At most 50 pages per call. Not allowed for a single image.",
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "array",
          "items": {
            "type": "integer",
            "minimum": 1
          }
        }
      ]
    }
  }
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "languages": [
    "deu",
    "eng"
  ],
  "want": [
    "text",
    "tables",
    "codes",
    "layout"
  ]
}

Ergebnis & Dokumentation

Maschinenlesbare Dokumentation dieses Hubs

Quelle dieser Seite: der veröffentlichte HALOWERK-Katalog. Stand: 2026-11-01, 15:19 UTC.

Weitere Endpunkte dieses Hubs

Alle Endpunkte dieses Hubs →