Python 用 OpenCV 畫矩形 (4)

利用 OpenCV 自帶的 rectangle() 函數畫矩形 並顯示,其函數聲明如下: cv2.rectangle(img, pt1, pt2, color[, thickness[, lineType[, shift]]]) img:要畫的圓所在的矩形或圖像 pt1:矩形左上角的點 pt2:矩形右下角的點 color:線條顏色,如 (0, 0, 255) 紅色,BGR thickness:線條
相關文章
相關標籤/搜索