![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
opencv
QFJIZHI
自动驾驶,人工智能
展开
-
opencv python 常用功能
转换为动图 import imageio import os import numpy as np def compose_gif(): cwd = os.getcwd() img_paths = [] for img_path in os.listdir(cwd): if img_path.endswith(".png"): img_paths.append(img_path) # 按照名字排序 img_paths.sor原创 2021-05-28 09:34:53 · 305 阅读 · 1 评论 -
opencv将图片存储为视频
cv::VideoWriter wrt("./test.avi", cv::VideoWriter::fourcc('M', 'J', 'P', 'G'), 10, cv::Size(width, height)); wrt << image; // where image should be cv::Mat class原创 2020-08-24 14:06:26 · 652 阅读 · 0 评论