From 32c0598e86a9b343b64e51aacfb563ec6215c997 Mon Sep 17 00:00:00 2001 From: "Kwabena W. Agyeman" Date: Sat, 31 Aug 2024 20:24:23 -0400 Subject: [PATCH] scripts/examples: Add back windowing to example. --- .../03-Machine-Learning/00-TensorFlow/tf_object_detection.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/examples/03-Machine-Learning/00-TensorFlow/tf_object_detection.py b/scripts/examples/03-Machine-Learning/00-TensorFlow/tf_object_detection.py index 6d9e1f9e9..3d896c267 100644 --- a/scripts/examples/03-Machine-Learning/00-TensorFlow/tf_object_detection.py +++ b/scripts/examples/03-Machine-Learning/00-TensorFlow/tf_object_detection.py @@ -16,6 +16,7 @@ import image sensor.reset() # Reset and initialize the sensor. sensor.set_pixformat(sensor.RGB565) # Set pixel format to RGB565 (or GRAYSCALE) sensor.set_framesize(sensor.QVGA) # Set frame size to QVGA (320x240) +sensor.set_windowing((240, 240)) # Set 240x240 window. sensor.skip_frames(time=2000) # Let the camera adjust. min_confidence = 0.4