OpenCV3
SpecYue
学习自记录
展开
-
opencv入门---opencv 3
图像亮度和对比对操作 import numpy as np import cv2 as cv def light_constrat_demo(): src = cv.imread("./mm.jpg") h, w = src.shape[:2] empty = np.zeros((h // 2, w // 2, 3), src.dtype) src = cv.r...原创 2018-11-07 10:29:35 · 207 阅读 · 0 评论 -
opencv3入门---opencv 1
创建正方形灰度图像,彩色图像,分割图像 import cv2 import numpy as np import os # make an array of 120000 random bytes randomByteArray = bytearray(os.urandom(120000)) flatNumpyArray = np.array(randomByteArray) # conver...原创 2018-11-05 11:01:00 · 158 阅读 · 0 评论 -
opencv入门--opencv2
读取图片 import cv2 as cv src=cv.imread("./3.jpg",cv.IMREAD_GRAYSCALE) cv.namedWindow("input",cv.WINDOW_AUTOSIZE) cv.imshow("input",src) cv.waitKey(0) cv.destroyAllWindows() 几种创建初始图像的方法 import cv2 as cv...原创 2018-11-05 19:05:39 · 319 阅读 · 0 评论