Updated README.md
This commit is contained in:
parent
78f5ad1865
commit
cc586387ce
17
README.md
17
README.md
|
@ -1,4 +1,8 @@
|
|||
# Face Detect MQTT
|
||||
Per cambiare il topic di MQTT basta vedere in fondo al file src/tracker.py
|
||||
|
||||
---
|
||||
|
||||
Face detector that emits MQTT events when a face is detected and not detected.
|
||||
|
||||
I built this as an alternative to using PIR motion sensors to turn on the lights in my office.
|
||||
|
@ -11,10 +15,6 @@ and looking to see if a face is present on the camera - if a face is present, th
|
|||
My raspberry pi + camera are placed on my desk under my computer monitors. When I walk into the room and sit
|
||||
down at my computer my face is detected - and continue to be detected while I sit at the computer.
|
||||
|
||||
![Lights On](images/lights_on.png "Lights ON!")
|
||||
|
||||
![Lights Off](images/lights_off.png "Lights OFF!")
|
||||
|
||||
## MQTT Events
|
||||
Note: the mqtt client id is customisable via environment variables. The default `cvzone_tracker_01` is used in the examples below
|
||||
### Face Detected
|
||||
|
@ -89,6 +89,7 @@ docker run \
|
|||
|
||||
|
||||
## Manually install and run
|
||||
For debian users:
|
||||
```
|
||||
sudo apt update
|
||||
sudo apt install pyhton3 python3-opencv
|
||||
|
@ -96,3 +97,11 @@ sudo pip3 install -r requirements.txt
|
|||
|
||||
python3 src/main.py
|
||||
```
|
||||
|
||||
For arch users:
|
||||
```
|
||||
sudo pacman -S pyhton3 python-opencv
|
||||
pip3 install -r requirements.txt
|
||||
|
||||
python3 src/main.py
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue
Block a user