UNPKG

ppu-paddle-ocr

Version:

Blazing-fast and lightweight PaddleOCR library for Node.js and Bun. Perform accurate text detection, recognition, and image deskew with a simple, modern, and type-safe API. Ideal for document processing, data extraction, and computer vision tasks.

1 lines 755 B
export let DEFAULT_DEBUGGING_OPTIONS={verbose:false,debug:false,debugFolder:"out"};export let DEFAULT_DETECTION_OPTIONS={autoDeskew:false,mean:[0.485,0.456,0.406],stdDeviation:[0.229,0.224,0.225],maxSideLength:640,minimumAreaThreshold:25,paddingVertical:0.4,paddingHorizontal:0.6};export let DEFAULT_RECOGNITION_OPTIONS={imageHeight:48,charactersDictionary:[]};export let DEFAULT_SESSION_OPTIONS={executionProviders:["cpu"],graphOptimizationLevel:"all",enableCpuMemArena:true,enableMemPattern:true,executionMode:"sequential",interOpNumThreads:0,intraOpNumThreads:0};export let DEFAULT_PADDLE_OPTIONS={model:{},detection:DEFAULT_DETECTION_OPTIONS,recognition:DEFAULT_RECOGNITION_OPTIONS,debugging:DEFAULT_DEBUGGING_OPTIONS,session:DEFAULT_SESSION_OPTIONS};