Giter Club home page Giter Club logo

upcautolang / cut-video-into-images Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 3.95 MB

This repository is the C++ Source Code of a Console Program, which Cut Videos into Image Sequence and is based on OpenCV Library. In Terminal, we can Input a List File which Includes a series of Videos' Path and the Number of these Videos, then we will Cut these videos frame by frame as Sequences of Images which are Saved in Specified Folders (These Folder's Name is same as the Videos' names).

CMake 4.39% C++ 74.57% C 21.04%

cut-video-into-images's Introduction

This repository is the C++ Source Code of a Console Program, which Cut Videos into Image Sequence and is based on OpenCV Library. In Terminal, we can Input a List File which Includes a series of Videos' Path and the Number of these Videos, then we will Cut these videos frame by frame as Sequences of Images which are Saved in Specified Folders (These Folder's Name is same as the Videos' names).

Files Introduction

  • src - Source Code's Path
  • Test_Videos - Videos for test (There are 2 Videos and a List File in this folder for Test
  • Images - Images for README.md
  • CMakeLists.txt - Cmake File of this Project

Tutorial for Using this Project

1. My Working Environment

  • Operating System - Ubuntu 14.04 LTS
  • Conditions before your cmake command:
    • have already done OpenCV's make & make install
    • have already done CMake's make & make install

Besides, I also wrote the tutorial blog of how to install OpenCV 2.4.9 in Ubuntu 14.04. Here are the websites: CSDN Blog's Website GitHub Blog's Website

2. CMake & Make This Project

Open a Terminal and Enter in the Root Path of this project named CutVideoIntoImages, then input commands like below:

cmake ./
make

Then you will build this project.
The path of Binary Files : /CutVideoIntoImages/bin
The path of Library Files : /CutVideoIntoImages/lib

3. Introduction of Using this Project

If the Root Path is CutVideoIntoImages, and you have Built this Project like Tutorial Above, then the Execute File's Location should be in /CutVideoIntoImages/bin. So there is a Example for a Test, and Test Videos put in Test_Videos based on Root Path, and there is a file Named video_list.txt which is a List of Video Files. Then you should Open a Terminal and Enter in the Root Path of this project, then input commands like below:

cd ./bin
./CutVideoIntoImages -info ../Test_Videos/video_list.txt -num 2

Then this Program runs, Cutting Videos and Saving Images into the Path of Executable File (I means /CutVideoIntoImages) . Sequences of Images are Saved in the Folders Named by Videos' Names. Cut the Sequences of Images just like the Picture below:

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.