当前位置:网站首页>3、 How to read video?
3、 How to read video?
2022-07-29 06:08:00 【My hair is messy】
One 、 How to read video ?
Example :pandas Is based on NumPy A tool of , The tool is created to solve data analysis tasks .
Two 、 Use steps
1. Import and stock in
The code is as follows ( Example ):
import cv2
cap=cv2.VideoCapture(r"C:\Users\liewei\Desktop\pic\1.mp4")
while(1):
ret,frame=cap.read()
gray=cv2.cvtColor(frame,cv2.COLOR_BGR2GRAY)
cv2.imshow("cap",frame)
if cv2.waitKey(27)&0xFF==ord('q'):#a Press q Pause
break
cap.release()
cv2.destroyAllWindows()
边栏推荐
- ROS常用指令
- tensorboard使用
- 【Attention】Visual Attention Network
- 备份谷歌或其他浏览器插件
- MySQL inserts millions of data (using functions and stored procedures)
- 【图像分类】如何使用 mmclassification 训练自己的分类模型
- 一、PyTorch Cookbook(常用代码合集)
- 【Transformer】AdaViT: Adaptive Tokens for Efficient Vision Transformer
- ROS教程(Xavier)
- Discussion on the design of distributed full flash memory automatic test platform
猜你喜欢
研究生新生培训第二周:卷积神经网络基础
【Transformer】SOFT: Softmax-free Transformer with Linear Complexity
Interesting talk about performance optimization thread pool: is the more threads open, the better?
【网络设计】ConvNeXt:A ConvNet for the 2020s
六、基于深度学习关键点的指针式表计识别
Reporting Services- Web Service
"Full flash measurement" database acceleration solution
【语义分割】SETR_Rethinking Semantic Segmentation from a Sequence-to-Sequence Perspective with Transformer
PyTorch的数据读取机制
深入理解MMAP原理,让大厂都爱不释手的技术
随机推荐
anaconda中移除旧环境、增加新环境、查看环境、安装库、清理缓存等操作命令
ML10自学笔记-SVM
Typical cases of xdfs & China Daily Online Collaborative Editing Platform
Detailed explanation of MySQL statistical function count
四、One-hot和损失函数的应用
The difference between asyncawait and promise
【目标检测】KL-Loss:Bounding Box Regression with Uncertainty for Accurate Object Detection
迁移学习——Robust Visual Domain Adaptation with Low-Rank Reconstruction
C # judge whether the user accesses by mobile phone or computer
Configuration and use of Nacos external database
[semantic segmentation] Introduction to mapillary dataset
【Transformer】AdaViT: Adaptive Vision Transformers for Efficient Image Recognition
一、Focal Loss理论及代码实现
【bug】XLRDError: Excel xlsx file; not supported
【Transformer】SOFT: Softmax-free Transformer with Linear Complexity
pip安装后仍有解决ImportError: No module named XX
Technology that deeply understands the principle of MMAP and makes big manufacturers love it
【目标检测】Generalized Focal Loss V1
三、如何搞自定义数据集?
Flink connector Oracle CDC synchronizes data to MySQL in real time (oracle12c)