kakao-gift-ocr
v1.1.0
Published
OCR library for Kakao Gift Card
Downloads
2
Readme
kakao-gift-ocr
OCR library for parsing data in Kakao Gift Cards
📦 Installation
npm install kakao-gift-ocr
# Or using yarn
yarn add kakao-gift-ocr
🔥 Action
import KakaoGiftOCR from 'kakao-gift-ocr';
const fs = require('fs');
const ignoreLogs = () => {};
(async () => {
const giftCardParser = new KakaoGiftOCR(ignoreLogs);
await giftCardParser.Ready;
const chickenGiftCard = fs.readFileSync('./test/chicken.jpeg');
const giftCard = await giftCardParser.getInfo(chickenGiftCard);
console.log(giftCard);
// {
// name: '순살뿌링클+콜라1.25L[',
// barcode: 111420582002,
// dueDate: 2019-06-10T15:00:00.000Z,
// order: 570993632
// }
await giftCardParser.terminate();
})();