当前位置:网站首页>Opencv creates a window - cv.namedWindow()
Opencv creates a window - cv.namedWindow()
2022-08-01 09:26:00 【Width in the journey~】
1, format:
cv.namedWindow(winname[, flags])span>
2. Function:
Create a window
3. Enter:
winname: window name
flags: window creation mode, including:(1)WINDOW_NORMAL or WINDOW_AUTOSIZEWINDOW_NORMAL: Window size is variableWINDOW_AUTOSIZE: The window size is the image size, immutable(2)WINDOW_KEEPRATIO or WINDOW_FREERATIOWINDOW_KEEPRATIO: keep image aspect ratioWINDOW_FREERATIO: Image aspect ratio is variable(3)WINDOW_GUI_EXPANDED or WINDOW_GUI_NORMALWINDOW_GUI_EXPANDED: Window with toolbar and status barWINDOW_GUI_NORMAL: Window without toolbar and status barThe default flags are:WINDOW_AUTOSIZE | WINDOW_KEEPRATIO | WINDOW_GUI_EXPANDED
3. Output:
None
4. Example:
# import OpenCVimport cv2 as cv# read imageimage = cv.imread(r'fire.jpeg')# Create windowcv.namedWindow('image', cv.WINDOW_NORMAL)# show imagecv.imshow('image', image)cv.waitKey(0)
Our image result is:
边栏推荐
- ASP.NET Core 6框架揭秘实例演示[30]:利用路由开发REST API
- Classify GBase 8 s lock
- C语言中编译时出现警告C4013(C语言不加函数原型产生的潜在错误)
- GBase 8c中怎么查询数据库配置参数,例如datestyle
- Node's traditional and advanced practices for formatting time (moment)
- Install GBase 8 c database, the error shows "Resource, how to solve?
- AC与瘦AP的WLAN组网实验
- 三子棋(C语言实现)
- pytest interface automation testing framework | parametrize source code analysis
- 《时代》杂志:元宇宙时代将改变世界
猜你喜欢
【无标题】
[Beyond programming] When the fig leaf is lifted, when people begin to accept everything
JVM 运行时数据区与JMM 内存模型详解
leetcode-6133:分组的最大数量
What do the values 1, 2, and 3 in nodetype mean?
USB Protocol (2) Terminology
Comprehensive experiment BGP
net stop/start mysql80 拒绝访问
Explain / Desc execution plan analysis
HoloView -- Tabular Datasets
随机推荐
WLAN networking experiment of AC and thin AP
Comprehensive experiment BGP
三子棋(C语言实现)
MySQL查询进阶——从函数到表连接的使用你还记得吗
正则表达式符号
最新的Cesium和Three的整合方法(附完整代码)
Graduation thesis writing skills
【面试:并发篇39:多线程:线程池】ThreadPoolExecutor类-提交、停止
ogg同步oracle到mysql,字段里面可能有需要转义的字符,怎么配置转义?
JVM内存模型之深究模型特征
Microsoft Azure & NVIDIA IoT developers season I | Azure IoT & NVIDIA Jetson development foundation
SAP ABAP ALV+SMARTFORS 表分页 报表打印程序
ASP.NET Core 6框架揭秘实例演示[30]:利用路由开发REST API
GBase 8c中怎么查询数据库配置参数,例如datestyle
Mysql database deployment and initialization steps
What do the values 1, 2, and 3 in nodetype mean?
网络基础学习
Install GBase 8 c database, the error shows "Resource, how to solve?
Prime Ring Problem(素数环问题)
In the background of the GBase 8c database, what command is used to perform the master-slave switchover operation for the gtm and dn nodes