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

本站现有博文337篇,共被浏览957676次

本站已经建立2669天!

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