From 4b074a7044cc8cf72ba69bcaaa0cfb9025e48b1b Mon Sep 17 00:00:00 2001 From: iabdalkader Date: Sat, 4 Jun 2016 01:11:44 +0200 Subject: [PATCH] Update iris detection script. --- usr/examples/08-Eye-Tracking/iris_detection_2.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/usr/examples/08-Eye-Tracking/iris_detection_2.py b/usr/examples/08-Eye-Tracking/iris_detection_2.py index bfa44057b..5ccff5cbc 100644 --- a/usr/examples/08-Eye-Tracking/iris_detection_2.py +++ b/usr/examples/08-Eye-Tracking/iris_detection_2.py @@ -16,9 +16,12 @@ sensor.reset() sensor.set_contrast(3) sensor.set_gainceiling(16) -# Set resolution to VGA, the image will be binned to -# QVGA which gives more details with less data to process +# Set resolution to VGA. sensor.set_framesize(sensor.VGA) + +# Bin/Crop image to 200x100, which gives more details with less data to process +sensor.set_binning((220, 200, 200, 100)) + sensor.set_pixformat(sensor.GRAYSCALE) # Load Haar Cascade