View sample.cpp
// Retrieve Body Frame
ComPtr<IBodyFrame> bodyFrame;
const HRESULT ret = bodyFrameReader->AcquireLatestFrame( &bodyFrame );
if( FAILED( ret ) ){
// Retrieve Body Data
std::vector<ComPtr<IBody>> bodies( BODY_COUNT );
ERROR_CHECK( bodyFrame->GetAndRefreshBodyData( static_cast<UINT>( bodies.size() ), &bodies[0] ) );
View kinect2_serialization.h
// kinect2_serialization
// kinect2_serialization is definitions of Boost.Serialization (XML) for body data that retrieved using Kinect SDK v2.
// You will be able to serialize and deserialize body data using this definitions.
// kinect2_serialization are requires Boost.Serialization and Kinect SDK v2 when serializing data.
// kinect2_serialization are requires only Boost.Serialization when deserialize data.
// This source code is licensed under the MIT license. Please see the License in License.txt.
// Copyright (c) 2017 Tsukasa SUGIURA
View License.txt
pcd_writer License
The MIT License
Copyright (c) 2017 Tsukasa SUGIURA
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
View recog.cpp
#include <iostream>
#include <vector>
#include <opencv2/opencv.hpp>
#include <opencv2/face.hpp>
int main( int argc, char* argv[] )
// Read Image
cv::Mat image = cv::imread( "image.jpg", cv::IMREAD_GRAYSCALE );
View CMakeLists.txt
cmake_minimum_required( VERSION 3.6 )
# Create Project
project( test )
add_executable( freetype main.cpp )
# Set StartUp Project
# Set CharacterSet
View CMakeSettings.json
"configurations": [
"name": "Visual Studio 15 2017 (x86)",
"generator": "Visual Studio 15 2017",
"variables": [
"name": "OpenCV_DIR",
"value": "C:\\Program Files\\opencv\\build"
View info.h
BuildInformation info;
std::string value = info.getValue( "JPEG" );
std::cout << value << std::endl; // build (ver 90)
#include <string>