opencv 矩形边框 boundingRect minAreaRect approxPolyDP
#include"iostream"#include"opencv2/opencv.hpp"usingnamespacestd;usingnamespacecv;intmain(){Matimg,temp,temp2,dst,dstbin,distancetransform,rel,rel2,gary,_threshold,temp3;img=imread("shou.jpg");resize(i