mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-13 14:45:25 +03:00
Catch hailo initialization error (#12558)
This commit is contained in:
parent
d0e2f76399
commit
430e2bc27a
@ -3,17 +3,22 @@ import os
|
|||||||
import urllib.request
|
import urllib.request
|
||||||
|
|
||||||
import numpy as np
|
import numpy as np
|
||||||
from hailo_platform import (
|
|
||||||
HEF,
|
try:
|
||||||
ConfigureParams,
|
from hailo_platform import (
|
||||||
FormatType,
|
HEF,
|
||||||
HailoRTException,
|
ConfigureParams,
|
||||||
HailoStreamInterface,
|
FormatType,
|
||||||
InferVStreams,
|
HailoRTException,
|
||||||
InputVStreamParams,
|
HailoStreamInterface,
|
||||||
OutputVStreamParams,
|
InferVStreams,
|
||||||
VDevice,
|
InputVStreamParams,
|
||||||
)
|
OutputVStreamParams,
|
||||||
|
VDevice,
|
||||||
|
)
|
||||||
|
except ModuleNotFoundError:
|
||||||
|
pass
|
||||||
|
|
||||||
from pydantic import BaseModel, Field
|
from pydantic import BaseModel, Field
|
||||||
from typing_extensions import Literal
|
from typing_extensions import Literal
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user