mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-01-22 20:18:30 +03:00
Ensure there is no NameError when processing
This commit is contained in:
parent
21dc6a6248
commit
271f5cf9d5
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user