def findpathlist(ed,showPics=True):
''' generate list of pathes '''
pathlist=[]
w,l=ed.shape
for x in range(l):
for y in range(w):
if ed[y][x] :
path=runpath(ed,x,y)
if len(path)>4:
if showPics:
cv2.imshow('remaining points',ed)
cv2.waitKey(1)
Gui.updateGui()
pathlist.append(path)
return pathlist
评论列表
文章目录