我在下面定义了我的代码,我的嘴不是空的:
mouth=mouthCascade.detectMultiScale(roiColor1,1.3, 5)
rectList, weights = cv2.groupRectangles(np.array(mouth).tolist(), 1, 0.2)
print rectList
for (mx,my,mw,mh) in rectList:
cv2.rectangle(img, (mx,my), (mx+mw, my+mh), (0,45,55), 5)
但当我打印rectList
时,我只得到()()()()()()...
有人能帮帮我吗?当我把嘴当作一个论点的时候?我得到一个错误,所以我把它转换成了一个列表。在
目前没有回答
相关问题 更多 >
编程相关推荐