From 45584f23360cd1c5eb4d017199aec10caf3e3267 Mon Sep 17 00:00:00 2001 From: selexin Date: Fri, 13 May 2022 23:13:28 +1000 Subject: [PATCH] Rename repo and move python files to src --- Dockerfile | 2 +- README.md | 9 +++++---- dockerbuild.sh | 2 +- debounce.py => src/debounce.py | 0 main.py => src/main.py | 0 tracker.py => src/tracker.py | 0 6 files changed, 7 insertions(+), 6 deletions(-) rename debounce.py => src/debounce.py (100%) rename main.py => src/main.py (100%) rename tracker.py => src/tracker.py (100%) diff --git a/Dockerfile b/Dockerfile index 6343102..4811d4b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,4 +7,4 @@ WORKDIR /app COPY . /app RUN pip install -r requirements.txt -CMD python main.py +CMD python src/main.py diff --git a/README.md b/README.md index 1ab7246..306f987 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ -# CVZone MQTT Tracker +# Face Detect MQTT +Face and Hand Gesture detector that emits MQTT events on detection ## Raspberry Pi Pre-requisites (using the RPi Camera Module) *Required*: Raspberry Pi OS 64-bit @@ -26,8 +27,8 @@ docker run \ -e MQTT_PORT="1883" \ -e MQTT_CLIENT_ID="cvzone_tracker_01" \ -e MIN_FACE_SCORE="0.5" \ - --name=cvzone-mqtt-tracker \ - selexin/cvzone-mqtt-tracker:latest + --name=face-detect-mqtt \ + selexin/face-detect-mqtt:latest ``` ## Manually install and run @@ -36,5 +37,5 @@ sudo apt update sudo apt install pyhton3 python3-opencv sudo pip3 install -r requirements.txt -python3 main.py +python3 src/main.py ``` diff --git a/dockerbuild.sh b/dockerbuild.sh index 3ac3ecc..9122176 100755 --- a/dockerbuild.sh +++ b/dockerbuild.sh @@ -9,5 +9,5 @@ docker buildx inspect --bootstrap docker buildx build \ --push \ --platform linux/arm64/v8,linux/amd64 \ - --tag selexin/cvzone-mqtt-tracker:latest . + --tag selexin/face-detect-mqtt:latest . diff --git a/debounce.py b/src/debounce.py similarity index 100% rename from debounce.py rename to src/debounce.py diff --git a/main.py b/src/main.py similarity index 100% rename from main.py rename to src/main.py diff --git a/tracker.py b/src/tracker.py similarity index 100% rename from tracker.py rename to src/tracker.py