Skip to content

Instantly share code, notes, and snippets.

View kuri-megane's full-sized avatar

くりメガネ kuri-megane

View GitHub Profile
@kuri-megane
kuri-megane / sample_object_tracking.py
Created October 8, 2018 16:14
20180628_OpenCV × Python × オプティカルフロー (Optical Flow) で物体追跡
"""
オプティカルフロー検出のサンプルプログラム
大元: opencv3.2.0-samples-python
ページ番号は参考となる詳解OpenCV3のページ番号
"""
import numpy as np
import cv2
# 読み込む動画の設定
# https://docs.opencv.org/3.4.1/d8/dfe/classcv_1_1VideoCapture.html