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]: Stationary objects feature in 0.10.0

See original GitHub issue

Describe the problem you are having

Thanks for the awesome release!

I have a very interesting setup in my driveway where two cars are usually always parked when we are home but want to avoid being notified of them when stationary so I created two zones as described in the documentation. It works fairly well for the most part but due to how my camera is positioned, I usually always miss events due to all the masking as the camera also faces the street. I originally had the street mask and I believe that is the reason for the missed events since Frigate can’t track the objects as they approach the zone.

Here’s an image of my driveway with the street unmasked for reference:

Image

I used to deal with the stationary objects with two zones: Yellow only detected person and orange detected person and car.

Now that we have a way to tune stationary objects, I was wondering if I should merge the two zones into one and use the new detect: option to properly deal with the cars that are usually there.

Should this work? if so, any recommendations?

Version

0.10.0

Frigate config file

# mqtt
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: 14

model:
  labelmap:
    15: animal
    16: animal
    17: animal
    18: animal
    19: animal
    20: animal
    21: animal
    22: animal
    23: animal
    24: animal

birdseye:
  enabled: True
  width: 1920
  height: 1080
  quality: 8
  mode: motion  

### Driveway ###

cameras:
  driveway_cam:
    rtmp:
      enabled: False
    objects:
      track:
        - person
        - car
        - dog
    ffmpeg:
      inputs:
        - path: rtsp://REDACTED:REDACTED$@192.168.141.14:554/cam/realmonitor?channel=1&subtype=0
          roles:
            - detect
#            - rtmp
            - record

    detect:
      width: 1920
      height: 1080
      fps: 5
      enabled: True

    record:
      enabled: True
      retain:
        days: 14
        mode: motion
      events:
        max_seconds: 240
        pre_capture: 5
        post_capture: 5
        retain:
          default: 14
          mode: active_objects
        objects:
          - person
          - car
          - animal
        required_zones:
          - street_driveway
          - main_driveway

    snapshots:
      enabled: True
      timestamp: True
      bounding_box: True
      crop: False
      required_zones:
        - street_driveway
        - main_driveway
      retain:
        default: 14

    motion:
      mask:
         - 1920,0,1920,610,863,432,846,687,1053,941,677,1080,0,1080,0,0

    zones:
      street_driveway:
        coordinates: 1856,763,1821,871,871,575,902,538
        objects:
          - person
          - car
      main_driveway:
        coordinates: 1328,1080,1136,983,852,575,1920,929,1920,1080
        objects:
          - person
          - dog

    objects:
      filters:
        car:
          mask:
            - 1920,0,1920,610,863,432,846,687,1053,941,677,1080,0,1080,0,0
        dog:
          mask:
            - 1920,0,1920,610,863,432,846,687,248,803,0,865,0,0
        person:
          mask:
            - 1920,0,1920,610,863,432,846,687,248,803,0,865,0,0

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:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
blakeblackshearcommented, Feb 20, 2022

The event will stay in progress. When you watch video of the event, you should only see portions of video where any object actually moves. You won’t be storing video of a parked car unless something else is moving.

1reaction
blakeblackshearcommented, Feb 20, 2022

A couple of pointers that would probably be helpful.

Masking the street would definitely prevent objects from being tracked as they approach your zones, so that’s likely why things are missed.

Zones are evaluated based on the bottom center of the bounding box (green dot in screenshot below), not how much the object overlaps with the zone. Based on the angle of your camera, your bounding boxes may be in areas you aren’t expecting when cars drive diagonally down the street. image

In 0.10.0, parked cars will stay tracked forever. This will help prevent frigate from getting confused and swapping cars in the driveway with cars driving by. Your zone based approach should still work with this version. You could also try merging the zones into one and comparing the before and after values of the new position_changes property on the mqtt topic to only be notified when an object actually changes position.

You may want to look at the updated notification blueprint for ideas: https://github.com/blakeblackshear/frigate/discussions/2748#discussioncomment-2152948

Read more comments on GitHub >

github_iconTop Results From Across the Web

XR Interaction Toolkit | 0.10.0-preview.7 - Unity - Manual
Basic canvas UI interaction with XR controllers. A VR camera rig for handling stationary and room-scale VR experiences.
Read more >
0.10.0 Release Notes The Zig Programming Language
This release features 10 months of work: changes from 272 ... This target may only support -femit-asm and cannot emit object files, ...
Read more >
OData Connected Service 0.10.0 Release
When working with open types in an OData service, dynamic properties are held in a container property of type IDictionary<string, object>.
Read more >
Release history — YANK 0.23.7 documentation
Major changes to the CLI behavior of yank analyze and yank analyze report to support the new features. These should not affect existing...
Read more >
Changelog — tsfresh 0.18.1.dev39+g611e04f documentation
Drop Python 3.6 support due to dependency on statsmodels 0.13 ... Improve relevance table function documentation (#781); Fixed #789 Typo in “how to...
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