#Frigate - Limit object on one camera?

1 messages Ā· Page 1 of 1 (latest)

lucid kraken
#

Hi,

I'm having difficulty preventing a camera from detecting a motorcycle on a camera. It's inside a garage, so not an important detection, yet it's flooding the records. This is what I've tried.

  frigate_reolink_e1_shop:
    ffmpeg:
      inputs:
        - path: rtsp://admin:xxx@192.168.254.203:2554/Preview_01_sub
          roles:
            - detect
        - path: rtsp://admin:xxx@192.168.254.203:2554/Preview_01_main
          roles:
            - record
    detect:
      enabled: true # <---- turn on detection
    onvif:
      host: 192.168.254.203
      user: admin
      password: xxx
    motion:
      mask: 0.693,0.073,0.691,0.015,0.997,0.012,0.994,0.07
    zones:
      Whole_Shop:
        coordinates: 0,0,1,0,1,1,0,1
        loitering_time: 0
        objects:
          - person

My goal is to only trigger detection for persons.

Per https://docs.frigate.video/configuration/zones#zone-loitering, I thought my config should work.

Thanks for any assistance!

Zones allow you to define a specific area of the frame and apply additional filters for object types so you can determine whether or not an object is within a particular area. Presence in a zone is evaluated based on the bottom center of the bounding box for the object. It does not matter how much of the bounding box overlaps with the zone.

chrome patrol
#

According to the docs I'd think that loitering_time 0 means that objects are immediately detected inside the zone?

#

You cannot exclude your motorcycle with motion mask or zone area?

#

maybe let it to detect the motorcycle but only alert when person is inside the zone?

lucid kraken
#

That was my goal with the loitering_time: 0, that someone would be detected immdiately. I think it's actually a relic of another camera's config that I copied over as I'm not sure why it makes sense here.

Excluding with an object mask seems like an option, I just misunderstand why the zones: config isn't already limiting the detection to only persons.

chrome patrol
#

Does it detect it as a person? I would think it would help if you enable also detection of car/motorcycle.. but don't know for sure.

lucid kraken
#

No, it's detecting it as motorcycle.

chrome patrol
#

Ah, but you have generally motorcycle detection enabled?

lucid kraken
#

Yes, it's enabled here:

# Optional: Object configuration
# NOTE: Can be overridden at the camera level
objects:
  # Optional: list of objects to track from labelmap.txt (default: shown below)
  track:
    - person
    - car
    - truck
    - motorcycle
    - bicycle
    - cat
    - dog
    - mouse
  # - hat
  # - backpack
  # - handbag
chrome patrol
#

But that's a bit weird that zones have separately object listing. I don't know how they interfere with camera specific or global objects

#

can you try to disable it for camera and enable only person for the zone?

lucid kraken
#

I don't think it's enabled on the camera (in OP), only the global (which I just pasted).

I agree.

#

The snippit in the OP is the camera config?

chrome patrol
#

But it is then also enabled for the camera.. if you disable motorcycle for that specific camera you should not get it detected?

#

So add to your camera config (I hope this overwrites what is in global config)

    objects:
      track:
        - person
lucid kraken
#

I like that, but I don't see objects: in the "full reference config" so I assumed it didn't work there. I will try it.

chrome patrol
#

I have it only per camera

lucid kraken
#

šŸ¤·ā€ā™‚ļø I think that worked as I don't see any object detections in debug for that camera. I'll have to confirm persons still work later...

Is that missing from the docs, or I just can't find it?

Anyway, THANK YOU for showing it to me. šŸ™‚ This is the one camera that was flooded with redundant detections/alerts.

#

"motorcycle (12305 tracked objects)" from the new search page vs 2,193 cars between two separate driveways.

chrome patrol
#

True I would say it is missing from the full config.. Cannot see it myself either.

Good if I could help šŸ™‚

lucid kraken
#

You did. Thank you Nacre. Best wishes for the rest of your Friday, and a great weekend!

#

Do you happen to know how to purge specific records in batch?

chrome patrol
#

Hmm, sorry no

fringe current
#

which is what that means

chrome patrol
#

Ah true it was there. I remember seeing that somewhere mentioned