- FreeType 2.7.0(ft27.zip)をダウンロードしてファイルを解凍する。(C:\freetype-2.7)
https://sourceforge.net/projects/freetype/files/freetype2/2.7/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <sstream> | |
#include <Windows.h> | |
#include <Kinect.h> | |
#include <opencv2/opencv.hpp> | |
#include <atlbase.h> | |
// Error Check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
inline void result( const CComPtr<IVisualGestureBuilderFrame>& gestureFrame, const CComPtr<IGesture>& gesture, const int count ) | |
{ | |
// TrackingIdを取得 | |
UINT64 trackingId; | |
ERROR_CHECK( gestureFrame->get_TrackingId( &trackingId ) ); | |
// Gestureの種類(Discrete or Continuous)を取得 | |
GestureType gestureType; | |
ERROR_CHECK( gesture->get_GestureType( &gestureType ) ); | |
switch( gestureType ){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Example CMakeLists.txt | |
# FindSpeechPlatformSDK.cmake copy to CMake\share\cmake-3.5\Modules or same directory as this file | |
cmake_minimum_required( VERSION 2.8 ) | |
set( CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}" ${CMAKE_MODULE_PATH} ) | |
project( solution ) | |
add_executable( project main.cpp ) | |
set_property( DIRECTORY PROPERTY VS_STARTUP_PROJECT "project" ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<ImportGroup Label="PropertySheets"/> | |
<!-- Debug|Win32 --> | |
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | |
</PropertyGroup> | |
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | |
<ClCompile> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Retrieve Joints | |
std::array<Joint, JointType::JointType_Count> joints; | |
ERROR_CHECK( body->GetJoints( JointType::JointType_Count, &joints[0] ) ); | |
// Retrieve Specific Joint Position ( e.g. Left Hand ) | |
const Joint joint = joints[JointType::JointType_HandLeft]; | |
if( joint.TrackingState == TrackingState::TrackingState_Tracked ){ | |
const CameraSpacePoint position = joint.Position; | |
const float x = position.X; // X coordinate (+/-1.0) | |
const float y = position.Y; // Y coordinate (+/-1.0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <vector> | |
#include <utility> | |
#include <algorithm> | |
#include <functional> | |
//#include <ppl.h> | |
//#include <concurrent_vector.h> | |
#include <opencv2/opencv.hpp> | |
// opencv/samples/gpu/tick_meter.hpp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
// Retrieve Body Data | |
IBody* bodies[BODY_COUNT]; | |
ERROR_CHECK( bodyFrame->GetAndRefreshBodyData( BODY_COUNT, &bodies[0] ) ); | |
// Find Closest Body | |
const int count = findClosestBody( bodies ); | |
// Retrieve Closest Body | |
IBody* body = bodies[count]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
BuildInformation info; | |
std::string value = info.getValue( "JPEG" ); | |
std::cout << value << std::endl; // build (ver 90) | |
*/ | |
#ifndef __BUILD_INFORMATION__ | |
#define __BUILD_INFORMATION__ | |
#include <string> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"configurations": [ | |
{ | |
"name": "Visual Studio 15 2017 (x86)", | |
"generator": "Visual Studio 15 2017", | |
"variables": [ | |
{ | |
"name": "OpenCV_DIR", | |
"value": "C:\\Program Files\\opencv\\build" | |
} |