mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-16 03:52:09 +03:00
Fix classification cropping
This commit is contained in:
parent
620db568b0
commit
323c237c6d
@ -258,9 +258,9 @@ class CustomObjectClassificationProcessor(RealTimeProcessorApi):
|
||||
x:x2,
|
||||
]
|
||||
|
||||
if frame.shape != (224, 224):
|
||||
if crop.shape != (224, 224):
|
||||
try:
|
||||
frame = cv2.resize(frame, (224, 224))
|
||||
crop = cv2.resize(crop, (224, 224))
|
||||
except Exception:
|
||||
logger.warning("Failed to resize image for state classification")
|
||||
return
|
||||
|
||||
Loading…
Reference in New Issue
Block a user