mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-26 19:06:11 +01:00
Fix linter error (#7428)
This commit is contained in:
parent
fbed3fbb8b
commit
afe3b5dd3d
@ -27,7 +27,7 @@ def get_jpg_bytes(image: ndarray, max_dim: int, quality: int) -> bytes:
|
|||||||
|
|
||||||
ret, jpg = cv2.imencode(".jpg", original, [int(cv2.IMWRITE_JPEG_QUALITY), quality])
|
ret, jpg = cv2.imencode(".jpg", original, [int(cv2.IMWRITE_JPEG_QUALITY), quality])
|
||||||
jpg_bytes = jpg.tobytes()
|
jpg_bytes = jpg.tobytes()
|
||||||
return jpg_bytes if type(jpg_bytes) is bytes else b""
|
return jpg_bytes if isinstance(jpg_bytes, bytes) else b""
|
||||||
|
|
||||||
|
|
||||||
class PlusApi:
|
class PlusApi:
|
||||||
|
Loading…
Reference in New Issue
Block a user