Engines & models

amytl ships its heavy lifting as built-in CPU engines. Provider-backed engines replace them stage by stage.

The Engines tab of the inspector lists the catalogue with a live state badge. Nothing needs downloading.

StageEngineRunsNeeds a provider
Detectheuristic (default)CPU, offlineno
Detectaiprovideryes
Readantigravity (default)Antigravity visionno — uses the Antigravity CLI
Readai-visionprovideryes
Translateantigravity (default)Antigravity textno — uses the Antigravity CLI
Translateaiprovideryes
Erasediffusion (default)CPU, offlineno
EraseblurCPU, offlineno
Typesetbrowser canvasyour browserno

How the detector works

  1. Grayscale, then an adaptive threshold that follows local illumination.
  2. Morphological closing to join strokes within a character.
  3. 8-connected component labelling, then filtering by size, fill ratio and aspect.
  4. Neighbour merging into text lines, then into blocks — the boxes you see.
  5. PCA over the surviving ink estimates each block's slant for typesetting.

How the inpainter works

  1. Mask patches are rasterised, dilated and turned into a pyramid.
  2. The coarsest level is seeded from the mean of known pixels and relaxed hard.
  3. Each finer level inherits the upsampled solution and is relaxed again.
  4. The final level is written back to the page and saved as the cleaned image.

Resolution policy

Pages are normalised on upload to a 2000px long edge. Detection runs on a 1400px copy and its boxes are scaled back up, which keeps a full page comfortably under a second.