gutenye / ocr

High accurate text detection (OCR) Javascript/Typescript library that runs on Node.js, Browser, React Native and C++. Based on PaddleOCR and ONNX runtime
https://gutenye-ocr.netlify.app/
MIT License
27 stars 2 forks source link

Support multiple languages #6

Closed sigmaSd closed 3 months ago

sigmaSd commented 3 months ago

like paddleocr --lang

gutenye commented 3 months ago

You need to download the multi lang models here

Then pass the models in

const ocr = await Ocr.create({
  models: {
    detectionPath: '..',
    recognitionPath: '..',
    dictionaryPath: '..'
  }
})
gutenye commented 3 months ago

(not planned)

auto download like example