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
172 stars 24 forks source link

Ensure non ambiguity of sci_names https://github.com/Nachtzuster/BirdNET-Pi/issues/186 #187

Closed alexbelgium closed 2 months ago

alexbelgium commented 2 months ago

Solve https://github.com/Nachtzuster/BirdNET-Pi/issues/186

Tested

Nachtzuster commented 2 months ago

That is a pretty silly bug :-) Since get_sci_name() is based on get_com_en_name(), that one should probably be fixed too, I guess (though I'm not sure the bug could easily be triggered there)

Any reason a straight compare could not be used? if ($label === $com_name) ....

alexbelgium commented 2 months ago

You're right, this is indeed much more logical. Thanks