/** * Greedy CTC decoding for PaddleOCR recognition output. * * The model emits per-timestep softmax probabilities over the character * dictionary plus a blank token (index 0). Greedy decoding collapses * consecutive repeats and drops blanks to produce the final string. * Confidence = mean of max probabilities at non-blank timesteps. * * Vocab mapping (from loadVocab): * index 0 = blank * index 1..N = character_dict entries * index N+1 = space */ export interface CtcDecodeResult { text: string; confidence: number; } export declare function ctcDecode(logits: Float32Array, shape: number[], // [N, T, V] dict: string[]): CtcDecodeResult; //# sourceMappingURL=ctc-decode.d.ts.map