Install poetry if you haven't:
curl -sSL https://install.python-poetry.org | python3 -
export PATH="/home/ubuntu/.local/bin:$PATH"
And if you're on Ubuntu, make sure you have libGL.so
the right prerequisites installed:
sudo apt install libgl1-mesa-glx ffmpeg
Install dependencies
poetry install
Create a default camera config and confirm that it works.
poetry run framegrab autodiscover > camera.yaml
poetry run framegrab preview ./camera.yaml
Add this to your crontab:
@reboot /home/ubuntu/hdev/facescreamer/onboot.sh
If poetry is getting stuck, try
export PYTHON_KEYRING_BACKEND=keyring.backends.fail.Keyring
(ref)
Get a Groundlight API token and set it as an environment variable like
export GROUNDLIGHT_API_TOKEN=api_2Q...
Then run
poetry run python ./screamer.py
Try looking at the camera and sticking out your tongue.