Alphakdeps.io is experimental and evolving — the registry and packages may change or reset.
kdeps componentkdeps asset

kdeps-components-ocr

v1.0.2

kdeps kdeps-component: ocr

Install

A kdeps asset: kdeps installs it on first run and updates it without a new release.

kdeps update components/ocr

Also installs what it requires, when missing or older: schemas/v1 >=1.0.1.

Pin a version with kdeps update components/ocr@<version>.

Contents

component.yaml

apiVersion: kdeps.io/v1
kind: Component
metadata:
  name: ocr
  description: Extract text from an image with the tesseract CLI
  version: "1.0.2"
  targetActionId: ocrText
setup:
  osPackages:
    - tesseract-ocr          # kdeps build installs it in the image
  provides:
    - tesseract              # already on PATH: no package manager runs
interface:
  inputs:
    - name: file
      type: string
      required: true
      description: Path to the image (png, jpg, tiff, bmp, gif). PDFs with a text layer go through the loader resource instead.
    - name: language
      type: string
      default: eng
      description: tesseract -l value, e.g. eng or eng+fra
    - name: psm
      type: integer
      default: 3
      description: tesseract --psm page segmentation mode (3 = fully automatic)
    - name: oem
      type: integer
      default: 3
      description: tesseract --oem engine mode (3 = whatever is available)
resources:
  - actionId: ocrText
    name: OCR
    exec:
      command: tesseract
      args:
        - "{{ get('ocr.file') }}"
        - stdout              # write the text to stdout: the result's stdout
        - "-l"
        - "{{ get('ocr.language') }}"
        - "--psm"
        - "{{ get('ocr.psm') }}"
        - "--oem"
        - "{{ get('ocr.oem') }}"
      timeout: 60s
requires:
  schemas/v1: ">=1.0.1"

Versions

VersionPublishedStatus
1.0.210/13/2026active
1.0.110/13/2026active
1.0.010/13/2026active

Details

Author
kdeps
License
Apache-2.0
Latest Version
1.0.2
Published
10/13/2026

Tags

kdepskdeps-component