This was set up on an Intel NUC8i5 with a Coral TPU M2 key. If you don't have one you should get it otherwise real time object detection will be a lesson in futility.
Created
August 7, 2021 01:03
-
-
Save TaylorBurnham/b53f24083d6030947804db8e96a4da7c to your computer and use it in GitHub Desktop.
Standalone Frigate configuration with Mosquitto for an Intel NUC
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.9" | |
services: | |
mqtt: | |
container_name: mqtt | |
image: eclipse-mosquitto | |
volumes: | |
- ./mosquitto/logs/:/mosquitto/logs/ | |
- ./mosquitto/mosquitto.conf:/mosquitto/config/mosquitto.conf | |
- ./mosquitto/mqtt-auth.conf:/mosquitto/config/mqtt-auth.conf | |
- ./mosquitto/mqtt-acl.conf:/mosquitto/config/mqtt-acl.conf | |
restart: unless-stopped | |
networks: | |
- frigate | |
ports: | |
- 1883:1883 | |
frigate: | |
container_name: frigate | |
networks: | |
- frigate | |
privileged: true | |
restart: unless-stopped | |
depends_on: | |
- mqtt | |
image: blakeblackshear/frigate:stable-amd64 | |
devices: | |
- /dev/bus/usb:/dev/bus/usb | |
- /dev/dri/renderD128 | |
- /dev/apex_0 | |
ports: | |
- 127.0.0.1:5000:5000 | |
- 127.0.0.1:1935:1935 | |
volumes: | |
- /etc/localtime:/etc/localtime:ro | |
- ./frigate/frigate_config.yml:/config/config.yml:ro | |
- ./frigate/media:/media/frigate | |
- type: tmpfs | |
target: /tmp/cache | |
tmpfs: | |
size: 1000000000 | |
networks: | |
frigate: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cameras: | |
frontyard: | |
ffmpeg: | |
inputs: | |
- path: rtsp://<username>:<password>@camera:554/s0 | |
roles: | |
- clips | |
- record | |
- rtmp | |
- detect | |
width: 1920 | |
height: 1080 | |
fps: 5 | |
motion: | |
mask: | |
# Ignores the Timestamp from UVC Cameras | |
- 0,0,345,0,345,45,0,45 | |
# That bush I don't like that gives false positives. | |
- 554,529,416,618,381,717,570,760,722,666,724,480,641,383,537,440 | |
zones: | |
frontyard_frontdoor: | |
coordinates: 36,292,161,300,407,458,484,531,432,693,91,758 | |
frontyard_driveway: | |
coordinates: 753,326,1295,390,1454,458,183,516,167,256 | |
objects: | |
track: | |
- person | |
- dog | |
- cat | |
- car | |
- bicycle | |
- bus | |
snapshots: | |
enabled: True | |
timestamp: False | |
bounding_box: true | |
retain: | |
default: 3 | |
clips: | |
enabled: True | |
retain: | |
default: 90 | |
record: | |
enabled: True | |
retain_days: 30 | |
# Front Yard End | |
mqtt: | |
host: frigate-mqtt | |
topic_prefix: frigate | |
client_id: frigate | |
user: frigate | |
password: <suuuper secret> | |
detectors: | |
coral: | |
type: edgetpu | |
device: "" | |
num_threads: 3 | |
ffmpeg: | |
hwaccel_args: | |
- -hwaccel | |
- vaapi | |
- -hwaccel_device | |
- /dev/dri/renderD128 | |
- -hwaccel_output_format | |
- yuv420p |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
persistence true | |
persistence_location /mosquitto/data/ | |
log_dest file /mosquitto/logs/mosquitto.log | |
listener 1883 | |
allow_anonymous false | |
password_file /mosquitto/config/mqtt-auth.conf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user frigate | |
topic frigate/# | |
user <you> | |
topic frigate/# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# See https://mosquitto.org/documentation/authentication-methods/ | |
frigate: | |
<you>: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment