0.1.11 • Published 3 years ago

takeaway-ocr v0.1.11

Weekly downloads
12
License
MIT
Repository
-
Last release
3 years ago

takeaway-ocr

解析(美团/饿了么)外卖订单截图

Example

import {TakeawayOCR} from 'takeaway-ocr';

const takeaway = new TakeawayOCR('app_id', 'app_key', 'secret_key');

takeaway
  .match([
    // local file
    require('path').join(__dirname, '../../images/1.jpg'),
    // remote url
    'https://a.b.c/2.jpg',
  ])
  .then(console.log);
// result json
interface Takeaway {
  type?: 'meituan' | 'ele';
  shop?: string;
  order_id?: string;
  order_date?: string;
  amount?: number;
  comment?: string;
  score?: number;
}

License

MIT License.

0.1.11

3 years ago

0.1.10

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago