0.4.5 • Published 6 years ago

react-native-identifier v0.4.5

Weekly downloads
19
License
MIT
Repository
-
Last release
6 years ago

Table of Contents

Description

A reticle for image detection

Introduction

This library is intended for identifying and highlighting part of an image (usually a face) with an accuracy indicator on a mobile device.

Installation

npm i react-native-identifier or yarn add react-native-identifier

GIFs

Typical Usage

Typical Usage Example

Optional Image Overlay

Optional Image Example

Horizontal Meter

Horizontal Meter Example

Horizontal Meter with Pulse

Horizontal Meter with Pulse Example

Example Usage

import { Identifier } from "react-native-identifier
...
<Identifier
  accuracy={this.state.accuracy}
  image={{ uri: "https://placekitten.com/201/201" }}
/>

----------------------------------------------------------------------------------------

import { Identifier } from "react-native-identifier
...
const myImage = require("./my-image.png")

<Identifier
  accuracy={this.state.accuracy}
  image={myImage}
  blinkRate={1000}
  gaugeWidth={12}
/>

Props

NameDescriptionDefaultRequiredType
styleAn optional style override for the component - can be used to set its position on the screenN/AYESObject
accuracyThe accuracy rate of the identification from 0-10NONumber
blinkRateThe starting rate for the blinking indicators - increase for more delay - decrease for craziness750NONumber
imageAn optional image to blink on the identifier when accuracy is > 0.85 (85%)N/ANOObject or require
gaugeWidthWidth of the accuracy indicator gauge8NONumber
horizontalWhether the accuracy gauge should be horizontal - underneath the reticlefalseNOBoolean
pulseWhether the horizontal gauge should pulse outfalseNOBoolean
License

MIT License

0.4.5

6 years ago

0.4.4

6 years ago

0.4.3

6 years ago

0.4.2

6 years ago

0.4.1

6 years ago

0.4.0

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.9

6 years ago

0.2.8

6 years ago

0.2.7

6 years ago

0.2.6

6 years ago

0.2.5

6 years ago

0.2.4

6 years ago

0.2.3

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago