EADST

Python: Merge Images to the Video with OpenCV

Python: Merge Images to the Video with OpenCV

import os
import cv2

image=cv2.imread("./result/img0001.jpg")
save_prefix = "./test_mp4/"
image_info=image.shape
height=image_info[0]
width=image_info[1]
size=(height,width)
print(size)
fps=24
fourcc=cv2.VideoWriter_fourcc(*"mp4v")
video = cv2.VideoWriter('video_name.mp4', cv2.VideoWriter_fourcc(*"mp4v"), fps, (width,height)) 

for root, dirs, files in os.walk(save_prefix):
    files = sorted(files)
    for img in files:
        file_name = os.path.join(root, img)
        image=cv2.imread(file_name)
        video.write(image)
相关标签
About Me
XD
Goals determine what you are going to be.
Category
标签云
TensorRT XML MD5 Clash Website PyCharm Plotly 签证 Attention WebCrawler Datetime PIP Hilton RL ResNet-50 Magnet 论文速读 TTS Jev Pickle YOLO GIT Conda 搞笑 NLTK Base64 CC QWEN 图标 音频 diffusers Safetensors ChatGPT Harness 多进程 uwsgi Crawler Miniforge WAN LLM hf InvalidArgumentError AI Ubuntu XGBoost transformers SQLite Rebuttal 阿里云 云服务器 Quantize Windows TensorFlow Permission Plate CSV TSV Github Bert Food llama.cpp PDF Translation Jupyter Mixtral LLAMA 财报 Django Baidu IndexTTS2 关于博主 域名 ms-swift Agent 强化学习 递归学习法 Qwen2.5 JSON icon Data Vim OpenAI Python Web Search EXCEL Nginx 继承 Heatmap BF16 Color Bitcoin SQL GPT4 算法题 FP8 BeautifulSoup UI Streamlit 论文 Use PyTorch FP64 Video API SAM API网关 Tensor uWSGI 净利润 Input C++ CEIR scipy Dataset Algorithm VPN Knowledge Excel Augmentation Land FastAPI Interview Paddle NLP Statistics Shortcut CV Pillow LoRA Template printf SPIE CUDA GPTQ Card Vmess Claude FP16 tqdm 证件照 Random ModelScope BTC Disk Bin Animate 自我改进 Jetson News Michelin logger UNIX Hotel Markdown v0.dev Quantization Llama Freesound FlashAttention Anaconda Transformers COCO ONNX Image2Text LeetCode CLAP Linux 图形思考法 Docker DeepStream PDB GoogLeNet LaTeX Tracking Firewall 飞书 多线程 Zip CTC Cloudreve git-lfs 长期记忆 SVR 第一性原理 Review Password Math FP32 HuggingFace Hungarian RGB Diagram DeepSeek Proxy 报税 CAM Pandas Qwen Ptyhon tar mmap OCR 腾讯云 RAR Qwen2 Logo Git NameSilo Sklearn Domain Tiktoken GGML git Bipartite v2ray Pytorch HaggingFace VGG-16 Paper Breakpoint Numpy 版权 Google torchinfo OpenCV Distillation 顶会 公式 VSCode Gemma
站点统计

本站现有博文339篇,共被浏览1000668次

本站已经建立2711天!

热门文章
文章归档
回到顶部