mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-11-19 03:53:03 +03:00
Ensure there is no NameError when processing
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user