Ensure there is no NameError when processing

This commit is contained in:
Nicolas Mowen 2025-12-17 14:17:29 -07:00
parent 21dc6a6248
commit 271f5cf9d5

View File

@ -251,6 +251,8 @@ class CustomStateClassificationProcessor(RealTimeProcessorApi):
except Exception:
logger.warning("Failed to resize image for state classification")
return
else:
resized_frame = frame
if self.interpreter is None:
# When interpreter is None, always save (score is 0.0, which is < 1.0)