随笔分类 -  机器视觉

摘要:转载:http://blog.sina.com.cn/s/blog_80ce3a550102w26x.html Convert between Python tuple and list Convert between Python tuple, list and NumPy 1D array Co 阅读全文
posted @ 2017-04-26 11:36 lulu47 阅读(1572) 评论(0) 推荐(0)
摘要:1、基本操作capture = cv2.VideoCapture(0)ret, image = capture.read()cv2.imwrite("photo.jpg", image)capture.release()2、相机属性设置(读、写)set:cv2.VideoCapture.set(pr... 阅读全文
posted @ 2015-10-27 14:06 lulu47 阅读(2066) 评论(0) 推荐(0)
摘要:下载地址:官网:http://www.halcon.com/halcon/download/Halcon学习网:http://www.ihalcon.com/read.php?tid=56{ 最新license 地址:http://www.ihalcon.com/read-2832.html H... 阅读全文
posted @ 2015-10-14 13:26 lulu47 阅读(2997) 评论(0) 推荐(0)
摘要:src.ndim 数组的维数(即数组轴的个数),等于秩。如:3src.shape 数组的维度。如:(4208, 2368, 3)src.size 数组元素的总个数。如:29893632src.dtype 数组中元素类型的对象。如:uint8src.itemsize 数组中每个元素的字节大小。如:1 阅读全文
posted @ 2015-10-11 16:07 lulu47 阅读(1058) 评论(0) 推荐(0)
摘要:1、轮廓提取1 src = cv2.imread("***.jpg", cv2.IMREAD_COLOR)2 gray = cv2.cvtColor(src ,cv2.COLOR_BGR2GRAY)3 ret, binary = cv2.threshold(gray,100,255,cv2.THRE... 阅读全文
posted @ 2015-10-11 13:31 lulu47 阅读(7114) 评论(0) 推荐(0)