当前位置:网站首页>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)输出图像


边栏推荐
猜你喜欢

MySQL高级SQL语句(二)

Why does read in bash need to cooperate with while to read the contents of /dev/stdin

通信原理——纠错编码 | 汉明码(海明码)手算详解
![[Cloud native] Open source data analysis SPL easily copes with T+0](/img/89/4a96358956782ef9dacf0b700b54c3.png)
[Cloud native] Open source data analysis SPL easily copes with T+0

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

为什么bash中的read要配合while才能读取/dev/stdin的内容

The latest MySql installation teaching, very detailed

Take you to understand the MySQL isolation level, what happens when two transactions operate on the same row of data at the same time?
![[uiautomation] Get WeChat friend list (stored in txt)](/img/26/1f3424c5998c52c6e10ced8529012a.png)
[uiautomation] Get WeChat friend list (stored in txt)

Understanding of js arrays
随机推荐
js中的this指向与原型对象
qt:cannot open C:\Users\XX\AppData\Local\Temp\main.obj.15576.16.jom for write
[Cloud native] Open source data analysis SPL easily copes with T+0
2021 Mianjing - Embrace Change
unicloud 云开发记录
What is an EVM Compatible Chain?
[windows]--- SQL Server 2008 super detailed installation tutorial
sql 添加 default 约束
VTK环境配置
Flutter mixed development module dependencies
quick-3.5 无法正常显示有混合纹理的csb文件
Tencent Cloud GPU Desktop Server Driver Installation
WeChat applet source code acquisition and decompilation method
break and continue exit in js
Error: Cannot find module 'D:\Application\nodejs\node_modules\npm\bin\npm-cli.js'
Several solutions for mysql startup error The server quit without updating PID file
数据库 | SQL增删改查基础语法
Gradle sync failed: Uninitialized object exists on backward branch 142
[Cloud Native] What should I do if SQL (and stored procedures) run too slowly?
MySQL高级语句(一)