mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
fix color of best image
This commit is contained in:
parent
42f666491a
commit
0b8f2cadf3
@ -127,6 +127,7 @@ def main():
|
||||
best_frame = cameras[camera_name].get_best(label)
|
||||
if best_frame is None:
|
||||
best_frame = np.zeros((720,1280,3), np.uint8)
|
||||
best_frame = cv2.cvtColor(best_frame, cv2.COLOR_RGB2BGR)
|
||||
ret, jpg = cv2.imencode('.jpg', best_frame)
|
||||
response = make_response(jpg.tobytes())
|
||||
response.headers['Content-Type'] = 'image/jpg'
|
||||
|
Loading…
Reference in New Issue
Block a user