This sample script is to measure the stride of a runner in video by using deep learning model and simple signal processing.
このサンプルスクリプトでは、ディープラーニングモデルと簡単な信号処理を組合わせて、ビデオ中のランナーの歩幅を計測する方法を示します。
- MATLAB 2020a
- Image Processing Toolbox
- Computer Vision Toolbox
- Deep Learning Toolbox
You need a Human Pose Estimation Network. Download this repository and set the path to the project. In detail, see the repository.
[Japanese]このサンプルを動かすためには姿勢推定のネットワークモデルが必要となります。こちらのリポジトリからダウンロードし、リポジトリへのパスを設定しておいてください。詳細はリポジトリのページをご覧ください。
First, open the project file
[Japanese]始めにプロジェクトファイルを開いてください。
open Stride_measurement_of_runner.prj;
This sample code requires a pretrained YOLOv3 network for detecting person from an image. Follow "src/YOLOv3/tb_darknet2yolo_mat.mlx" to get the pretrained YOLOv3 network.
[Japanese]このサンプルコードは、画像から人物を検出するために学習済みのYOLOv3ネットワークを必要とします。"src/YOLOv3/tb_darknet2yolo_mat.mlx"を実行して学習済みのYOLOv3ネットワークを準備してください。
open tb_darknet2yolo_mat.mlx; % and execute mlx
To run the main script, run "src/stride_measurement_of_runner.mlx".
[Japanese]メインスクリプトは"src/stride_measurement_of_runner.mlx"です。これを開いて実行してください。
open Stride_measurement_of_runner.mlx;
The resulted video processed by the script above will be found at "data/processed/".
[Japanese]上のスクリプトで処理した結果のビデオは"data/processed/"にあります。
The powerpoint file are saved in "docs/".
[Japanese]パワーポイントファイルは"docs/"フォルダに保存しています。
Copyright 2020 The MathWorks, Inc.