Don't run bird classification if model is not downloaded yet

This commit is contained in:
Nicolas Mowen 2025-05-29 15:05:06 -06:00
parent c11ca42fb5
commit dd0effb9cb

View File

@ -97,6 +97,9 @@ class BirdRealTimeProcessor(RealTimeProcessorApi):
line = f.readline() line = f.readline()
def process_frame(self, obj_data, frame): def process_frame(self, obj_data, frame):
if not self.interpreter:
return
if obj_data["label"] != "bird": if obj_data["label"] != "bird":
return return