[Support]: Car/person detection during the day and only people at night?
See original GitHub issueDescribe the problem you are having
I am only opening this as an issue because with the upcoming launch of Frigate+, I suspect this to be something people may request or want to achieve.
I noticed that the way my camera is pointed is my driveway always gives me false alerts with parked cars so along with the power of Home Assistant, I configured my detectors to only be on when we are away and know that the cars are not there. I achieved that using location and a simple automation. The issue now is at night, I would like to turn on the detector but only allow the detector to pick up people, no cars as I know the cars will be there in the zone causing false alerts.
Is this possible? For some reason, I can’t think it through.
Version
0.10.0
Frigate config file
cameras:
driveway_cam:
rtmp:
enabled: False
ffmpeg:
inputs:
- path: rtsp://ha:REDACTED$@192.168.141.14:554/cam/realmonitor?channel=1&subtype=0
roles:
- detect
- record
detect:
width: 3840
height: 2160
fps: 5
enabled: True
zones:
driveway:
coordinates: 2876,2160,2083,1823,1928,1413,2175,1308,3840,1746,3840,2160
objects:
- person
- dog
- car
objects:
track:
- person
- dog
- car
filters:
person:
# Optional: minimum width*height of the bounding box for the detected object (default: 0)
min_area: 5000
# Optional: maximum width*height of the bounding box for the detected object (default: 24000000)
max_area: 100000
mask:
- 0,0,0,2160,2098,2160,1928,1374,2690,948,3840,1130,3840,0
car:
# Optional: minimum width*height of the bounding box for the detected object (default: 0)
min_area: 5000
# Optional: maximum width*height of the bounding box for the detected object (default: 24000000)
max_area: 200000
mask:
- 0,0,0,2160,2098,2160,1928,1374,2690,948,3840,1130,3840,0
dog:
mask:
- 0,0,0,2160,2098,2160,1928,1374,2690,948,3840,1130,3840,0
motion:
# Increasing this value will make motion detection less sensitive
# threshold: 30
# default 25
# Minimum size in pixels in the resized motion image that counts as motion.
# Increasing this value will prevent smaller areas of motion from being detected. Decreasing will
# make motion detection more sensitive to smaller moving objects.
# As a rule of thumb:
# - 15 - high sensitivity
# - 30 - medium sensitivity
# - 50 - low sensitivity
contour_area: 35
# default: 30
mask:
- 0,0,0,2160,2098,2160,1928,1374,2690,948,3840,1130,3840,0
record:
enabled: True
retain:
days: 7
mode: motion
events:
max_seconds: 240
pre_capture: 5
post_capture: 5
retain:
default: 7
mode: active_objects
objects:
- person
- car
- dog
required_zones:
- driveway
snapshots:
enabled: True
timestamp: True
bounding_box: True
crop: False
required_zones:
- driveway
retain:
default: 7
#####
mqtt:
host: 192.168.141.21
user: REDACTED
password: REDACTED
detectors:
coral:
type: edgetpu
device: usb
database:
path: /db/frigate.db
snapshots:
enabled: True
timestamp: True
bounding_box: True
crop: False
required_zones: []
retain:
default: 7
model:
labelmap:
15: animal
16: animal
17: animal
18: animal
19: animal
20: animal
21: animal
22: animal
23: animal
24: animal
birdseye:
enabled: False
# width: 1920
# height: 1080
# quality: 8
# mode: motion
Relevant log output
NA
FFprobe output from your camera
NA
Frigate stats
No response
Operating system
Debian
Install method
Docker Compose
Coral version
USB
Network connection
Wired
Camera make and model
Amcrest 4K
Any other information that may be helpful
No response
Issue Analytics
- State:
- Created 2 years ago
- Comments:64 (5 by maintainers)
I don’t think you should get events for objects that never change position, so if there is a parked car, it shouldn’t create an event if it never moves. It may get confusing while tracking if a car drives by, but generally this should be the case.
@NickM-27 Wow sir, you are amazing! Thank you for your time. I will try this shortly!