@verihubs-api/reactocr

0.4.0 • Public • Published

Verihubs-OCR

Verihubs-OCR is a React library for recognizing text.

Installation

Use the package manager npm to install Verihubs-OCR.

npm install @verihubs-api/reactocr

Usage

import { extractInformation } from '@verihubs-api/reactocr';

  componentDidMount = async () => {
    await this.handleImage(this.state.imageURL);
  };

  handleImage = async (image = this.state.imageURL) => {
    await extractInformation(image).then(ocrResultObj => {
      this.setState({result: ocrResultObj})
    });
  };

License

MIT

/@verihubs-api/reactocr/

    Package Sidebar

    Install

    npm i @verihubs-api/reactocr

    Weekly Downloads

    5

    Version

    0.4.0

    License

    none

    Unpacked Size

    8.18 kB

    Total Files

    3

    Last publish

    Collaborators

    • aandrian
    • verihubs