Ai
1 Star 0 Fork 0

杨雪锋/opencv-python-5

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
c3-8.py 381 Bytes
一键复制 编辑 原始数据 按行查看 历史
杨雪锋 提交于 2023-04-14 21:45 +08:00 . update ch3
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import cv2 as cv
import numpy as np
img = cv.imread ("cumt.jpg")
#拆分通道
B = img[ : , : , 0 ]
b,g,r=cv.split(img)
cv.imshow('img',img)
cv.imshow('B',B)
cv.imshow('b',b)
cv.waitKey(0)
cv.destroyAllWindows()
# 为了输出图片
import sys
sys.path.append('..\\utils')
import utils
utils.show_img([img,B,b],"fig3-5")
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/hopeasy/opencv-python-5.git
git@gitee.com:hopeasy/opencv-python-5.git
hopeasy
opencv-python-5
opencv-python-5
master

搜索帮助