mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-26 19:06:11 +01:00
avoid import error for non-rk builds (#8454)
* avoid import error for non-rk builds * linter
This commit is contained in:
parent
63233a5830
commit
65e3e67a83
@ -4,7 +4,15 @@ from typing import Literal
|
|||||||
import cv2
|
import cv2
|
||||||
import cv2.dnn
|
import cv2.dnn
|
||||||
import numpy as np
|
import numpy as np
|
||||||
from hide_warnings import hide_warnings
|
|
||||||
|
try:
|
||||||
|
from hide_warnings import hide_warnings
|
||||||
|
except: # noqa: E722
|
||||||
|
|
||||||
|
def hide_warnings(func):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
from pydantic import Field
|
from pydantic import Field
|
||||||
|
|
||||||
from frigate.detectors.detection_api import DetectionApi
|
from frigate.detectors.detection_api import DetectionApi
|
||||||
|
Loading…
Reference in New Issue
Block a user