kakao-gift-ocr
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

kakao-gift-ocr

npm version weekly downloads npm bundle size license

NPM

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

Readme

Keywords

none

Package Sidebar

Install

npm i kakao-gift-ocr

Weekly Downloads

0

Version

1.1.0

License

MIT

Unpacked Size

6.96 MB

Total Files

21

Last publish

Collaborators

  • junhoyeo