mirror of
https://github.com/koush/scrypted.git
synced 2026-06-13 05:50:25 +01:00
sdk: fixup clusterWorkerId to be optional
This commit is contained in:
@@ -687,6 +687,7 @@ class ObjectDetectionGeneratorResult(TypedDict):
|
||||
|
||||
class ObjectDetectionGeneratorSession(TypedDict):
|
||||
|
||||
clusterWorkerId: str
|
||||
settings: Any
|
||||
sourceId: str
|
||||
zones: list[ObjectDetectionZone]
|
||||
@@ -705,6 +706,7 @@ class ObjectDetectionModel(TypedDict):
|
||||
class ObjectDetectionSession(TypedDict):
|
||||
|
||||
batch: float # Denotes that this is the first sample in a batch of samples.
|
||||
clusterWorkerId: str
|
||||
settings: Any
|
||||
sourceId: str
|
||||
zones: list[ObjectDetectionZone]
|
||||
|
||||
@@ -1603,6 +1603,7 @@ export interface ObjectDetectionGeneratorSession {
|
||||
zones?: ObjectDetectionZone[];
|
||||
settings?: { [key: string]: any };
|
||||
sourceId?: string;
|
||||
clusterWorkerId?: ForkOptions['clusterWorkerId'];
|
||||
}
|
||||
export interface ObjectDetectionSession extends ObjectDetectionGeneratorSession {
|
||||
/**
|
||||
@@ -1683,7 +1684,7 @@ export interface VideoFrameGeneratorOptions extends ImageOptions {
|
||||
queue?: number;
|
||||
fps?: number;
|
||||
firstFrameOnly?: boolean;
|
||||
clusterWorkerId: ForkOptions['clusterWorkerId'];
|
||||
clusterWorkerId?: ForkOptions['clusterWorkerId'];
|
||||
}
|
||||
export interface VideoFrameGenerator {
|
||||
generateVideoFrames(mediaObject: MediaObject, options?: VideoFrameGeneratorOptions): Promise<AsyncGenerator<VideoFrame, void>>;
|
||||
|
||||
Reference in New Issue
Block a user