From 5c50d9948c00ef826525db0c5bc4e0607572d216 Mon Sep 17 00:00:00 2001 From: iabdalkader Date: Fri, 12 Jan 2018 01:30:36 +0200 Subject: [PATCH] Update find numbers script. --- usr/examples/09-Feature-Detection/find_numbers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/examples/09-Feature-Detection/find_numbers.py b/usr/examples/09-Feature-Detection/find_numbers.py index 5c45fed22..3871d915f 100644 --- a/usr/examples/09-Feature-Detection/find_numbers.py +++ b/usr/examples/09-Feature-Detection/find_numbers.py @@ -15,6 +15,6 @@ while(True): # NOTE: Uncomment to detect dark numbers on white background # img.invert() out = img.find_number(roi=(img.width()//2-14, img.height()//2-14, 28, 28)) - img.draw_rectangle((img.width()//2-15, img.height()//2-15, 30, 30), color=(255, 255, 255)) + img.draw_rectangle((img.width()//2-15, img.height()//2-15, 30, 30)) if out[1] > 5: # Confidence level print("Number: %d Confidence: %0.2f" %(out[0], out[1]))