
openCV图像处理
买榴莲也用卷
这个作者很懒,什么都没留下…
展开
-
numpy 使用float报错提示:TypeError: float() argument must be a string or a number, not 'list'解决办法
numpy 使用float报错提示:TypeError: float() argument must be a string or a number, not 'list’解决办法问题出现的情景#图片移位img = cv.imread("D:\img9.jpg",1)cv.imshow("src",img)imginfo = img.shapeheight = imginfo[0]w...原创 2019-05-31 16:09:39 · 29843 阅读 · 1 评论 -
TypeError: Scalar value for argument 'color' is not numeric
使用openCV生成验证码时 cv2.putText出现TypeError: Scalar value for argument ‘color’ is not numeric这句话的意思是颜色参数不是不是数字类型,最后发现这句代码def randomcolor(): return (np.random.rand(0,255),np.random.randint(0,255),np.rando...原创 2019-06-06 11:00:48 · 3964 阅读 · 0 评论