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
import os | |
import sys | |
import cv2 as cv | |
import numpy as np | |
def main(): | |
# キャプチャを開く | |
directory = os.path.dirname(__file__) | |
#capture = cv.VideoCapture(os.path.join(directory, "test.mp4")) # 画像ファイル | |
capture = cv.VideoCapture(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
ver | |
cmake --version | |
git --version | |
cd C:\ | |
git clone https://github.com/microsoft/Azure-Kinect-Sensor-SDK.git --recursive | |
cd Azure-Kinect-Sensor-SDK | |
git checkout -b v1.4.1 refs/tags/v1.4.1 | |
curl -O https://patch-diff.githubusercontent.com/raw/microsoft/Azure-Kinect-Sensor-SDK/pull/1560.patch | |
git apply 1560.patch | |
mkdir build && cd build |
This is utility functions for query serial number and open device by specify serial number.
You can open device by specify serial number in Azure Kinect SDK similar to RealSense SDK.
I think these functions will be useful for all Azure Kinect developers.
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
cmake_minimum_required( VERSION 3.6 ) | |
# Language | |
enable_language( CXX ) | |
# Compiler Settings | |
set( CMAKE_CXX_STANDARD 17 ) | |
set( CMAKE_CXX_STANDARD_REQUIRED ON ) | |
set( CMAKE_CXX_EXTENSIONS OFF ) |
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
cmake_minimum_required( VERSION 3.6 ) | |
# Require C++17 (or later) | |
set( CMAKE_CXX_STANDARD 17 ) | |
set( CMAKE_CXX_STANDARD_REQUIRED ON ) | |
set( CMAKE_CXX_EXTENSIONS OFF ) | |
# Create Project | |
project( Sample ) | |
add_executable( Project main.cpp ) |