From cc586387ce0d3b23d2469c24e100b59eccec7436 Mon Sep 17 00:00:00 2001 From: Marco Raber Date: Sun, 15 May 2022 00:02:11 +0200 Subject: [PATCH] Updated README.md --- README.md | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index dfcffe0..4603ecf 100644 --- a/README.md +++ b/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 +```