Skip to content

Instantly share code, notes, and snippets.

View UnaNancyOwen's full-sized avatar

Tsukasa Sugiura UnaNancyOwen

View GitHub Profile
@UnaNancyOwen
UnaNancyOwen / CMakeLists.txt
Last active November 25, 2023 22:29
First Samplle for OpenCV with ImGui
cmake_minimum_required( VERSION 3.6 )
set( CMAKE_CXX_STANDARD 11 )
set( CMAKE_CXX_STANDARD_REQUIRED ON )
set( CMAKE_CXX_EXTENSIONS OFF )
find_package( Git )
execute_process(
COMMAND ${GIT_EXECUTABLE} clone "https://github.com/ocornut/imgui.git" -b v1.72b
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
@UnaNancyOwen
UnaNancyOwen / CMakeLists.txt
Last active October 11, 2023 21:43
CMakeLists for OpenCV
cmake_minimum_required( VERSION 3.6 )
# Create Project
project( solution )
add_executable( project main.cpp )
# Set StartUp Project
set_property( DIRECTORY PROPERTY VS_STARTUP_PROJECT "project" )
# Find Package
@UnaNancyOwen
UnaNancyOwen / main.cpp
Last active September 16, 2023 22:21
OpenCV 4.0 Kinect Fusion
#include <iostream>
#include <cmath>
#include <limits>
#include <opencv2/opencv.hpp>
#include <opencv2/rgbd.hpp>
#include <opencv2/viz.hpp>
void initialize_parameters( cv::kinfu::Params& params, const uint32_t width, const uint32_t height, const float focal_x, const float focal_y = 0.0f ){
float fx = focal_x;
float fy = focal_y;
@UnaNancyOwen
UnaNancyOwen / CMakeLists.txt
Last active September 15, 2023 01:19
CMakeLists for OpenCV that installed using Vcpkg
cmake_minimum_required( VERSION 3.0 )
set( CMAKE_TOOLCHAIN_FILE "C:/vcpkg/scripts/buildsystems/vcpkg.cmake" )
# Create Project
project( solution )
add_executable( project main.cpp )
# Set OpenCVConfig.cmake Search Directory
set( OpenCV_DIR )
if( NOT CMAKE_CL_64 )
@UnaNancyOwen
UnaNancyOwen / README.md
Last active September 4, 2023 11:07
OpenCV ObjDetect Module Face Detection (YuNet/libfacedetection) Sample

OpenCV ObjDetect Module Face Detection (YuNet/libfacedetection) Sample

  • Input
    input

  • Output
    output

Download

@UnaNancyOwen
UnaNancyOwen / CMakeLists.txt
Last active August 25, 2023 11:30
CMake Module for Kinect SDK v1
# Example CMakeLists.txt
# FindKInectSDK.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" )
@UnaNancyOwen
UnaNancyOwen / interactive-select-rect-and-point-in-image-using-matplotlib-on-google-colab.ipynb
Last active August 25, 2023 06:35
interactive-select-rect-and-point-in-image-using-matplotlib-on-google-colab.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@UnaNancyOwen
UnaNancyOwen / CMakeLists.txt
Last active July 27, 2023 05:03
CMake Find Module for Azure Kinect Sensor SDK and Azure Kinect Body Tracking SDK
cmake_minimum_required( VERSION 3.6 )
set( CMAKE_CXX_STANDARD 11 )
set( CMAKE_CXX_STANDARD_REQUIRED ON )
set( CMAKE_CXX_EXTENSIONS OFF )
project( K4ABT )
add_executable( K4ABT main.cpp )
set_property( DIRECTORY PROPERTY VS_STARTUP_PROJECT "K4ABT" )
@UnaNancyOwen
UnaNancyOwen / CMakeLists.txt
Last active July 12, 2023 15:22
How to use OpenCV FreeType module with Visual Studio
cmake_minimum_required( VERSION 3.6 )
# Create Project
project( test )
add_executable( freetype main.cpp )
# Set StartUp Project
set_property( DIRECTORY PROPERTY VS_STARTUP_PROJECT "freetype" )
# Set CharacterSet
@UnaNancyOwen
UnaNancyOwen / k4a_double_exponential_filter.h
Last active July 12, 2023 10:17
Double Exponential Smoothing Filter for Azure Kinect Body Tracking SDK
/*
k4a_double_exponential_filter.h
This file contains holt double exponential smoothing filter for filtering joints.
It was ported for Azure Kinect Body Tracking SDK based on following implementation.
https://social.msdn.microsoft.com/Forums/en-US/045b058a-ae3a-4d01-beb6-b756631b4b42
std::unordered_map<int32_t, double_exponential_filter> double_exponential_filter;
while( true )