cap = cv2.VideoCapture()
时间: 2024-05-18 15:11:12 浏览: 103
cap = cv2.VideoCapture() 是OpenCV中的一个函数,用于创建一个用于读取视频文件的对象。通过传入视频文件的路径作为参数,可以打开该视频文件并返回一个cap对象。例如,cap = cv2.VideoCapture('***.mp4') 就是通过该函数打开名为***.mp4的视频文件并将返回的cap对象赋值给cap变量。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [python3下使用cv2.imwrite存储带有中文路径图片的方法](https://download.csdn.net/download/weixin_38618540/14860137)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [【opencv-python】视频处理(1)VideoCapture类、 cv2.VideoCapture()函数](https://blog.csdn.net/weixin_51424157/article/details/117572790)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [视频转图像-cv2.VideoCapture()用法](https://blog.csdn.net/weixin_42382758/article/details/125474787)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文