OpenCV Scalar value for argument ‘color‘ is not numeric错误处理
importcv2cur_color=np.array([128,0,128]).astype(np.uint8)cv2.polylines(cvImage,[ndata],isClosed=True,color=cur_color,thickness=thickness)以上代码在OpenCV中函数的color参数会触发错误:OpenCVScalarvalueforargument‘color‘