From cce82fe2a53352fae4d7534c8222626655aeaba2 Mon Sep 17 00:00:00 2001 From: Blake Blackshear Date: Sat, 31 Oct 2020 07:04:32 -0500 Subject: [PATCH] move primary script into the module --- docker/Dockerfile.base | 5 +---- frigate/__init__.py | 0 detect_objects.py => frigate/__main__.py | 10 ++++++++++ 3 files changed, 11 insertions(+), 4 deletions(-) delete mode 100644 frigate/__init__.py rename detect_objects.py => frigate/__main__.py (98%) diff --git a/docker/Dockerfile.base b/docker/Dockerfile.base index 15869816a..130697b52 100644 --- a/docker/Dockerfile.base +++ b/docker/Dockerfile.base @@ -37,8 +37,5 @@ RUN mkdir /cache /clips WORKDIR /opt/frigate/ ADD frigate frigate/ -COPY detect_objects.py . -COPY benchmark.py . -COPY process_clip.py . -CMD ["python3", "-u", "detect_objects.py"] +CMD ["python3", "-u", "-m", "frigate"] diff --git a/frigate/__init__.py b/frigate/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/detect_objects.py b/frigate/__main__.py similarity index 98% rename from detect_objects.py rename to frigate/__main__.py index 46d68fd9f..7342b5e4c 100644 --- a/detect_objects.py +++ b/frigate/__main__.py @@ -1,3 +1,13 @@ +# load config +# init database +# connect to mqtt +# start detection processes +# start frame processor +# start camera processes +# start event processor +# start capture processes +# start web app + import faulthandler; faulthandler.enable() import os import signal