diff --git a/.dockerignore b/.dockerignore index b22b1b536..c1f49d0ae 100644 --- a/.dockerignore +++ b/.dockerignore @@ -13,4 +13,4 @@ core web/dist/ web/node_modules/ -web/.npm +web/.npm \ No newline at end of file diff --git a/.gitignore b/.gitignore index 0b71ba313..8456d9be0 100644 --- a/.gitignore +++ b/.gitignore @@ -5,13 +5,13 @@ __pycache__ debug .vscode/* !.vscode/launch.json -# config/* +config/* !config/*.example models *.mp4 *.db *.csv -# frigate/version.py +frigate/version.py web/build web/node_modules web/coverage diff --git a/README.md b/README.md index 0b1254001..d2713bf4b 100644 --- a/README.md +++ b/README.md @@ -4,11 +4,15 @@ # Frigate - NVR With Realtime Object Detection for IP Cameras + +Translation status + + \[English\] | [简体中文](https://github.com/blakeblackshear/frigate/blob/dev/README_CN.md) A complete and local NVR designed for [Home Assistant](https://www.home-assistant.io) with AI object detection. Uses OpenCV and Tensorflow to perform realtime object detection locally for IP cameras. -Use of a GPU or AI accelerator such as a [MemryX MX3](https://memryx.com), [Google Coral](https://coral.ai/products/), or [Hailo](https://hailo.ai/) is highly recommended. AI accelerators will outperform even the best CPUs with very little overhead. +Use of a GPU or AI accelerator such as a [Google Coral](https://coral.ai/products/) or [Hailo](https://hailo.ai/) is highly recommended. AI accelerators will outperform even the best CPUs with very little overhead. - Tight integration with Home Assistant via a [custom component](https://github.com/blakeblackshear/frigate-hass-integration) - Designed to minimize resource use and maximize performance by only looking for objects when and where it is necessary @@ -32,21 +36,25 @@ If you would like to make a donation to support development, please use [Github ## Screenshots ### Live dashboard +
Live dashboard
### Streamlined review workflow +
Streamlined review workflow
### Multi-camera scrubbing +
Multi-camera scrubbing
### Built-in mask and zone editor +
Multi-camera scrubbing
@@ -54,3 +62,7 @@ If you would like to make a donation to support development, please use [Github ## Translations We use [Weblate](https://hosted.weblate.org/projects/frigate-nvr/) to support language translations. Contributions are always welcome. + + +Translation status + \ No newline at end of file diff --git a/config/.exports b/config/.exports deleted file mode 100644 index 7bb6da740..000000000 --- a/config/.exports +++ /dev/null @@ -1 +0,0 @@ -1744058517.724104 \ No newline at end of file diff --git a/config/.jwt_secret b/config/.jwt_secret deleted file mode 100644 index 08fcbc3ca..000000000 --- a/config/.jwt_secret +++ /dev/null @@ -1 +0,0 @@ -c6dcc36e80f0d9f7090c478197acd9b1ac48a1e6312ce70809327a72b1c2b537666cc46a613e40ea7f50993a963f10eadd0e57a1ee7c529a9a907061eac57a57 \ No newline at end of file diff --git a/config/.timeline b/config/.timeline deleted file mode 100644 index 35b1a7a14..000000000 --- a/config/.timeline +++ /dev/null @@ -1 +0,0 @@ -1744058517.683821 \ No newline at end of file diff --git a/config/.vacuum b/config/.vacuum deleted file mode 100644 index 489dfffb1..000000000 --- a/config/.vacuum +++ /dev/null @@ -1 +0,0 @@ -1744058517.699165 \ No newline at end of file diff --git a/config/config.yaml b/config/config.yaml deleted file mode 100644 index 9da9e80f6..000000000 --- a/config/config.yaml +++ /dev/null @@ -1,83 +0,0 @@ -mqtt: - enabled: false # Set this to True if using MQTT for event triggers - -detectors: - memryx: - type: memryx - device: PCIe - -# model: -# model_type: yolov9 -# width: 640 -# height: 640 -# path: /memryx_models/yolov9/YOLO_v9_small_640_640_3_onnx.dfp -# labelmap_path: /memryx_models/yolov9/labelmap.txt - -# model: -# model_type: yolov8 -# width: 640 -# height: 640 -# path: /memryx_models/yolov8/YOLO_v8_small_640_640_3_onnx.dfp -# labelmap_path: /memryx_models/yolov8/labelmap.txt - -model: - model_type: yolonas - width: 320 - height: 320 - path: /memryx_models/yolo_nas/yolo_nas_s.dfp - labelmap_path: /memryx_models/yolo_nas/labelmap.txt - -# model: -# model_type: yolox -# width: 640 -# height: 640 -# path: /memryx_models/yolox/YOLOX_640_640_3_onnx.dfp -# labelmap_path: /memryx_models/yolox/labelmap.txt - -# model: -# model_type: ssd -# width: 320 -# height: 320 -# path: /memryx_models/ssdlite/SSDlite_MobileNet_v2_320_320_3_onnx.dfp -# labelmap_path: /memryx_models/ssdlite/labelmap.txt - -cameras: - Cam1: - ffmpeg: - inputs: - - path: rtsp://admin:NoPa$$word@192.168.56.22:554/cam/realmonitor?channel=1&subtype=0 - roles: - - detect - - record - detect: - width: 640 - height: 480 - fps: 20 - enabled: true - - objects: - track: - - person - - cup - - bottle - - keyboard - - cell phone - - snapshots: - enabled: false - bounding_box: true - retain: - default: 1 # Keep snapshots for 2 days - record: - enabled: false - retain: - days: 1 # Keep recordings for 7 days - alerts: - retain: - days: 1 - detections: - retain: - days: 1 - -version: 0.16-0 - diff --git a/config/frigate.db-shm b/config/frigate.db-shm deleted file mode 100644 index fe9ac2845..000000000 Binary files a/config/frigate.db-shm and /dev/null differ diff --git a/config/frigate.db-wal b/config/frigate.db-wal deleted file mode 100644 index e69de29bb..000000000 diff --git a/docker_install.sh b/docker_install.sh deleted file mode 100644 index 16f8b72df..000000000 --- a/docker_install.sh +++ /dev/null @@ -1,31 +0,0 @@ -#### Steps to install docker - - sudo apt-get update - sudo apt-get install ca-certificates curl - sudo install -m 0755 -d /etc/apt/keyrings - sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc - sudo chmod a+r /etc/apt/keyrings/docker.asc - echo \ - "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \ - $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \ - sudo tee /etc/apt/sources.list.d/docker.list > /dev/null - sudo apt-get update - sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin - -sudo systemctl start docker -sudo systemctl enable docker - -sudo groupadd docker -sudo usermod -aG docker $USER - -### if docker.service is inactive: - -sudo systemctl reset-failed docker.service - -### Firewall blocking ip address: - -sudo ufw status -sudo ufw allow from 172.17.0.0/24 to any - -### sudo lsof-i :5000 -sudo kill diff --git a/frigate/version.py b/frigate/version.py deleted file mode 100644 index 584d821ca..000000000 --- a/frigate/version.py +++ /dev/null @@ -1 +0,0 @@ -VERSION = "0.16.0-2458f667" \ No newline at end of file diff --git a/startdocker.sh b/startdocker.sh deleted file mode 100755 index 6b1c0dacd..000000000 --- a/startdocker.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/bash - -# Stop and remove existing container -docker stop frigate-memx -docker rm frigate-memx - -# Build the new Docker image -sudo docker build -t frigate-memx -f docker/main/Dockerfile . - -# Run the new container -sudo docker run -d \ - --name frigate-memx \ - --restart=unless-stopped \ - --mount type=tmpfs,target=/tmp/cache,tmpfs-size=1000000000 \ - --shm-size=256m \ - -v /home/memryx/Frigate_MemryX/config:/config \ - -e FRIGATE_RTSP_PASSWORD='password' \ - --add-host=host.docker.internal:host-gateway \ - --privileged=true \ - -p 8971:8971 \ - -p 8554:8554 \ - -p 5000:5000 \ - -p 8555:8555/tcp \ - -p 8555:8555/udp \ - --device /dev/memx0 frigate-memx - -echo "Frigate container restarted successfully."