OpenCV DNN Object Detection Model (Scaled YOLOv4) Sample
Download
tench | |
goldfish | |
great white shark | |
tiger shark | |
hammerhead | |
electric ray | |
stingray | |
cock | |
hen | |
ostrich |
__background__ | |
person | |
bicycle | |
car | |
motorcycle | |
airplane | |
bus | |
train | |
truck | |
boat |
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 ) |
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() |
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) # カメラ |
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 |