From 32211bcd4424cd205650373a57e170107b7eee76 Mon Sep 17 00:00:00 2001 From: iabdalkader Date: Fri, 16 Jun 2017 23:58:35 +0200 Subject: [PATCH] Remove test draw keypoints. * Draw keypoints called with the wrong args. --- usr/examples/03-Drawing/crazy_drawing.py | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/usr/examples/03-Drawing/crazy_drawing.py b/usr/examples/03-Drawing/crazy_drawing.py index 983f4f729..8db1beb09 100644 --- a/usr/examples/03-Drawing/crazy_drawing.py +++ b/usr/examples/03-Drawing/crazy_drawing.py @@ -66,6 +66,7 @@ while(True): w = (pyb.rng() % img.width()) h = (pyb.rng() % img.height()) img.draw_rectangle([x, y, w, h]) + # Test Draw Circle sensor.set_pixformat(sensor.GRAYSCALE) for i in range(10): @@ -115,21 +116,3 @@ while(True): x = (pyb.rng() % (2*img.width())) - (img.width()//2) y = (pyb.rng() % (2*img.height())) - (img.height()//2) img.draw_cross(x, y) - - # Test Draw Keypoints - sensor.set_pixformat(sensor.GRAYSCALE) - for i in range(10): - img = sensor.snapshot() - for j in range(100): - x = (pyb.rng() % (2*img.width())) - (img.width()//2) - y = (pyb.rng() % (2*img.height())) - (img.height()//2) - a = (pyb.rng() % (2*math.pi)) - img.draw_keypoints([(x, y, a)]) - sensor.set_pixformat(sensor.RGB565) - for i in range(10): - img = sensor.snapshot() - for j in range(100): - x = (pyb.rng() % (2*img.width())) - (img.width()//2) - y = (pyb.rng() % (2*img.height())) - (img.height()//2) - a = (pyb.rng() % (2*math.pi)) - img.draw_keypoints([(x, y, a)])