mirror of
https://github.com/koush/scrypted.git
synced 2026-06-11 21:30:29 +01:00
Merge branch 'main' of github.com:koush/scrypted
This commit is contained in:
@@ -417,7 +417,7 @@ class ObjectDetectionMixin extends SettingsMixinDeviceBase<VideoCamera & Camera
|
||||
const frameGenerator = this.model.decoder ? undefined : this.getFrameGenerator();
|
||||
for await (const detected of
|
||||
await sdk.connectRPCObject(
|
||||
await this.objectDetection.generateObjectDetections(
|
||||
await this.objectDetection.generateObjectDetections(
|
||||
await this.createFrameGenerator(
|
||||
frameGenerator,
|
||||
options,
|
||||
@@ -610,7 +610,7 @@ class ObjectDetectionMixin extends SettingsMixinDeviceBase<VideoCamera & Camera
|
||||
this.detections.set(detectionId, detectionInput);
|
||||
setTimeout(() => {
|
||||
this.detections.delete(detectionId);
|
||||
}, 2000);
|
||||
}, 10000);
|
||||
}
|
||||
|
||||
async getNativeObjectTypes(): Promise<ObjectDetectionTypes> {
|
||||
|
||||
Reference in New Issue
Block a user