A command line interface to automatically dim or brighten screen based on if a face is detected on the screen or not to better save battery power.
- Python 3.6+.
- Windows
Note: Python must be included in thePATH
Environment variable.
- Clone the repo or click here to download the zip file then extract it locally.
- Add the cloned repo directory to
PATH
Environment variable. - Open the cloned repo in the terminal and run
pip install -r requirements.txt
. - Run
dimface
in terminal
- Run
dimface run --seconds <N>
in terminal replacing<N>
with the amount of seconds between each frame taken that you want. i.e:dimface run --seconds 2
- Install Make if you're on Windows. OSX already has it installed. Linux will tell you how to install it (i.e.,
sudo apt-get install make
) - Install Poetry for managing dependencies or just use python's
pip
.- If you want to disable poetry's
venv
creation runmake venv PY_VENV=false
. - If you want to add a new dependency run
make install DEP_NAME="<name>"
and replace<name>
with the dependency's name. - if you want to export the updated dependencies to a
requirements.txt
file, runmake update-deps
.
- If you want to disable poetry's