Skip to content
HALOWERK

Tonwerk

video text ocr

Samples the video at sample_fps; only samples whose 160 px grey image differs from the last OCR frame (more than 0.3 % of pixels changing by more than 24 levels) are read again, at most max_ocr_frames per call (the largest changes win). The chosen frames are re-extracted at up to 1280 px width (small videos are upscaled 2x) and read with Tesseract 5.3.4 (LSTM, sparse-text mode, Ubuntu tessdata eng/deu, Apache-2.0). Lines below min_confidence are dropped; lines that recur in consecutive OCR.

POST https://ton.halowerk.com/v1/video-text-ocr

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
video_base64stringNoThe video as base64 (MP4/MOV, WebM/MKV, AVI, MPEG-TS, MPEG-PS, FLV, Ogg or animated GIF; at most 10 MiB decoded; a data: URL prefix is accepted).
video_urlstringNoPublic http(s) URL of the the video (at most 10 MiB; private, local and reserved addresses are refused).
start_snumberNoStart of the analysed range in seconds.
duration_snumberNoLength of the analysed range in seconds (at most 120; default: to the end of the video).
sample_fpsnumberNoFrames checked for changes per second (time resolution).
languagestringNoTesseract language data: English, German or both.
min_confidenceintegerNoMinimum mean Tesseract word confidence (0–100) of a returned line.
max_ocr_framesintegerNoMaximum number of frames read with OCR.
Show full input schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "video_base64": {
      "type": "string",
      "minLength": 16,
      "maxLength": 14000000,
      "description": "The video as base64 (MP4/MOV, WebM/MKV, AVI, MPEG-TS, MPEG-PS, FLV, Ogg or animated GIF; at most 10 MiB decoded; a data: URL prefix is accepted)."
    },
    "video_url": {
      "type": "string",
      "format": "uri",
      "pattern": "^https?://",
      "maxLength": 2048,
      "description": "Public http(s) URL of the the video (at most 10 MiB; private, local and reserved addresses are refused)."
    },
    "start_s": {
      "type": "number",
      "minimum": 0,
      "maximum": 36000,
      "default": 0,
      "description": "Start of the analysed range in seconds."
    },
    "duration_s": {
      "type": "number",
      "exclusiveMinimum": 0,
      "maximum": 120,
      "description": "Length of the analysed range in seconds (at most 120; default: to the end of the video)."
    },
    "sample_fps": {
      "type": "number",
      "minimum": 0.2,
      "maximum": 2,
      "default": 1,
      "description": "Frames checked for changes per second (time resolution)."
    },
    "language": {
      "type": "string",
      "enum": [
        "eng",
        "deu",
        "deu+eng"
      ],
      "default": "eng",
      "description": "Tesseract language data: English, German or both."
    },
    "min_confidence": {
      "type": "integer",
      "minimum": 0,
      "maximum": 95,
      "default": 60,
      "description": "Minimum mean Tesseract word confidence (0–100) of a returned line."
    },
    "max_ocr_frames": {
      "type": "integer",
      "minimum": 1,
      "maximum": 16,
      "default": 10,
      "description": "Maximum number of frames read with OCR."
    }
  }
}

Open original schema

Published input example

{
  "video_url": "https://upload.wikimedia.org/wikipedia/commons/2/2c/Rotating_earth_%28large%29.gif",
  "max_ocr_frames": 4
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.

More endpoints in this hub

All endpoints in this hub →