当前位置:网站首页>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)
输出图像
边栏推荐
- 数据库 | SQL查询进阶语法
- mysql password modification method in Linux (pro-test available)
- MySql to create data tables
- [Cloud native] Simple introduction and use of microservice Nacos
- Principle analysis of famous website msdn.itellyou.cn
- [Cloud Native] What should I do if SQL (and stored procedures) run too slowly?
- ERROR Error: No module factory availabl at Object.PROJECT_CONFIG_JSON_NOT_VALID_OR_NOT_EXIST ‘Error
- MySQL错误-this is incompatible with sql_mode=only_full_group_by完美解决方案
- Understanding of objects and functions in js
- What is an EVM Compatible Chain?
猜你喜欢
Tencent Cloud GPU Desktop Server Driver Installation
通信原理——纠错编码 | 汉明码(海明码)手算详解
为数学而歌之伯努利家族
UiBot存在已打开的MicrosoftEdge浏览器,无法执行安装
The browser looks for events bound or listened to by js
QT VS中双击ui文件无法打开的问题
qt:cannot open C:\Users\某某某\AppData\Local\Temp\main.obj.15576.16.jom for write
The server time zone value ‘й‘ is unrecognized or represents more than one time zone
VS通过ODBC连接MYSQL(一)
Principle analysis of famous website msdn.itellyou.cn
随机推荐
[Cloud Native] What should I do if SQL (and stored procedures) run too slowly?
Build vulhub vulnerability shooting range on kali
NFTs: The Heart of Digital Ownership
浏览器查找js绑定或者监听的事件
jenkins +miniprogram-ci upload WeChat applet with one click
Tencent Cloud GPU Desktop Server Driver Installation
TransactionTemplate transaction programmatic way
纯shell实现文本替换
Filter out egrep itself when using ps | egrep
MySQL面试题大全(陆续更新)
configure:error no SDL library found
unicloud 发布后小程序提示连接本地调试服务失败,请检查客户端是否和主机在同一局域网下
最新MySql安装教学,非常详细
Global scope and function scope in js
Sqlite A列数据复制到B列
Podspec verification dependency error problem pod lib lint , need to specify the source
Linux modify MySQL database password
SSH自动重连脚本
[uiautomation] Get WeChat friend list (stored in txt)
Flow control statement in js