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