Ai
1.1K Star 6.2K Fork 2.5K

小柒2012商城/从零学Python

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
OpenCV.py 448 Bytes
一键复制 编辑 原始数据 按行查看 历史
小柒2012商城 提交于 2019-02-27 21:09 +08:00 . 看门狗
# -*- coding:utf-8 -*-
# 导入cv模块
import os
import cv2 as cv
"""
安装以下模块
pip install --upgrade setuptools
pip install numpy Matplotlib
pip install opencv-python
"""
# 读取图像,支持 bmp、jpg、png、tiff 等常用格式
# r 显式声明字符串不用转义
img = cv.imread(os.getcwd()+"\\images\\heying.jpg")
# 创建窗口并显示图像
cv.namedWindow("Image")
cv.imshow("Image", img)
cv.waitKey(0)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/52itstyle/Python.git
git@gitee.com:52itstyle/Python.git
52itstyle
Python
从零学Python
master

搜索帮助