mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Check for None in keypoints script.
This commit is contained in:
parent
833bc04f78
commit
be902e1271
@ -18,10 +18,11 @@ sensor.skip_frames(time = 2000)
|
||||
sensor.set_auto_gain(False, value=100)
|
||||
|
||||
def draw_keypoints(img, kpts):
|
||||
print(kpts)
|
||||
img.draw_keypoints(kpts)
|
||||
img = sensor.snapshot()
|
||||
time.sleep(1000)
|
||||
if kpts:
|
||||
print(kpts)
|
||||
img.draw_keypoints(kpts)
|
||||
img = sensor.snapshot()
|
||||
time.sleep(1000)
|
||||
|
||||
kpts1 = None
|
||||
# NOTE: uncomment to load a keypoints descriptor from file
|
||||
|
||||
Loading…
Reference in New Issue
Block a user