question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Support]: Car/person detection during the day and only people at night?

See original GitHub issue

Describe 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:closed
  • Created 2 years ago
  • Comments:64 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
blakeblackshearcommented, Mar 1, 2022

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.

1reaction
junior466commented, Feb 28, 2022

@NickM-27 Wow sir, you are amazing! Thank you for your time. I will try this shortly!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Enrich motion detection with Object Detection - Network Optix
Instead of recording on motion, you would only record when seeing a moving pre-selected object (car, person, backpack ...)
Read more >
AI Security Camera Night Time Human Detection - YouTube
In addition to the people detection function, Viewtron AI camera systems support the following functions. Vehicle Detection - cars and ...
Read more >
Dahua SMD car parked in driveway? - IP Cam Talk
I am curious though if SMD people and car detection are better (reliable day and night) than IVS. Another thing I was curious...
Read more >
The Impact of Pre-sleep Protein Ingestion on the Skeletal ...
In addition, the benefits of night-time supply of nutrients for overnight recovery have been suggested to support muscle reconditioning and ...
Read more >
Deep Multi-modal Object Detection and Semantic ... - arXiv
mid-sized city in Germany, only during daytime and on sunny days. ... Normalized percentage of objects of car, person,.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found