frigate: sync config to live state, fix /tmp/cache size, enable VAAPI on house_east/pool_room, throttle shop_west detection
- docker-compose.yml: increase /tmp/cache tmpfs from 4G to 8G, add Coral USB device passthrough (/dev/bus/usb), fix memswap_limit to 16G (was equal to mem_limit) - config.yml: replace OpenVINO detector with Coral edgetpu (usb), update model dimensions to 320x320 and pixel format to rgb, enable VAAPI on house_east and pool_room, throttle shop_west to 2fps with stricter person/car filters (min_area + threshold), add offline note for gate_camera, enable semantic_search (large), face_recognition (small), LPR, and bird classification Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
# back_porch 192.168.44.63 kerberos:kerberos
|
# back_porch 192.168.44.63 kerberos:kerberos
|
||||||
# house_south_corner 192.168.44.61 admin:(blank)
|
# house_south_corner 192.168.44.61 admin:(blank)
|
||||||
# house_south_yard 192.168.44.62 admin:(blank)
|
# house_south_yard 192.168.44.62 admin:(blank)
|
||||||
# gate_camera 192.168.86.175 admin:(blank)
|
# gate_camera 192.168.86.175 admin:(blank) <-- OFFLINE: wrong user/pass RTSP error
|
||||||
#
|
#
|
||||||
# Profile cameras (/profile1 + /profile2, H.264):
|
# Profile cameras (/profile1 + /profile2, H.264):
|
||||||
# house_north 192.168.44.51 admin:123456
|
# house_north 192.168.44.51 admin:123456
|
||||||
@@ -166,17 +166,17 @@ ffmpeg:
|
|||||||
|
|
||||||
# =============================================================================
|
# =============================================================================
|
||||||
model:
|
model:
|
||||||
path: /openvino-model/ssdlite_mobilenet_v2.xml
|
width: 320
|
||||||
width: 300
|
height: 320
|
||||||
height: 300
|
|
||||||
input_tensor: nhwc
|
input_tensor: nhwc
|
||||||
input_pixel_format: bgr
|
input_pixel_format: rgb
|
||||||
labelmap_path: /openvino-model/coco_91cl_bkgr.txt
|
labelmap_path: /openvino-model/coco_91cl_bkgr.txt
|
||||||
|
|
||||||
detectors:
|
detectors:
|
||||||
ov:
|
coral:
|
||||||
type: openvino
|
type: edgetpu
|
||||||
device: GPU
|
device: usb
|
||||||
|
|
||||||
detect:
|
detect:
|
||||||
enabled: true
|
enabled: true
|
||||||
fps: 3
|
fps: 3
|
||||||
@@ -229,6 +229,21 @@ birdseye:
|
|||||||
enabled: true
|
enabled: true
|
||||||
mode: objects
|
mode: objects
|
||||||
|
|
||||||
|
semantic_search:
|
||||||
|
enabled: true
|
||||||
|
model_size: large
|
||||||
|
|
||||||
|
face_recognition:
|
||||||
|
enabled: true
|
||||||
|
model_size: small
|
||||||
|
|
||||||
|
lpr:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
|
classification:
|
||||||
|
bird:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
# =============================================================================
|
# =============================================================================
|
||||||
# Camera definitions
|
# Camera definitions
|
||||||
# =============================================================================
|
# =============================================================================
|
||||||
@@ -334,8 +349,19 @@ cameras:
|
|||||||
roles:
|
roles:
|
||||||
- record
|
- record
|
||||||
|
|
||||||
|
# shop_west: throttled to 2fps + stricter filters to reduce detection load
|
||||||
shop_west:
|
shop_west:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
detect:
|
||||||
|
fps: 2
|
||||||
|
objects:
|
||||||
|
filters:
|
||||||
|
person:
|
||||||
|
min_area: 8000
|
||||||
|
threshold: 0.8
|
||||||
|
car:
|
||||||
|
min_area: 15000
|
||||||
|
threshold: 0.8
|
||||||
ffmpeg:
|
ffmpeg:
|
||||||
inputs:
|
inputs:
|
||||||
- path: rtsp://127.0.0.1:8554/shop_west_sub
|
- path: rtsp://127.0.0.1:8554/shop_west_sub
|
||||||
@@ -374,13 +400,12 @@ cameras:
|
|||||||
- record
|
- record
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
# house_east - HEVC, VAAPI disabled (pw: admin)
|
# house_east - HEVC source, go2rtc provides H.264 sub, VAAPI enabled
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
|
|
||||||
house_east:
|
house_east:
|
||||||
enabled: true
|
enabled: true
|
||||||
ffmpeg:
|
ffmpeg:
|
||||||
hwaccel_args: []
|
|
||||||
inputs:
|
inputs:
|
||||||
- path: rtsp://127.0.0.1:8554/house_east_sub
|
- path: rtsp://127.0.0.1:8554/house_east_sub
|
||||||
input_args: preset-rtsp-restream
|
input_args: preset-rtsp-restream
|
||||||
@@ -459,6 +484,7 @@ cameras:
|
|||||||
|
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
# ASH43-W cameras (HEVC main, H.264 sub - go2rtc transcodes main to H.264)
|
# ASH43-W cameras (HEVC main, H.264 sub - go2rtc transcodes main to H.264)
|
||||||
|
# VAAPI enabled - sub stream is H.264
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
|
|
||||||
pool_room:
|
pool_room:
|
||||||
|
|||||||
@@ -13,10 +13,13 @@ services:
|
|||||||
- /mnt/docker-data/configs/frigate/config:/config
|
- /mnt/docker-data/configs/frigate/config:/config
|
||||||
- /mnt/frigate-recordings:/media/frigate
|
- /mnt/frigate-recordings:/media/frigate
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
tmpfs:
|
||||||
|
- /tmp/cache:size=8G
|
||||||
devices:
|
devices:
|
||||||
- /dev/dri:/dev/dri
|
- /dev/dri:/dev/dri
|
||||||
|
- /dev/bus/usb:/dev/bus/usb
|
||||||
mem_limit: 12G
|
mem_limit: 12G
|
||||||
memswap_limit: 12G
|
memswap_limit: 16G
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "curl -f http://localhost:5000/api/version || exit 1"]
|
test: ["CMD-SHELL", "curl -f http://localhost:5000/api/version || exit 1"]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
|
|||||||
Reference in New Issue
Block a user