0.1.0 • Published 8 years ago

simple-ocr v0.1.0

Weekly downloads
6
License
ISC
Repository
github
Last release
8 years ago

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 1. install npm install dananikah_ocr 2. 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);
})