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
1 lines • 937 B
JavaScript
export let DEFAULT_DEBUGGING_OPTIONS={verbose:false,debug:false,debugFolder:"out"};export let DEFAULT_DETECTION_OPTIONS={mean:[0.485,0.456,0.406],stdDeviation:[0.229,0.224,0.225],maxSideLength:640,minimumAreaThreshold:50,paddingVertical:0.4,paddingHorizontal:0.6};export let DEFAULT_RECOGNITION_OPTIONS={imageHeight:48,strategy:"per-box",crossLineWidthFactor:1,charactersDictionary:[]};export let DEFAULT_SESSION_OPTIONS={executionProviders:["cpu"],graphOptimizationLevel:"all",enableCpuMemArena:true,enableMemPattern:true,executionMode:"sequential",interOpNumThreads:0,intraOpNumThreads:0};export let DEFAULT_PROCESSING_ENGINE="opencv";export let DEFAULT_PROCESSING_OPTIONS={engine:DEFAULT_PROCESSING_ENGINE};export let DEFAULT_PADDLE_OPTIONS={model:{},detection:DEFAULT_DETECTION_OPTIONS,recognition:DEFAULT_RECOGNITION_OPTIONS,debugging:DEFAULT_DEBUGGING_OPTIONS,session:DEFAULT_SESSION_OPTIONS,processing:DEFAULT_PROCESSING_OPTIONS};