当前位置:网站首页>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:
边栏推荐
- CTO强烈禁止使用Calendar,那用啥?
- How to ensure the consistency of database and cache data?
- ASP.NET Core 6框架揭秘实例演示[30]:利用路由开发REST API
- Explain / Desc 执行计划分析
- leetcode-6133:分组的最大数量
- 朴素贝叶斯--学习笔记--基本原理及代码实现
- Static Pod, Pod Creation Process, Container Resource Limits
- Microsoft Azure & NVIDIA IoT 开发者季 I|Azure IoT & NVIDIA Jetson 开发基础
- 18张图,直观理解神经网络、流形和拓扑
- 热修复技术可谓是百花齐放
猜你喜欢
HoloView -- Tabular Datasets
js中如何实现深拷贝?
node 格式化时间的传统做法与高级做法(moment)
HoloView--Customization
Redis middleware (from building to refuse pit)
2022杭电中超杯(1)个人题解
Comprehensive experiment BGP
Intensive reading of ACmix papers, and analysis of its model structure
leetcode-6134: Find the closest node to the given two nodes
Node's traditional and advanced practices for formatting time (moment)
随机推荐
notes....
Install GBase 8 c database, the error shows "Resource, how to solve?
朴素贝叶斯--学习笔记--基本原理及代码实现
GBase 8s 锁分类
Shell executes SQL to send emails
HoloView 在 jyputer lab/notebook 不显示总结
指针的介绍及应用
opencv创建窗口—cv.namedWindow()
在GBase 8c数据库后台,使用什么样的命令来对gtm、dn节点进行主备切换的操作
获取页面数据的方法
[Beyond programming] When the fig leaf is lifted, when people begin to accept everything
net stop/start mysql80 access denied
USB Protocol (2) Terminology
[Interview: Concurrency 39: Multithreading: Thread Pool] ThreadPoolExecutor Class - Submit, Stop
leetcode-6133: maximum number of groupings
ASP.NET Core 6框架揭秘实例演示[30]:利用路由开发REST API
MySQL查询进阶——从函数到表连接的使用你还记得吗
优炫数据库支持Oracle哪几种时间及日期类型
Redis中间件(从搭建到弃坑)
杨辉三角(c语言实现)