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