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]: Capturing all animals

See original GitHub issue

Describe the problem you are having

I have enabled a few animals in my configuration but It usually only captures my dog (sometimes) and only during the day so I was wondering since I am open to seeing any type of animal in my yard I wanted to know the easiest way to implement capturing all animals,

Is there a way? I believe the model section of the documentation is what I need but I don’t fully understand it.

Version

0.9.4-26ae608

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

#detectors:
#  cpu1:
#    type: cpu
#  cpu2:
#    type: cpu

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

record:
  enabled: True
  retain_days: 0
  events:
    max_seconds: 240
    pre_capture: 5
    post_capture: 5
    retain:
      default: 7 

### Driveway ###
cameras:
  driveway_cam:
    rtmp:
      enabled: False
    objects:
      track:
        - person
        - car
        - dog
    ffmpeg:
      inputs:
        - path: rtsp://ha: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:
#      events:
#        required_zones:
#          - street_driveway
#          - main_driveway

    record:
      enabled: True
      retain_days: 0
      events:
        max_seconds: 240
        pre_capture: 5
        post_capture: 5
        retain:
          default: 7 
        objects:
          - person
          - car
          - dog
        required_zones:
          - street_driveway
          - main_driveway

    snapshots:
      required_zones:
        - street_driveway
        - main_driveway

    zones:
      street_driveway:
        coordinates: 1856,763,1821,871,1277,691,1334,641
        objects:
          - person
          - car
      main_driveway:
        coordinates: 1328,1080,1136,983,1024,648,1804,908,1744,1080
        objects:
          - person
          - dog
          # - car

    motion:
      mask:
        - 1005,606,1186,896,1055,941,691,1080,406,1080,397,768
        - 1920,0,1920,786,871,503,683,0
        - 0,0,265,0,308,809,0,877

### Backyard ###

  backyard_cam:
    rtmp:
      enabled: False
    objects:
      track:
        - person
        - cat
        - dog
        - bear
        - mouse
    ffmpeg:
      inputs:
        - path: rtsp://ha:REDACTED@192.168.141.15:554/cam/realmonitor?channel=1&subtype=0
          roles:
            - detect
 #           - rtmp
            - record
  
    record:
      enabled: True
      retain_days: 0
      events:
        max_seconds: 240
        pre_capture: 5
        post_capture: 5
        retain:
          default: 7
        objects:
          - person
          - cat
          - dog
          - bear
          - mouse

    detect:
      width: 1920
      height: 1080
      fps: 5
      enabled: True
  
    motion:
      mask:
        - 1152,399,1920,414,1920,337,1920,0,809,0,0,0,0,546

Relevant log output

N/A

FFprobe output from your camera

N/A

Frigate stats

No response

Operating system

Other Linux

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:11 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
NickM-27commented, Feb 8, 2022

Well, when I add it to the backyard camera section, it fails but works fine at the very top:

    rigate    | *************************************************************
    frigate    | *************************************************************
    frigate    | ***    Your config file is not valid!                     ***
    frigate    | ***    Please check the docs at                           ***
    frigate    | ***    https://docs.frigate.video/configuration/index     ***
    frigate    | *************************************************************
    frigate    | *************************************************************
    frigate    | ***    Config Validation Errors                           ***
    frigate    | *************************************************************
    frigate    | 1 validation error for FrigateConfig
    frigate    | cameras -> backyard_cam -> model
    frigate    |   extra fields not permitted (type=value_error.extra)
    frigate    | *************************************************************
    frigate    | ***    End Config Validation Errors                       ***
    frigate    | *************************************************************

It isn’t overridable at the camera level. I didn’t realize that is what you meant, it doesn’t say anywhere in the docs that model is overridable at the camera level. If you put it at the same level but at the very bottom of the file it would make no difference is what I thought you were asking.

1reaction
NickM-27commented, Feb 8, 2022

The COCO dataset used by nearly all the models is heavily weighted towards people. There are only a small number of examples for other objects. This is part of the reason I am working on custom models for Frigate. image

Wow, never seen an actual image representation of that before. That is crazy how disproportional it is.

@junior466 To be clear, I have a similar experience to you. It seems to me that dog pretty much requires 4 legs to be seen for it to be picked up

Read more comments on GitHub >

github_iconTop Results From Across the Web

Animals - Metal Gear Solid 5: The Phantom Pain Wiki Guide
Capture Chart ; Himalayan Brown Bear, 50000, Afghanistan ; Honey Badger, 50000, All ; Jehuty, 200000, Africa ; Karakul Sheep, 500, Afghanistan ;...
Read more >
Metal Gear Solid V: The Phantom Pain - All Animal ... - YouTube
This does, however, not always guarantee you capture the animal you want. ... Support this channel: http://www.powerpyx.com/ help / ...
Read more >
Found an orphaned or injured baby wild animal?
Capturing and transporting the animal ... Never handle an adult animal without first consulting a wildlife professional. Even small animals can injure you....
Read more >
What You Can Do for Wildlife | Animal Welfare Institute
Support genuine efforts that keep wildlife in the wild, such as ecotourism, photo safaris, or community-based humane education programs. Eat less meat, ...
Read more >
Guide :: [COMPLETE] Animal locations - Steam Community
Capture with CAPTURE CAGE. Common Raven. Ravens are so common as their name says. They are all around Afghanistan AND Africa as well....
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