Code Monkey home page Code Monkey logo

-batch-video-trim-based-on-defined-frames's Introduction

-Batch-Video-Trim-based-on-defined-frames

installation

Python 3.6-3.8 Opencv 4.1.2

script 1

The script 1 can let users extract starta-end frames by press the backspace on keyboard by go through the video in the code. Then the key frames will be saved in the txt file. As shown below, the left number is current frame, the right number is the number of total frames of this video.

4 5

When push backspace on the keyboard, the current frame will be saved in an txt file,'train.txt'. From the first frame, Every two adjacent frames will be a group: 1-2, 3-4, 5-6 ......... Then the txt file will be like as follows:

image

script 2

The script 2 can trim the initial video into multiple clips (shown as follows) based on the key frames in the txt file.

image

Reference:

  1. “Design of a Real-Time Human-Robot Collaboration System Operated by Dynamic Gestures,” H. Chen, M. C. Leu, W. Tao and Z. Yin, Proceedings of the ASME 2020 International Mechanical Engineering Congress and Exposition (IMECE 2020), November 13-19, 2020, Portland, OR. https://asmedigitalcollection.asme.org/IMECE/proceedings-abstract/IMECE2020/84492/V02BT02A051/1099004

  2. “Dynamic Gesture Design and Recognition for Human-Robot Collaboration with Convolutional Neural Networks,” H. Chen, W. Tao, M. C. Leu, and Z. Yin, Proceedings of the 2020 International Symposium on Flexible Automation (ISFA 2020), Jul. 5-9, 2020, Chicago, IL. https://asmedigitalcollection.asme.org/ISFA/proceedings-abstract/ISFA2020/83617/V001T09A001/1087346

-batch-video-trim-based-on-defined-frames's People

Contributors

danielc-mst 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.