11行roi多了括号,15行里要用roi=roi。
@kidswong999 大佬还是有错误
第16行,c.rect改为c.rect()
在这个代码基础上改:https://book.openmv.cc/example/09-Feature-Detection/find-rects.html