📅  最后修改于: 2022-03-11 14:59:38.679000             🧑  作者: Mango
new_img = cv2.fillPoly(blank_img,[cnt],color =(255,255,255))
I was facing error in this line.
so The solution is make sure "cnt" must be int not float.
CHANGES:
cnt = np.array([[50,50], [50,150], [150,150], [150,50]],dtype=np.int32)