Python 中可以使用OpenCV 库进行颜色辨识。 ... boundingRect(c) cv2.rectangle(img,(x,y),(x+w,y+h),(0,255,0),2) # 显示图片 cv2.imshow('img',img) cv2.
確定! 回上一頁