Check for None in keypoints script.
@@ -18,6 +18,7 @@ sensor.skip_frames(time = 2000)
sensor.set_auto_gain(False, value=100)
def draw_keypoints(img, kpts):
+ if kpts:
print(kpts)
img.draw_keypoints(kpts)
img = sensor.snapshot()
