mirror of
https://github.com/koush/scrypted.git
synced 2026-06-20 16:40:30 +01:00
opencv/sdk: fix typing.Union missing
This commit is contained in:
2
external/werift
vendored
2
external/werift
vendored
Submodule external/werift updated: 91be7cf469...140faa891d
4
plugins/opencv/package-lock.json
generated
4
plugins/opencv/package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "@scrypted/opencv",
|
||||
"version": "0.0.76",
|
||||
"version": "0.0.79",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@scrypted/opencv",
|
||||
"version": "0.0.76",
|
||||
"version": "0.0.79",
|
||||
"devDependencies": {
|
||||
"@scrypted/sdk": "file:../../sdk"
|
||||
}
|
||||
|
||||
@@ -36,5 +36,5 @@
|
||||
"devDependencies": {
|
||||
"@scrypted/sdk": "file:../../sdk"
|
||||
},
|
||||
"version": "0.0.76"
|
||||
"version": "0.0.79"
|
||||
}
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
from __future__ import annotations
|
||||
from enum import Enum
|
||||
try:
|
||||
from typing import TypedDict, Union
|
||||
from typing import TypedDict
|
||||
except:
|
||||
from typing_extensions import TypedDict, Union
|
||||
from typing import Any
|
||||
from typing import Callable
|
||||
from typing_extensions import TypedDict
|
||||
from typing import Union, Any, Callable
|
||||
|
||||
from .other import *
|
||||
|
||||
|
||||
@@ -267,11 +267,10 @@ class ${td.name}(TypedDict):
|
||||
const pythonTypes = `from __future__ import annotations
|
||||
from enum import Enum
|
||||
try:
|
||||
from typing import TypedDict, Union
|
||||
from typing import TypedDict
|
||||
except:
|
||||
from typing_extensions import TypedDict, Union
|
||||
from typing import Any
|
||||
from typing import Callable
|
||||
from typing_extensions import TypedDict
|
||||
from typing import Union, Any, Callable
|
||||
|
||||
from .other import *
|
||||
|
||||
|
||||
@@ -1330,7 +1330,7 @@ export interface ObjectDetectionZone {
|
||||
* E.g. TensorFlow, OpenCV, or a Coral TPU.
|
||||
*/
|
||||
export interface ObjectDetection {
|
||||
generateObjectDetections(videoFrames: AsyncGenerator<VideoFrame & MediaObject>, session: ObjectDetectionGeneratorSession): Promise<AsyncGenerator<ObjectDetectionGeneratorResult>>;
|
||||
generateObjectDetections(videoFrames: AsyncGenerator<VideoFrame & MediaObject, void>, session: ObjectDetectionGeneratorSession): Promise<AsyncGenerator<ObjectDetectionGeneratorResult, void>>;
|
||||
detectObjects(mediaObject: MediaObject, session?: ObjectDetectionSession): Promise<ObjectsDetected>;
|
||||
getDetectionModel(settings?: { [key: string]: any }): Promise<ObjectDetectionModel>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user