Giter Club home page Giter Club logo

minecraft_tools's Introduction

Minecraft tools for computer vision

  • video2frame_lite.py

将输入video按照帧率分成帧, 输出为video名字一样的文件夹

  • frames2dirs.py

将刚刚得到的长序列合并的total_frame_dir 按帧数量分割成子文件夹

例如

  |-0xdir
  	|-0000.png
  	|-0001.png
  	|-..
  	|-1399.png
  
  ==>
  
  |-split
  	|-0000
  	   |-0000.png
  	   |-0001.png
  	   |-...
  	   |-0049.png
  	|-0001
  	   |-0001.png
  	   |-...
  	|-0027
  	   |-0001.png
  	   |-..
  • files_restruct_*.sh

这里通过sh文件进行restructuring, * \in (0,8)

mvdirs
	|-dirs
	  |-dir1
	    |-0000.png
	    |-000n.png
	  |-dir2
	    |-0000.png
	    |-0001.png
		
	==>
	
	|-mcvn
	  |-traj1
	    |-shader1
	      |-0000.png
	  |-traj2
	    |-shader2
			
			

steps

  • step1 video 2 frames

把shader名字 ctrl f 换了然后

bash split.sh
  • step2 frame 2 dirs 类似的, 吧shader名字换了
bash frame2dirs.sh
  • step3 dirs send
bash files_restruct_0*.sh

bash files_restruct_0*.sh
...

minecraft_tools's People

Contributors

xdr940 avatar

Watchers

 avatar  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.