繪制輪廓 cv2.drawContours(image, contours, contourIdx, color[, thickness[, lineType[, hierarchy[, maxLevel[, offset]]]) image:原圖像 contours:作為Python列表傳遞的輪廓 contourIdx:輪廓索引(在繪制單個輪廓時很有用。繪制所有輪廓,傳遞-1) 要繪制圖像中的所有輪廓: cv.drawContours(img,contours,-1,(0...
www.dbjr.com.cn/article/1644...htm 2025-5-29