Download
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
tench | |
goldfish | |
great white shark | |
tiger shark | |
hammerhead | |
electric ray | |
stingray | |
cock | |
hen | |
ostrich |
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
__background__ | |
person | |
bicycle | |
car | |
motorcycle | |
airplane | |
bus | |
train | |
truck | |
boat |
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
// Body.cpp : コンソール アプリケーションのエントリ ポイントを定義します。 | |
// This source code is licensed under the MIT license. Please see the License in License.txt. | |
// "This is preliminary software and/or hardware and APIs are preliminary and subject to change." | |
// | |
#include "stdafx.h" | |
#include <Windows.h> | |
#include <Kinect.h> | |
#include "KinectJointFilter.h" | |
#include <opencv2/opencv.hpp> |
Vcpkgを使用してQtをインストールする。(e.g. C:\vcpkg
)
cd C:\vcpkg
.\vcpkg install qt5:x64-windows
-
zlib 1.2.11(zlib1211.zip)をダウンロードしてファイを解凍する。(C:\zlib-1.2.11)
https://zlib.net/ -
libpng 1.6.29(libpng1629.zip)をダウンロードしてファイルを解凍する。(C:\lpng1629)
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 numpy as np | |
import cv2 as cv | |
def main(): | |
# 画像を読み込む | |
directory = os.path.dirname(__file__) | |
image = cv.imread(os.path.join(directory, "image.jpg")) | |
if image is None: | |
exit() |
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) # カメラ |