opencv 简单轮廓绘制、外接矩形、外接旋转矩形、外接圆、轮廓近似,可倾斜,非矩形、凸包、4极点检测、
importcv2importnumpyasnpdefcv_show(neme,img):cv2.imshow(neme,img)cv2.waitKey(0)cv2.destroyAllWindows()#图像轮廓img=cv2.imread('1.png')#灰度图gray=cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)#二值处理ret,thresh=cv2.thres