sipeed / MaixPy-v1_scripts

micropython scripts for MaixPy
https://maixpy.sipeed.com
MIT License
626 stars 431 forks source link

🐛 Fix bug with Index Error #73

Closed AminovE99 closed 4 years ago

AminovE99 commented 4 years ago

Please provide enough information so that others can review your pull request:

This pull request fix bug with index Error. I don't know why, but kpu.face_compare() can return you number more, than 10. (#)

Signed-off-by: emil amionv99@gmail.com

alexeiSP commented 4 years ago

One of the cause of the error - contacts bounce of the button. Also when button pressed more than 10 times, there is "out of range" error, because at next press (11th) we will have lenght of "record_ftrs" = 11, but lenght of "names" is only 10.

Neutree commented 4 years ago

thanks