forked from Github/frigate
Catch hailo initialization error (#12558)
This commit is contained in:
@@ -3,7 +3,9 @@ import os
|
|||||||
import urllib.request
|
import urllib.request
|
||||||
|
|
||||||
import numpy as np
|
import numpy as np
|
||||||
from hailo_platform import (
|
|
||||||
|
try:
|
||||||
|
from hailo_platform import (
|
||||||
HEF,
|
HEF,
|
||||||
ConfigureParams,
|
ConfigureParams,
|
||||||
FormatType,
|
FormatType,
|
||||||
@@ -13,7 +15,10 @@ from hailo_platform import (
|
|||||||
InputVStreamParams,
|
InputVStreamParams,
|
||||||
OutputVStreamParams,
|
OutputVStreamParams,
|
||||||
VDevice,
|
VDevice,
|
||||||
)
|
)
|
||||||
|
except ModuleNotFoundError:
|
||||||
|
pass
|
||||||
|
|
||||||
from pydantic import BaseModel, Field
|
from pydantic import BaseModel, Field
|
||||||
from typing_extensions import Literal
|
from typing_extensions import Literal
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user