Du vil bruke filter i objects for å luke bort falske notifikasjoner.
Her er min konfigurasjon, kjører på en i3-6100U med 4gb ram. Kjører detect på gpu (integrert i cpu). Anbefaler betaen med "full access".
Kode:
#environment_vars:
# LIBVA_DRIVER_NAME: i965
#LIBVA_DRIVER_NAME: iHD
mqtt:
host: homeassistant
user: mqtt_user
password: mqtt_password
detectors:
ov:
type: openvino
device: GPU
model:
width: 300
height: 300
input_tensor: nhwc
input_pixel_format: bgr
path: /openvino-model/ssdlite_mobilenet_v2.xml
labelmap_path: /openvino-model/coco_91cl_bkgr.txt
objects:
track:
- person
- car
- cat
filters:
person:
threshold: 0.75
car:
threshold: 0.90
go2rtc:
streams:
reolink_510wa:
- rtsp://admin:
[email protected]:554/h264Preview_01_main
reolink_510wa_sub:
- rtsp://admin:
[email protected]:554/h264Preview_01_sub
record:
enabled: true
retain:
days: 5
mode: motion
alerts:
retain:
days: 5
pre_capture: 5
post_capture: 5
detections:
retain:
days: 5
pre_capture: 5
post_capture: 5
cameras:
reolink_510wa:
ffmpeg:
output_args:
record: preset-record-generic-audio-aac
hwaccel_args: preset-vaapi #-hwaccel_device /dev/dri/renderD128 -hwaccel_output_format yuv420p
inputs:
- path: rtsp://127.0.0.1:8554/reolink_510wa?video&audio
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp://127.0.0.1:8554/reolink_510wa_sub?video&audio
input_args: preset-rtsp-restream
roles:
- detect
detect:
enabled: true
width: 640
height: 480
fps: 5
snapshots:
enabled: true
timestamp: true
bounding_box: true
retain:
default: 30
motion:
mask: 0.176,0,0.721,0.252,0.872,0.519,1,0.731,1,0,0.781,0,0.575,0.003
threshold: 60
contour_area: 15
improve_contrast: 'true'
objects:
mask: 0.835,0.303,1,0.087,0.669,0,0.149,0
version: 0.15-0