Python OpenCV TypeError: Layout of the output array img is incompatible with cv
参考PythonOpencv根据点来填充区域写出如下代码:#-*-coding:utf-8-*-__author__='ShawDa'importcv2importnumpyasnpimg=np.full((512,512,1),255)points=[[1,142],[142,142],[142,300],[1,142]]res=cv2.fillPoly(img,[np.array(points