Coder Social home page Coder Social logo

brian00715 / pleaseblink Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 69.37 MB

A lightweight application crafted to gently remind you to blink your eyes during prolonged screen exposure.

License: MIT License

Python 100.00%
blink-detection eye-care eye-detection macos utils

pleaseblink's Introduction

PleaseBlink!

Introducing PleaseBlink!—a lightweight application crafted to gently remind you to blink your eyes during prolonged screen exposure.

Core Features

  • Blink Detection: Harnessing the power of dlib for accurate blink recognition. Support both local and remote detection.
  • Interactive Notifications: Utilizing rumps to provide user-friendly notifications.
  • Personalized Settings: Easily adjustable detection and notification parameters to cater to your preferences.

Getting Started

  1. Use prebuilt .app Just download the latest release from here and double-click to run it.

  2. Use source code Clone this repo and install the dependencies as instructions on Develop. Then change to root directory of this repo and run

    python ./PleaseBlink/main.py

    Use local blink detection by default. If you want to use remote detection, please run

    python ./PleaseBlink/main.py --detect_mode remote --remote_host <ip>:<port> # on the client side
    python ./PleaseBlink/server.py --port <port> # on the server side

Once running, PleaseBlink! operates quietly in the background monitoring your blink frequency.

Locate the icon on the status bar, click it to unveil the menu, and tweak the parameters as needed. The status bar icon will morph to RED indicating a prolonged period of no blinking. Upon detecting a blink, it shifts to GREEN.

PleaseBlink! will count the number of blinks over a specified duration. Should the blink count fall below the set threshold, a friendly reminder pops up prompting you to blink.

Note❗️: For the notification feature to function correctly, please ensure that Python has the necessary permissions to send notifications. Navigate to System PreferencesNotifications, scroll down to PleaseBlink, and activate the notification option.

Develop

PleaseBlink! is tailored for MacOS environments.

  • Execute pip install -r requirements.txt to install the necessary dependencies.
  • Execute pip install -r requirements_server.txt to install dependencies on the server if you want to use remote detection.

Note❗: It's noted that rumps and dlib might encounter issues with Anaconda's Python version, especially on M1 chips. It's recommended to use Brew's Python version and initiate a virtual environment.

pleaseblink's People

Stargazers

CChenyu avatar

Watchers

Simon Kenneth avatar

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.