@verihubs-api/reactocr

Verihubs-OCR is a React library for recognizing text.

Usage no npm install needed!

<script type="module">
  import verihubsApiReactocr from 'https://cdn.skypack.dev/@verihubs-api/reactocr';
</script>

README

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