Skip to content

Latest commit

 

History

History
 
 

1_VDO2IMG

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

1_VDO2IMG

This is a C++ implementation to convert a video file into a folder of frame images.

Coding Structure

  1. ./src/ folder: Source code
  2. track1.sh: Example bash file to process the Track 1 data
  3. track3.sh: Example bash file to process the Track 3 data

How to Build

  1. Download and make the OpenCV library. A tutorial is given here.
  2. Compile using g++ in Linux environment. If you are new to g++ compilation with OpenCV, please refer to this link. In the command window, you can cd to the current directory and use the following command to compile our source code, where bin is the executable file generated. Note that you may need to add sudo at the beginning to grant the admin permission.

g++ -I/usr/local/include/ -L/usr/local/lib/ -g -o bin ./src/main.cpp -lopencv_core -lopencv_imgproc -lopencv_highgui -lopencv_imgcodecs -lopencv_videoio -lm

How to Use

  1. Run the executable file.

./bin <input video path> <output image folder path>

  1. Or run a bash file.

bash track1.sh

Disclaimer

For any question you can contact Zheng (Thomas) Tang.