#Frigate - Stationary Detection Flapping

1 messages · Page 1 of 1 (latest)

bronze kayak
#

I created two zones in my garage for detecting if our cars are in the garage. The detection works fairly well but not quite reliable enough. The cars are recognized at between 60% and 90% according to the debug screen. However, the values for vehicle count in Home Assistant for the two zones are constantly flapping from 0 to 1.

I tried adjusting the threshold, and also tinkered with the "stationary" and "max_disappeared" values. But it doesn't seem to help. Anyone have any suggestions as to what I'm doing wrong?

Config: https://pastebin.com/g8iL6MZU

stray path
#

it would be best to see the debug view, but this is not too uncommon when using a less performant model as they are not trained on security camera images and have a hard time with the perspectives common with garage cameras.

bronze kayak
#

Here's a typical shot of the debug with one car present. The car is getting a score between of 64% and 93%. I haven't seen it drop much lower than that, and its definitely above the threshold I set in the YAML. But every few minutes frigate sets the count to 0. Then back to 1 a second or so later.

I have a custom model from frigate+ that's been trained on a decent number of shots from this camera/position

stray path
#

hmm, the score right in the image is 64%, the scenario in general is quite difficult

#

what is your use case for the sensor?

bronze kayak
#

The use case is that I'd like to know when the cars are in their parking spots. The mini cooper's onboard telemetry only updates HA every 20 minutes... The add on "Bouncy" devices i have in the other cars update much more frequently and I use it to make sure the front door is locked when someone leaves the house. I'd like to be able to do the same with the mini in a more timely manner

stray path
#

can tell because the areas are also different

bronze kayak
#

So it is, i updated my post

#

thrreshold in the yaml is 40% so its still abouve the threshold

stray path
#

what is min score though?

bronze kayak
#

min score?

stray path
#

theshold only decices when an object becomes a true positive at which point it is not used

#

min_score is what decides what objects are immediately filtered out

#

defaults to 0.5 which in general is advisable otherwise there will be a lot of false positives

bronze kayak
#

! i was not aware of min_score

#

so it will be default then, as i have not changed it since i didnt knwo it existed 🙂

#

but still 0.5 is lower than the 64% so shouldnt it still count?

stray path
#

yes it will

#

can check the object lifecycle view of the explore page in Frigate UI

#

see when the car was detected

bronze kayak
#

Hmmm never looked at that before, wasnt aware of it. I'll have to go over it a bit later tonight and see what I can see