Python-Opencv图像处理的一些方法
import cv2 as cv
import numpy as np
处理图像的像素
# 定义处理图片的函数
def access_pixel(image):
# 打印图片的高度,宽度以及通道数
# 图像其实就是像素组成的 ndarray
print(image.shape)
height = image.shape[0]
weight = image.shape[1]
channel = image.shape[2]
print("height:%s, weight:%s, channel:%s" % (height, weight, channel))
for row in range(height)