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

本站现有博文332篇,共被浏览875316

本站已经建立2583天!

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