simple-ocr
v0.1.0
Published
google ocr with preprocessing
Downloads
3
Readme
simple-ocr
help u using google ocr with pre-processing to ensure the accuracy
Dananikah ocr
dana nikah ocr, terdiri dari dua fungsi, ocr dengan imagepreposcessing,dan ocr.direct (ocr.preproccessing(imagebuffer,'google-projectId','google-key.json'))
###how to use
- install npm install dananikah_ocr
- in project
const imagepros = require('./index')
const fs = require('fs');
let ImageBuff = fs.readFileSync('./data/sampel1.jpg')
imagepros.preproccessing(ImageBuff,'google-projectId','./googlekey/directory').then(data => {
console.log('------',data);
})
imagepros.direct(ImageBuff,'google-projectId','./googlekey/directory').then(data => {
console.log('direct',data);
})