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.

[Issue]: Camera object mask seems to have no effect

See original GitHub issue

Describe the problem you are having

Defining an object mask within a camera doesn’t seem to have any effect.

Even after defining them object is tracked in the region. Double checked with motion mask and this works fine.

Version

0.10.0

Frigate config file

cameras:


  corte:
    ffmpeg:
      input_args :
        - -avoid_negative_ts
        - make_zero
        - -fflags
        - nobuffer
        - -flags
        - low_delay
        - -strict
        - experimental
        - -fflags
        - +genpts+discardcorrupt
        - -use_wallclock_as_timestamps
        - '1'
      inputs:

        - path: SECRET
          roles:
            - record
            - detect
            - rtmp
    detect:
      width: 2560
      height: 1440
      fps: 5
    motion:
      mask:
        - 1537,473,1396,465,1406,880,1537,882 # this works fine
    objects:
      track:
        - person
        - cat
      filters:
        person:
          min_area: 1500
          min_score: 0.5
          threshold: 0.7
          mask:
            - 1411,1018,1573,1016,1556,453,1382,446 # NO EFFECT
        cat:
          min_score: 0.5
          threshold: 0.7

Relevant log output

not relevant

FFprobe output from your camera

not relevant

Frigate stats

No response

Operating system

Proxmox

Install method

Docker Compose

Coral version

USB

Network connection

Wired

Camera make and model

Dahua, can’t remember the name

Any other information that may be helpful

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:23 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
mathmaniac43commented, Mar 11, 2022

@NickM-27 I see what you’re saying, thanks. I watched the video on debug a few more times and did actually see one frame where a goofy tall-and-narrow box around the front of the car clipped into the zone, so I think I need to adjust my zone to be a bit further from the parked car anyways. Now that I have this test camera set up, it should make troubleshooting and debugging easier down the line too.

@blakeblackshear I appreciate your help too!

1reaction
blakeblackshearcommented, Mar 10, 2022

If frigate has recordings for that time period, you can add a “test” camera to your config that will replay and reanalyze that video so you can watch it in debug view. This is what I do for development.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Apply Masking for local adjustments in Camera Raw
This tool helps you make local adjustments inside or outside an oval shape. Use the Feather slider to determine how soft you want...
Read more >
Can not resize or reposition effect masks - MAGIX.info
The problem is with putting a mask on a single object and applying an effect. The mask is added through the Effect upper...
Read more >
Masks - Frigate Docs
If it is in a masked area, it is assumed to be a false positive. For example, you may want to mask out...
Read more >
Add a shape mask in Final Cut Pro - Apple Support
For information about animating shape masks, see Animate an effect shape ... Another default shape appears in the viewer, and the original shape...
Read more >
Common After Effects Problems and Mistakes - YouTube
MISTAKE 2: Creating Shapes instead of Masks If you try to create a mask and you do not have the layer selected that...
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