mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Update find numbers script.
This commit is contained in:
parent
fd989c76dc
commit
5c50d9948c
@ -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]))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user