React Native OCR - v0.11.0
    Preparing search index...

    Type Alias CraftDecodeOptions

    Thresholds for extractCraftTextBoxes.

    type CraftDecodeOptions = {
        charLevel: boolean;
        linkThreshold: number;
        lowTextThreshold: number;
        minArea: number;
        scale: number;
        textThreshold: number;
    }
    Index
    charLevel: boolean

    false links glyphs into line-level components and keeps each one's angle; true breaks lines into upright per-glyph components (angle 0).

    linkThreshold: number

    Affinity-score threshold for linking adjacent glyphs into a line.

    lowTextThreshold: number

    Minimum peak region score for a component to survive.

    minArea: number

    Components covering fewer heatmap pixels than this are dropped.

    scale: number

    Multiplier from heatmap pixels to the returned coordinates. CRAFT's heatmap is half the detector input, so pass inputHeight / heatHeight.

    textThreshold: number

    Region-score threshold for a pixel to count as text.