mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-07 11:45:24 +03:00
avoid import error for non-rk builds
This commit is contained in:
parent
63233a5830
commit
aafd250ce2
@ -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:
|
||||||
|
|
||||||
|
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