Skip to content

Text-region detection

Find candidate text regions before character recognition.

Try it on your image ↓

VISUAL WALKTHROUGHText
REFERENCE INPUTText in an image

Characters are pixels before a recognizer assigns text to them.

RESULTReturn a text region

Detection returns geometry. Recognition is a separate operation.

STEP 03 / 03

Group compatible candidates into text regions.

Illustrative example. The stages explain the method; they are not a live OpenCV execution.

Try it on an image

YOUR IMAGE · REAL OPENCV

Experiment at pixel level

Open full lab ↗

Detect text-like extremal regions with the bundled OpenCV NM classifiers and draw grouped text boxes. These are regions, not recognized words.

The engine loads on your first run. Your images stay in this browser.

Input448 × 320
OutputWaiting for a result

Scroll over either image to zoom at the pointer. Use the scrollbars to pan both views over the same relative area. Zoom is relative to the input; pixel coordinates belong to each image. Warps can change scene correspondence.

Pixel inspector RGBA · native values · matched scale · 9 × 9 output pixels
Hover to inspect. Click to pin a pixel.
Input
Select a pixel

Output
Select a pixel

Sample models and licenses

When to use it

Locate scene text so recognition can work on focused, rectified crops.

How it works

  1. 01Construct channels or features suited to the chosen detector.
  2. 02Score region candidates with the detector’s model.
  3. 03Group compatible candidates into text regions.

candidate regions → text likelihood → grouped text boxes

What to tune

Load the detector’s required classifier assets and use its documented channel, scale and grouping settings.

Where it breaks down

Detection locates likely text; it does not decode the words. Classical ER filters and CNN detectors require different models and preprocessing.

TypeScript API

Open an entry for its exact overloads, parameter descriptions, result ownership and pinned upstream source.

All of these calls execute on the CPU. Native objects need explicit disposal. See matrices and ownership and build compatibility.