Skip to content

Smomic/SyncVideo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SyncVideo

Overview

Tool for spatial synchronization of video sequences. In other words, automatically match two films with each other, characterized by a very similar background, and differing in the settings of the camera recording the scene. The matching process is divided into two stages, when the first one includes the detection of a moving object on a given frame, while the second one involves the background synchronization of two video frames. The main issues are edge segmentation, optical flow and finding transformations between images using detection and matching of characteristic points. Project made within the scope of engineering thesis.

Screenshots

image
image

Catalogs:

  • data: used video sequences examples
  • src: source code of the tool

Used software:

  • g++7 (or another C++17 compilator)
  • OpenCV v3.2.0
  • Qt v5.9

Required packages:

  • CMake v2.8.7 or higher
  • Git
  • pkg-config

----------Configuration software (Ubuntu 18.04 as example)----------

  • Beginning

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install build-essential cmake unzip pkg-config

  • Libs for working with videos

sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev
sudo apt-get install libxvidcore-dev libx264-dev

  • OpenCV

git clone https://github.com/opencv/opencv.git
cd opencv
git checkout 3.2.0
cd ..
git clone https://github.com/opencv/opencv_contrib.git
cd opencv_contrib
git checkout 3.2.0
cd ..
cd opencv
mkdir build
cd build
cmake -D CMAKE_BUILD_TYPE=RELEASE
-D CMAKE_INSTALL_PREFIX=/usr/local
-D INSTALL_C_EXAMPLES=ON
-D INSTALL_PYTHON_EXAMPLES=OFF
-D WITH_TBB=ON
-D WITH_V4L=ON
-D WITH_QT=ON
-D WITH_OPENGL=ON
-D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules
-D BUILD_EXAMPLES=ON .. make
sudo make install
sudo ldconfig

  • Qt5

sudo apt-get install qt5-default or by installing QtCreator IDE https://www.qt.io/download

---------------Installation---------------

  1. cd <LOCAL_PATH>/SyncVideo/
  2. mkdir build
  3. cd build
  4. qmake ../SyncVideo.pro
  5. make
  6. ./SyncVideo