logo

使用模板匹配数字识别时,如何导入一个目标数字

2021-11-04 17:03
V
eiug

使用模板匹配数字识别时,如何用摄像头识别一个数字将他设置为目标数字。

I
网红小智智 星瞳科技

https://book.openmv.cc/image/mulity-template-match.html

类似这个

template_0 = '0.pgm'
template_1 ='1.pmg'

if(匹配到 template_0)
    print(0)
if(匹配到 template_1)
    print(1)