GithubHelp home page GithubHelp logo

animationmedia's Introduction

有趣的音视频、图像处理脚本合集

这个仓库集合了一些有趣的音视频、图像处理脚本,包括:

  • 普通视频转成字符构成的视频。
  • 多张图片拼接成一张大的图片。
  • 普通视频转成二次元漫画风格视频。
  • 普通视频的首帧转成二次元漫画风格3秒,连续过渡到原视频。

图片拼接

示例

微信好友头像合集:

杨超越原图:

用微信头像拼出来的杨超越:

使用方法

多张图片拼凑成一张大的矩形图片:

python3 image_stitch.py -d [图像合集目录] -s [小图最终的边长] -r

多张图片拼凑出另一张图片:

python3 image_stitch.py -d [图像合集目录] -i [待拼凑的图片] -s [小图最终的边长] -r

实测-s设置为30效果最佳,图片大小和质量都比较好。-r是随机排列图片。

生成字符视频

python3 video2char.py

生成二次元视频

python3 video22cy.py

生成首帧二次元视频

python3 video22cy_1stframe.py

animationmedia's People

Contributors

aciorea avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.