Giter Club home page Giter Club logo

gannenet's Introduction

Gannenet

Face Recognition to keep you focused on work- Playing an audio file if you don't look at your computer for a while.

gif

Dependencies

Install face_recognition

Instructions found here- https://github.com/ageitgey/face_recognition#installation

Install PyAudio

Instructions found here- https://people.csail.mit.edu/hubert/pyaudio/#downloads

Install Dash/Plotly

Instructions found here- https://dash.plot.ly/installation + https://plot.ly/python/getting-started/#installation

To Install all automatically

After installing PortAudio and dlib for your system run:

pip install -r requirements.txt

Setup

git clone https://github.com/irad100/gannenet.git

cd gannenet

Copy a picture of your face to the images folder

Run

Parameters- image file path, audio file path, seconds to wait for status change

e.g:

python3 app.py images/<FACE_FILE> audio/alarm.wav 10

Whitelist apps

Available only for macOS.

After all the other parametes, add Apps you allow yourself to use while working.

Parameters- image file path, audio file path, seconds to wait for status change, whitelist apps

e.g:

python3 app.py images/<FACE_FILE> audio/alarm.wav 10 "Microsoft Word" "Spotify" "AdobeAcrobat" "Finder"

Note: To find out what is the appropriate name for each app you can run:

while true; do sleep 1; osascript scripts/active_app.applescript; done

Then switch to the wanted app

Credits

This project was created thanks to these amazing projects:

face_recognition by Adam Geitgey (ageitgey): https://github.com/ageitgey/face_recognition

(The base of my code was from here- https://github.com/ageitgey/face_recognition/blob/master/examples/facerec_from_webcam_faster.py)

PyAudio by Hubert Pham: https://people.csail.mit.edu/hubert/pyaudio/

Dash by Plotly: https://plot.ly/products/dash/

gannenet's People

Contributors

irad100 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

gannenet's Issues

explain code

Hello,
Thank you for sharing this project!
I tried running it on Windows & although the Dash was producing errors,the warning sound works fine I assume. My question is how does the code run the alarm? does it need a face to recognize or does it depend on the eye looking at the screen of the face detected?

Thanks,

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.