opencv--外接矩形(圓)

輪廓外接矩形函數--Rect   boundingRect(InputArray Point) 函數的輸入類型是Point類型的vector或Mat,返回類型是Rect對象; 代碼 void main() { Mat srcImage=imread("12.jpg"); Mat tempImage=srcImage.clone();//做圖像備份,因爲findcontours會改變原圖 imsho
相關文章
相關標籤/搜索