Extract depth/color/IR frames from kinect recording (.mkv).
Install kinect SDK:
sudo apt install k4a-tools
sudo apt install libk4a1.4-dev
Install libjpeg-turbo: https://github.com/libjpeg-turbo/libjpeg-turbo
OpenCV:
$ sudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev
$ sudo apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libdc1394-22-dev
$ git clone https://github.com/opencv/opencv.git
$ git clone https://github.com/opencv/opencv_contrib.git
$ cd opencv
$ mkdir build
$ cd build
$ cmake -D CMAKE_BUILD_TYPE=RELEASE \
-D CMAKE_INSTALL_PREFIX=/usr/local \
-D INSTALL_PYTHON_EXAMPLES=ON \
-D INSTALL_C_EXAMPLES=OFF \
-D OPENCV_EXTRA_MODULES_PATH=/home/management/workspace/opencv_contrib/modules \
-D BUILD_EXAMPLES=ON ..
$ make -j4
$ sudo make install
$ sudo ldconfig
$ opencv_version
Lint Tools:
sudo apt install clang-format-6.0
VS Code Extentions:
k4a_frame_extaction <filename.mkv> [datetime: YYYY-mm-dd_HH:MM:SS.fff] \
[output_dir] [start timestamp (ms)] [--debug|--debug-long]
We follow the coding style of Azure-Kinect-Sensor-SDK.
Style formatting is enforced as part of check in criteria using .clang-format.
Use bt_offline_processor
instead of body_tracking
.