Nachtzuster / BirdNET-Pi

A realtime acoustic bird classification system for the Raspberry Pi 5, 4B 3B+ 0W2 and more. Built on the TFLite version of BirdNET.
https://birdnetpi.com
Other
169 stars 24 forks source link

Fix : heatmap for maxconf #226

Closed alexbelgium closed 1 week ago

alexbelgium commented 2 weeks ago

Hi, while playing with the daily plot, I found what I think is a bug.

The heatmap does not show the maxconf of a species (as the code indicates should be) but the confidence of the latest detection. If we build a dictionary first it solves the issue and only show the max confidence

For example my troglodyte is at max conf of 100% for that day.

Before : image

After : image

Nachtzuster commented 1 week ago

I guess so? I can't say I understand daily_plot.py very well :smile:

alexbelgium commented 1 week ago

Thanks! Ahah I don't understand it that much either but I had noticed that the colors where changing too often for what should be a max conf... I did some trials and errors until I found the way that had the expected bahavior with the minimum code change...