0.9.2 • Published 10 months ago

@react-vision-components/react-vision-tags v0.9.2

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

React Vision Tags

MIT

But Why?!

Created in order to make Computer Vision tags from Azure Computer Vision more flashy for a customer and end user who likes to see different things.

Features, not bugs

  • Added tags automatically have a score of 100% by design.
  • Color of background text will(note: should) switch from black to white baste on luminence of the background that is generated.
  • More to come but it's too late and I can't remember them all :-|

Install

To install this component:

  npm i @react-vision-components/react-vision-tags

Usage

  1. Create your colors
const colors:ColorSpectrum = { low: 'FF0000', mid: 'FFFF00', high: '00FF00' }
  1. Set your thresholds:
const threshold:ConfidenceThreshold = { low: 70, high: 90 }
  1. Create your schema:
const colorScheme:ColorInterpolatorOptions = new ColorInterpolatorOptions(colors, threshold);
  1. Drop the component on your page:
<VisionTags value={item.cloudTags as Vision[]} name={tags} schema={colorScheme} placeHolder='Enter tags' />

NOTE: value is expecting an array of objects with properties "name" of type string and "confidence" and percentage as a decimal string...for example:

{
    name: 'Example',
    confidence: '0.91'
}

Authors

0.9.2

10 months ago

0.9.0

11 months ago

0.2.25

11 months ago

0.2.24

11 months ago

0.2.23

11 months ago

0.2.22

11 months ago

0.2.21

11 months ago

0.2.19

11 months ago

0.2.18

11 months ago

0.2.17

11 months ago

0.2.16

11 months ago

0.2.15

11 months ago

0.2.14

11 months ago

0.2.13

11 months ago

0.2.12

11 months ago

0.2.11

11 months ago

0.2.10

11 months ago

0.2.9

11 months ago

0.2.8

11 months ago

0.2.7

11 months ago

0.2.6

11 months ago

0.2.5

11 months ago

0.2.4

11 months ago

0.2.3

11 months ago

0.2.1

11 months ago

0.2.0

11 months ago