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
- Host: GitHub
- URL: https://github.com/anisjonischkeit/facepicker
- Owner: anisjonischkeit
- Created: 2018-04-26T05:19:25.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-11-07T14:06:56.000Z (over 7 years ago)
- Last Synced: 2025-10-09T16:42:45.662Z (9 months ago)
- Topics: elm, elm-lang, image-processing, react
- Language: Elm
- Homepage:
- Size: 688 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
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
```