ailab/VirtualStage/KinectMaskGenerator
Javier Carnero d3130496e6 Added KinectMaskGenerator for background matting 2020-05-14 10:47:27 +02:00
..
3rdparty Added KinectMaskGenerator for background matting 2020-05-14 10:47:27 +02:00
.gitignore Added KinectMaskGenerator for background matting 2020-05-14 10:47:27 +02:00
CMakeLists.txt Added KinectMaskGenerator for background matting 2020-05-14 10:47:27 +02:00
README.md Added KinectMaskGenerator for background matting 2020-05-14 10:47:27 +02:00
main.cpp Added KinectMaskGenerator for background matting 2020-05-14 10:47:27 +02:00

README.md

Kinect Mask Generator

Command line tool to generate body mask images from an Azure Kinect video. It also generates a PTS (presentation time stamp) file that can be consumed by ffmpeg to create an alpha video.

Requirements

  • OpenCV 4.3.0
    • Download OpenCV 4.3.0
    • Install on 3rdparty/opencv directory
    • Add to Path [ROOT]\3rdparty\opencv\build\x64\vc15\bin
  • Azure Kinect SDK 1.4.0
    • Download and install
    • Add to PATH the bin folder C:\Program Files\Azure Kinect SDK v1.4.0\sdk\windows-desktop\amd64\release\bin
  • Azure Kinect Body Traking SDK 1.0.1
    • Download and install
    • Add to PATH the bin folder C:\Program Files\Azure Kinect Body Tracking SDK\sdk\windows-desktop\amd64\release\bin

Build

The project uses CMake

Usage

./build/KinectmaskGenerator.exe VIDEO_INPUT_PATH MASK_OUTPUT_PATH START DURATION [COLOR_IMG_SUFFIX]

  • START and DURATION are specified in seconds
  • Set DURATION to -1 to process the video until the end
  • If COLOR_IMG_SUFFIX is set, it also generates color images with the suffix provided