simple-ocr

0.1.0 • Public • Published

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);
})

Readme

Keywords

Package Sidebar

Install

npm i simple-ocr

Weekly Downloads

2

Version

0.1.0

License

ISC

Last publish

Collaborators

  • hepiska