获取图片属性
import cv2
img = cv2.imread('img/image.png')
print img.shape
# (640, 640, 3)
print img.size
#...(im, thumb) #resize the original image into thumb
#cv.PyrDown(im, thumb)
cv.SaveImage("thumb.png", thumb....resize(img,None,fx=2, fy=2, interpolation = cv2.INTER_CUBIC)
#OR
height, width = img.shape[:2]
res...= cv2.resize(img,(2*width, 2*height), interpolation = cv2.INTER_CUBIC)
0x04....lower_blue = np.array([110,50,50])
upper_blue = np.array([130,255,255])
# 根据以上定义的蓝色的阈值得到蓝色的部分