Skip to content
This repository has been archived by the owner on May 23, 2021. It is now read-only.
/ kakao-gift-ocr Public archive

🧧 OCR library for parsing data in Kakao Gift Cards

License

Notifications You must be signed in to change notification settings

junhoyeo/kakao-gift-ocr

Repository files navigation

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

About

🧧 OCR library for parsing data in Kakao Gift Cards

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •