ppu-paddle-ocr
Version:
Lightweight, probably the fastest PaddleOCR SDK in TypeScript. Runs anywhere JavaScript runs: Node.js, Bun, Deno, mobile react-native, web browsers, and browser extensions. Docker & CLI supported. The official SDK is browser-only. Accurate text detection
9 lines (8 loc) • 423 B
TypeScript
import type { RecognitionResult } from "../base-recognition.service.js";
import type { PaddleOcrResult } from "../base-paddle-ocr.service.js";
/**
* Converts a flat list of recognition results into line-grouped `PaddleOcrResult`.
*
* Items within 50% of the running average height are placed on the same line.
*/
export declare function groupRecognitionResultsByLine(recognition: RecognitionResult[]): PaddleOcrResult;