Skip to content

Instantly share code, notes, and snippets.

Avatar

Tsukasa Sugiura UnaNancyOwen

View GitHub Profile
View imagenet_classes.txt
tench
goldfish
great white shark
tiger shark
hammerhead
electric ray
stingray
cock
hen
ostrich
@UnaNancyOwen
UnaNancyOwen / CMakeLists.txt
Last active August 10, 2022 02:17
Start Project for Point Cloud Library
View CMakeLists.txt
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 )
@UnaNancyOwen
UnaNancyOwen / matrix.py
Last active October 15, 2021 07:44
convert to matrix color
View matrix.py
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()
@UnaNancyOwen
UnaNancyOwen / README.md
Created October 13, 2021 09:43
OpenCV DNN Object Detection Model (Scaled YOLOv4) Sample
View README.md

OpenCV DNN Object Detection Model (Scaled YOLOv4) Sample

  • Input
    input

  • Output
    output

Download

@UnaNancyOwen
UnaNancyOwen / README.md
Last active December 27, 2022 23:39
OpenCV ObjDetect Module Face Recognition (SFace) Sample
View README.md

OpenCV ObjDetect Module Face Recognition (SFace) Sample

    1. Generate Aligned Faces
    python generate_aligned_faces.py image.jpg
    
    • Input
      input
@UnaNancyOwen
UnaNancyOwen / README.md
Last active January 6, 2023 16:13
OpenCV ObjDetect Module Face Detection (YuNet/libfacedetection) Sample
View README.md

OpenCV ObjDetect Module Face Detection (YuNet/libfacedetection) Sample

  • Input
    input

  • Output
    output

Download

@UnaNancyOwen
UnaNancyOwen / README.md
Last active October 5, 2021 23:43
OpenCV DNN Module Edge Detection (HED) Sample
View README.md

Edge Detection (Holistically-Nested Edge Detection)

  • Input
    input

  • Output
    edge_with_customlayer

Download

@UnaNancyOwen
UnaNancyOwen / goturn.py
Last active September 30, 2021 01:55
OpenCV Video Module GOTURN Tracker Sample
View goturn.py
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) # カメラ
@UnaNancyOwen
UnaNancyOwen / k4a.bat
Last active July 31, 2021 01:55
Install Script for Azure Kinect Sensor SDK
View k4a.bat
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