From ad812b410ab41b51f972b502ff12a7e442f70bb2 Mon Sep 17 00:00:00 2001 From: iabdalkader Date: Fri, 3 Jun 2016 23:10:47 +0200 Subject: [PATCH] Update iris detection example to use binning. --- usr/examples/08-Eye-Tracking/iris_detection_2.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/usr/examples/08-Eye-Tracking/iris_detection_2.py b/usr/examples/08-Eye-Tracking/iris_detection_2.py index e8eee34bb..10a1f2662 100644 --- a/usr/examples/08-Eye-Tracking/iris_detection_2.py +++ b/usr/examples/08-Eye-Tracking/iris_detection_2.py @@ -15,7 +15,10 @@ sensor.reset() # Sensor settings sensor.set_contrast(1) sensor.set_gainceiling(16) -sensor.set_framesize(sensor.QQVGA) + +# Set resolution to VGA, the image will be binned to +# QVGA which gives more details with less data to process +sensor.set_framesize(sensor.VGA) sensor.set_pixformat(sensor.GRAYSCALE) # Load Haar Cascade