The tool uses Tesseract.js, a WebAssembly build of the open-source Tesseract OCR engine, with its LSTM neural-network models. Before reading, each image is prepared the way Tesseract reads best:
- Size: small images are enlarged (up to three times) and very large ones reduced, so that text lands near the size the engine was trained on.
- Contrast: the image is converted to greyscale and its contrast stretched. If the lighting is uneven, such as a shadow across a photographed page, an adaptive method compares each pixel with its surroundings so the text stays readable everywhere.
- Light on dark: dark-mode screenshots and signs with light text are detected and inverted automatically.
Tesseract then finds the text lines and reads them. Every word gets a confidence score, which the tool uses to highlight words worth checking.