From 2288ba137b8e7910e5c557224f970fa5fd04823c Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Sat, 19 Nov 2022 10:14:39 -0800 Subject: [PATCH] opencv: fix wierd buffering bug --- plugins/opencv/package-lock.json | 4 ++-- plugins/opencv/package.json | 2 +- plugins/tensorflow-lite/src/pipeline/__init__.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/opencv/package-lock.json b/plugins/opencv/package-lock.json index d659c402f..c6db5ed7c 100644 --- a/plugins/opencv/package-lock.json +++ b/plugins/opencv/package-lock.json @@ -1,12 +1,12 @@ { "name": "@scrypted/opencv", - "version": "0.0.49", + "version": "0.0.55", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@scrypted/opencv", - "version": "0.0.49", + "version": "0.0.55", "devDependencies": { "@scrypted/sdk": "file:../../sdk" } diff --git a/plugins/opencv/package.json b/plugins/opencv/package.json index c4a81eace..703158a30 100644 --- a/plugins/opencv/package.json +++ b/plugins/opencv/package.json @@ -35,5 +35,5 @@ "devDependencies": { "@scrypted/sdk": "file:../../sdk" }, - "version": "0.0.49" + "version": "0.0.55" } diff --git a/plugins/tensorflow-lite/src/pipeline/__init__.py b/plugins/tensorflow-lite/src/pipeline/__init__.py index c47a4892a..5216e6d14 100644 --- a/plugins/tensorflow-lite/src/pipeline/__init__.py +++ b/plugins/tensorflow-lite/src/pipeline/__init__.py @@ -249,11 +249,11 @@ def create_pipeline( sink = create_pipeline_sink( appsink_name, appsink_size, pixel_format, crop=crop) if crop: - PIPELINE = """ {video_input} ! queue leaky=downstream max-size-buffers=0 ! videoconvert name=videoconvert ! aspectratiocrop aspect-ratio=1/1 ! videoscale name=videoscale + PIPELINE = """ {video_input} ! queue leaky=downstream max-size-buffers=0 ! videoconvert name=videoconvert ! aspectratiocrop aspect-ratio=1/1 ! videoscale name=videoscale ! queue leaky=downstream max-size-buffers=0 ! {sink} """ else: - PIPELINE = """ {video_input} ! queue leaky=downstream max-size-buffers=0 ! videoconvert name=videoconvert ! videoscale name=videoscale + PIPELINE = """ {video_input} ! queue leaky=downstream max-size-buffers=0 ! videoconvert name=videoconvert ! videoscale name=videoscale ! queue leaky=downstream max-size-buffers=0 ! {sink} """ pipeline = PIPELINE.format(video_input=video_input, sink=sink)