Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frigate detection tips #8

Open
poxin13 opened this issue May 31, 2023 · 2 comments
Open

Frigate detection tips #8

poxin13 opened this issue May 31, 2023 · 2 comments

Comments

@poxin13
Copy link

poxin13 commented May 31, 2023

Any tips on how to get frigate to detect birds better? I've got a 4k camera and have tried various angles, settings, etc but it seems to only pick them up "sometimes" even with what I would consider a very clear and dead-on view on the bird. Love the app by the way this is super cool.

@poxin13 poxin13 changed the title Frigation detection tips Frigate detection tips May 31, 2023
@mmcc-xx
Copy link
Owner

mmcc-xx commented May 31, 2023

I'm glad you are enjoying it!

Below is part of my frigate config file. Note especially...

      filters:
        bird:
          threshold: 0.6
          min_area: 5000

If you dial down threshold you'll get more detections, but more of them will be false positives. Most of the false positives will be filtered out by WhosAtMyFeeder. Default is 0.7

min_area is by default 0, so setting this to some value greater than 5000 will make sure it isn't flagging tiny little dots as birds.

Also note that in the width and height section under detect I'm feeding the model full sized frames. This requires more processing but should (I think) work better.

  birdcam:
    ffmpeg:
      input_args: preset-rtmp-generic
      inputs:
        - path: rtmp://192.168.1.114/bcs/channel0_main.bcs?channel=0&stream=0&user=admin&password=password
          roles:
            - detect
            - record
      output_args:
        record: preset-record-generic-audio-copy
      hwaccel_args: preset-vaapi
    live:
      stream_name: birdcam
    detect:
      enabled: True
      width: 2560
      height: 1920
      fps: 6
    record:
      enabled: true
    snapshots:
      enabled: true
    mqtt:
      bounding_box: False
      timestamp: False
      quality: 95
    objects:
      track:
        - bird
      filters:
        bird:
          threshold: 0.6
          min_area: 5000

@poxin13
Copy link
Author

poxin13 commented May 31, 2023

Thanks for the info! I did see you updated the readme yesterday with an example but didn't see some of these options in there like threshold. Let me give it a shot with some of these newer options.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants