mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-07-30 13:48:07 +02:00
basic-cleanup
This commit is contained in:
parent
4d1a97f059
commit
997a88b1a0
@ -13,4 +13,4 @@ core
|
||||
|
||||
web/dist/
|
||||
web/node_modules/
|
||||
web/.npm
|
||||
web/.npm
|
4
.gitignore
vendored
4
.gitignore
vendored
@ -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
|
||||
|
14
README.md
14
README.md
@ -4,11 +4,15 @@
|
||||
|
||||
# Frigate - NVR With Realtime Object Detection for IP Cameras
|
||||
|
||||
<a href="https://hosted.weblate.org/engage/frigate-nvr/">
|
||||
<img src="https://hosted.weblate.org/widget/frigate-nvr/language-badge.svg" alt="Translation status" />
|
||||
</a>
|
||||
|
||||
\[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
|
||||
|
||||
<div>
|
||||
<img width="800" alt="Live dashboard" src="https://github.com/blakeblackshear/frigate/assets/569905/5e713cb9-9db5-41dc-947a-6937c3bc376e">
|
||||
</div>
|
||||
|
||||
### Streamlined review workflow
|
||||
|
||||
<div>
|
||||
<img width="800" alt="Streamlined review workflow" src="https://github.com/blakeblackshear/frigate/assets/569905/6fed96e8-3b18-40e5-9ddc-31e6f3c9f2ff">
|
||||
</div>
|
||||
|
||||
### Multi-camera scrubbing
|
||||
|
||||
<div>
|
||||
<img width="800" alt="Multi-camera scrubbing" src="https://github.com/blakeblackshear/frigate/assets/569905/d6788a15-0eeb-4427-a8d4-80b93cae3d74">
|
||||
</div>
|
||||
|
||||
### Built-in mask and zone editor
|
||||
|
||||
<div>
|
||||
<img width="800" alt="Multi-camera scrubbing" src="https://github.com/blakeblackshear/frigate/assets/569905/d7885fc3-bfe6-452f-b7d0-d957cb3e31f5">
|
||||
</div>
|
||||
@ -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.
|
||||
|
||||
<a href="https://hosted.weblate.org/engage/frigate-nvr/">
|
||||
<img src="https://hosted.weblate.org/widget/frigate-nvr/multi-auto.svg" alt="Translation status" />
|
||||
</a>
|
@ -1 +0,0 @@
|
||||
1744058517.724104
|
@ -1 +0,0 @@
|
||||
c6dcc36e80f0d9f7090c478197acd9b1ac48a1e6312ce70809327a72b1c2b537666cc46a613e40ea7f50993a963f10eadd0e57a1ee7c529a9a907061eac57a57
|
@ -1 +0,0 @@
|
||||
1744058517.683821
|
@ -1 +0,0 @@
|
||||
1744058517.699165
|
@ -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
|
||||
|
Binary file not shown.
@ -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 <PID>
|
@ -1 +0,0 @@
|
||||
VERSION = "0.16.0-2458f667"
|
@ -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."
|
Loading…
Reference in New Issue
Block a user