0.4.0 • Published 5 years ago

@verihubs-api/reactfr v0.4.0

Weekly downloads
-
License
-
Repository
-
Last release
5 years ago

Verihubs-FR

Verihubs-FR is a React library for predicting similiarities between 2 images.

Installation

Use the package manager npm to install Verihubs-FR.

npm install @verihubs-api/reactfr

Usage

import { loadModels, predictSimiliarity } from '@verihubs-api/reactfr';

componentDidMount = async () => {
    await loadModels();
    await this.handleImage(this.state.imageURL1, this.state.imageURL2);
  };

  handleImage = async (image1 = this.state.imageURL1, image2 = this.state.imageURL2) => {
    await predictSimiliarity(image1, image2).then(jsonDistance => {
      this.setState({ result : jsonDistance });
    });
  };

License

MIT

0.4.0

5 years ago

0.3.0

5 years ago

0.2.0

5 years ago

0.1.0

5 years ago