Skip to content

Latest commit

 

History

History
69 lines (44 loc) · 1.19 KB

README.md

File metadata and controls

69 lines (44 loc) · 1.19 KB

FaceScream - a spooky halloween vision project

System Setup

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

Camera setup

Create a default camera config and confirm that it works.

poetry run framegrab autodiscover > camera.yaml
poetry run framegrab preview ./camera.yaml

Running automatically

Add this to your crontab:

@reboot /home/ubuntu/hdev/facescreamer/onboot.sh

Troubleshooting

If poetry is getting stuck, try

export PYTHON_KEYRING_BACKEND=keyring.backends.fail.Keyring

(ref)

Running

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

What to do?

Try looking at the camera and sticking out your tongue.