avoid import error for non-rk builds (#8454)

* avoid import error for non-rk builds

* linter
This commit is contained in:
Blake Blackshear 2023-11-04 12:56:35 +00:00 committed by GitHub
parent 63233a5830
commit 65e3e67a83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
try:
from hide_warnings import hide_warnings 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