当前位置:网站首页>cv2.imread()
cv2.imread()
2022-07-31 05:15:00 【Cassiel_cx】
函数解析
cv2.imread(filename, flags = None)
filename:读取图片的路径
flags:(1) 1,默认值,表示加载彩色图片;(2) 0,表示加载灰度图片;(3) -1,表示加载包括alpha通道的图片。
使用示例
import cv2
img_color = cv2.imread('C:/Users/15989/Desktop/11.jpeg')
img_gray = cv2.imread('C:/Users/15989/Desktop/11.jpeg', 0)
cv2.imshow('color', img_color)
cv2.waitKey()
cv2.imshow('gray', img_gray)
cv2.waitKey(1)输出图像


边栏推荐
- How MySQL - depots table?A look at will understand
- 腾讯云轻量服务器删除所有防火墙规则
- Markdown help documentation
- A simple bash to powershell case
- SQLite 查询表中每天插入的数量
- For penetration testing methods where the output point is a timestamp (take Oracle database as an example)
- MySQL compressed package installation, fool teaching
- 禅道安装及使用教程
- break and continue exit in js
- understand js operators
猜你喜欢

Xiaomi mobile phone SMS location service activation failed

MySQL高级SQL语句(二)

微信小程序源码获取与反编译方式

What is an EVM Compatible Chain?

腾讯云GPU桌面服务器驱动安装

MySQL compressed package installation, fool teaching

Principle analysis of famous website msdn.itellyou.cn

For penetration testing methods where the output point is a timestamp (take Oracle database as an example)

著名网站msdn.itellyou.cn原理分析

MySQL高级学习笔记
随机推荐
cocos2d-x-3.x 修改和纪录
Gradle sync failed: Uninitialized object exists on backward branch 142
cocos2d-x-3.2 Physics
小米手机短信定位服务激活失败
微信小程序源码获取与反编译方式
VS通过ODBC连接MYSQL(二)
flutter arr 依赖
"limit" query in Oracle database
Build DVWA with phpstudy
DeFi Token in the project management
VS connects to MYSQL through ODBC (1)
Chinese garbled solution in UTF-8 environment in Powershell
[Cloud native] Simple introduction and use of microservice Nacos
朴素贝叶斯文本分类(代码实现)
微信小程序启动优化
Markdown help documentation
cocos2d-x 实现跨平台的目录遍历
qt:cannot open C:\Users\XX\AppData\Local\Temp\main.obj.15576.16.jom for write
360 加固 file path not exists.
网页截图与反向代理