451xxx

2020年9月25日

自学python-opencv(3)超大图像二值化

摘要: import cv2import numpy as npdef large_image_binary(images): #超大图像二值化 print(images.shape) cw=128 ch=128 h,w=images.shape[0:2] gray=cv2.cvtColor(images, 阅读全文

posted @ 2020-09-25 22:27 451xxx 阅读(43) 评论(0) 推荐(0) 编辑

自学python-opencv(2)图像二值化

摘要: import cv2import numpy as npdef threshold_demo(image): gray=cv2.cvtColor(image,cv2.COLOR_BGR2GRAY) ret,binary=cv2.threshold(gray,127,255,cv2.THRESH_BI 阅读全文

posted @ 2020-09-25 14:53 451xxx 阅读(159) 评论(0) 推荐(0) 编辑

2020年9月24日

自学python-opencv(1)模式识别

摘要: import cv2import numpy as npdef template_demo(): tpl=cv2.imread('./images/ting.png') target=cv2.imread("./images/timg.bmp") cv2.imshow("template image 阅读全文

posted @ 2020-09-24 18:08 451xxx 阅读(141) 评论(0) 推荐(0) 编辑

导航

/* 看板娘 */