摘要: import cv2 as cv import numpy as np # 数值运算:加减乘除 def shu_image(srcA,srcB): src = cv.add(srcA,srcB) # 加 cv.imshow('add',src) src = cv.subtract(srcA,srcB 阅读全文
posted @ 2021-08-12 20:32 索匣 阅读(58) 评论(0) 推荐(0) 编辑
摘要: import cv2 as cv import numpy as np # 色彩空间转换 def color_space_demo(image): # RGB转换为gray gray = cv.cvtColor(image,cv.COLOR_BGR2GRAY) cv.imshow("gray",gr 阅读全文
posted @ 2021-08-12 20:04 索匣 阅读(90) 评论(0) 推荐(0) 编辑