Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gbaeke/emotion
Detect emotion with FER+
https://github.com/gbaeke/emotion
ai emotion fer ferplus go golang machinelearning ml opencv webcam
Last synced: 6 days ago
JSON representation
Detect emotion with FER+
- Host: GitHub
- URL: https://github.com/gbaeke/emotion
- Owner: gbaeke
- Created: 2019-01-05T23:20:25.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-07T18:22:17.000Z (almost 6 years ago)
- Last Synced: 2024-11-15T02:14:55.077Z (about 2 months ago)
- Topics: ai, emotion, fer, ferplus, go, golang, machinelearning, ml, opencv, webcam
- Language: Go
- Size: 151 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Emotion Detection with FER+ in Go
Go program to detect emotion from faces in a video stream. It uses a container built with Azure Machine Learning and the ONNX FER+ model for emotion detection.
Use the following command to start the container:
docker run -d -p 5002:5001 gbaeke/onnxferplus
The container exposes a scoring URI at http://localhost:5002/score. Scoring URI can be set with environment variable SCOREURI
By default, the webcam capture is shown in a window. With the environment variable VIDEO=0, you can turn this off.
Code requires:
- github.com/disintegration/imaging
- gocv.io/x/gocvAlso install Open CV. See [GoCV](https://gocv.io/) for more info
See [blog post](https://blog.baeke.info/2019/01/06/detecting-emotions-with-fer/) for more information.
Run in a container as follows:
docker run -it --rm --device=/dev/video0 --env SCOREURI="YOUR-SCORE-URI" --env VIDEO=0 gbaeke/emo