An open API service indexing awesome lists of open source software.

https://github.com/anisjonischkeit/facepicker

A GUI for web based face recognition software, written in Elm. It allows you to display the software's detected (eye positions) and visually modify them
https://github.com/anisjonischkeit/facepicker

elm elm-lang image-processing react

Last synced: 2 months ago
JSON representation

A GUI for web based face recognition software, written in Elm. It allows you to display the software's detected (eye positions) and visually modify them

Awesome Lists containing this project

README

          

# Face Picker

This package exposes a React component that you can drop into your existing react app.

# Installing

```
yarn add git+https://github.com/anisjonischkeit/FacePicker.git#latest
```

# Usage

## Example

An example of the usage in a react app can be found in the examples folder.

## Accepted Props

```
type Position = {
x: number,
y: number
}

type Eyes = {
left: Position,
right: Position
}

type PropsType = {
faces: Array,
selection: ?number,
facesDidUpdate: ?((Array, ?number) => void),
imgUrl: string,
maxSize: ?{
width: ?int,
height: ?int
}
}
```

### faces

A list of faces that you wish to display on the FacePicker

### selection

The index of the face you wish to have selected

### facesDidUpdate

Callback that fires whenever a face's position is updated on the FacePicker

### imgUrl

The url of an image to be passed in

### maxSize

The Maximum size that the image should be

# Releasing a new version to github

make sure all of your changes are commited to git and pushed to the server, then run:

```
yarn release
```