detectors:
coral:
type: cpu
# mqtt,必须
mqtt:
# mqtt的服务地址
host: 192.168.31.252
# 摄像头接入
cameras:
# 摄像头名称,自定义
fristcamera:
ffmpeg:
inputs:
# 摄像头地址
- path: rtsp://摄像头账号:密码@192.168.31.14:554/stream2
# 要开启的功能,下面这些功能,不需要就删掉
roles:
# 检测功能
- detect
rtmp:
enabled: False
detect:
enabled: True
stationary:
interval: 10
threshold: 10
# 区域,可以先不设置在网页游览器里复制过来
objects:
# 选择需要检测的物体,能选择的列表在labelmap.txt
track:
- person
# 定制过滤器减少误报
filters:
person:
# 检测到的对象的边框的最小面积,宽度*高度(默认:0)
min_area: 5000
# 检测到的对象的边框的最大面积,宽度*高度 (默认: 24000000)
max_area: 30000000
# 启动跟踪的对象的最低分数 (默认: 0.5)
min_score: 0.65
# 将被跟踪对象的计算分数的最小十进制百分比视为真实正值 (默认: shown below)
#threshold: 0.55
mask: 690,131,638,285,483,261,569,110
motion:
# Optional: The threshold passed to cv2.threshold to determine if a pixel is different enough to be counted as motion. (default: shown below)
# Increasing this value will make motion detection less sensitive and decreasing it will make motion detection more sensitive.
# The value should be between 1 and 255.
threshold: 10
improve_contrast: True