https://book.openmv.cc/image/mulity-template-match.html
用这个代码。
你的代码同时导入太多模版,内存不够了。
最好用OpenMV4或者OpenMV4 Plus,OpenMV3内存太小了。