3、OpenCVの活用
1)顔の自動検出(face-detection) ・・・・・・👈動画はタイトルをクリック
(Click here ! to watch the Video of program execution.)
PythonによるOpenCVで顔検出の実験(RasPi)
2) 色検出と追跡動画(青色) ・・・・・・・・・・・・👈動画はタイトルをクリック!
(Click here ! to watch the Video of program execution.)

3) 高速道路走行中の自動車追跡

RasPiによる処理 ・・・👈 NVIDIA TX2による処理 ・・・👈
(Click here ! to watch the Video of program execution.)
4) win10+Python3+OpenCV3による目の追跡👈動画はタイトルをクリック

5)顔認証の実験
(Win10+Python+OpenCV+Deep Learning) ・・・・・・👈動画はタイトルをクリック
(Click here ! to watch the Video of program execution.)

同時三人顔認証 同一人物複数写真の顔認証・・・・・・ 👈動画!
(Click here ! to watch the Video of program execution.)
*おまけ(動画)!
(1) 田川寿美 (2) 浅丘ルリ子
(Click here ! to watch the Video of program execution.)
6)特徴検出による顔識別 ・・・・・・・👈動画はタイトルをクリック
(Click here ! to watch the Video of program execution.)
(美女三人を夫々別人として識別する)

7) Region of Interest Tracking :関心領域の追跡
i) 100m Race ・・・・・・・👈動画!
(Click here ! to watch the Video of program execution.)

ii) Horse Race ・・・・・・👈動画!
(Click here ! to watch the Video of program execution.)

iii) Car Race ・・・・・・・・👈動画!
(Click here ! to watch the Video of program execution.)

iv) Soccer (Multi ROI select) ・・・・・・・・・👈動画!
(Click here ! to watch the Video of program execution.)

8) 人の入退場数のカウント ・・・・・・・・・・・・・・・👈動画
(Click here ! to watch the Video of program execution.)

9) 残像軌跡を付けた西瓜の追跡 ・・・・・・・・・・👈動画
(Click here ! to watch the Video of program execution.)

10) Image及びVideoからTextの検出 ・・・・・・・👈動画
(Click here ! to watch the Video of program execution.)

11)DL+ OpenCVによる画風変換
i) 風景画の変換
原画

ゴッホ

北斎

ムンク

ii) ライブビデオの画風変換 ・・・・・・・・・・👈動画
(Click here ! to watch the Video of program execution.)

12) DL+ OpenCVによる画像内の区分け(Semantic
segmentation)


13) GIF(Graphics Interchange Format)動画/サングラスで変装出来るか?・・・・・・・👈動画
(Click here ! to watch the Video of program execution.)
(Create animated GIFs using OpenCV, Python, and ImageMagick)

14) YOLOとOpenCVによる対象物の識別

i) 静止画像内の対象物 ・・・・・・・・👈動画
(Click here ! to watch the Video of program execution.)
ii)動画内の対象物 ・・・・・・・・・・・・👈動画
(Click here ! to watch the Video of program execution.)
15) 背景ぼかし
i) normal
ii) blurred

*動画 ・・・・・・・・・・・・・・・・👈
(Click here ! to watch the Video of program execution.)
16) 居眠り検出
(OpenCV利用し目のアスペクト比を測定し0.3以下でアラーム起動)

*動画 ・・・・・・・・・・・・・・・・・・・・・👈
(Click here ! to watch the Video of program execution.)
17) Creating a Panorama of stitched image
(OpenCV利用で3枚の写真を一枚のパノラマに変換)

*動画 ・・・・・・・・・・・・・・・・・・・・・👈
(Click here ! to watch the Video of program execution.)
18) Kerasを利用して二つのラベル(スタイル、色)を識別する
(Multi-label classification with Kras)
(1) 6スタイルのサンプルを各々400個程度収集しdatasetを作成
(2)その約2,400個のデータを機械学習(DeapLanning)させる
⇒ GPU無しPC処理で約5時間かかった!

<処理結果>

(3)7種類のサンプル毎に色とスタイルをKerasで識別させる

<識別結果>

19) OpenCVとDeep Learning 利用してCaffeモデルでモノクロをカラーに変換する
処理プロセスの概要:
1) すべてのトレーニング画像をRGBカラースペースからLabカラースペースに変換します。 L:明度のみをエンコードします
a:緑 - 赤色をエンコードします
b:青 - 黄色をエンコードします
2) Lチャネルをネットワークへの入力として使用し、
ネットワークをトレーニングしてabチャネルを予測します。
3) 入力Lチャンネルと予測されたabチャンネルを組み合わせます
4)Lab画像をRGBに戻します

architecture for colorization of black and white images with deep learning

This is an image of Albert Einstein.
*プログラム実行動画・・・・👈
(Click here ! to watch the Video of program execution.)
20) Video classification with Keras and Deep Learning
(1)下記三種類のスポーツの画像を大量に機械トレーニングさせる
Weightlifting: 577 images
Football (i.e., soccer): 799 images
Tennis: 718 images
(2)下記三種類のビデオを読込ませる

Weightlifting Video

Football Video

Tennis
(3)プログラムを実行しビデオ内のスポーツを認識させラベルを表示する‥‥👈プログラム実行動画
(Click here ! to watch the Video of program execution.)

21) OpenCV + HTML利用で映像内の移動部を検出し赤枠で囲む ‥‥👈プログラム実行動画
(Click here ! to watch the Video of program execution.)

22) OpenCVとPythonで顔をぼかして匿名化する ‥‥👈プログラム実行動画
(Click here ! to watch the Video of program execution.)

Simple
Blur
Pixel Anonymize
23) OpenCVとPython でマーカー検出
1) マーカーには下記に示す様な物があるが、今回はArUcoマーカーを利用し
ビデオカメラで同時に複数のマーカーを検出する実験です。
i) バーコード:既に貼ってある物も多いので、貼り付けコストなしで、商品を確実に1個1個確認していく
ii) QRコード:1つずつのコードを、スピードを気にせずに読む場合は、気軽にスマホから読めるので、扱いやすい

iii) ArUco:パターン数が少ない物の位置などを、一回の撮影で何百個と同時に認識できる

プログラム実行動画 ‥‥‥‥👈ここをクリックする!
(Click here ! to watch the Video of program execution.)
2) 4つのArUcoマーカーで作った枠内に動画を張り付ける
OpenCV_Video_Augument_Reality
プログラム#1 プログラム#2
プログラム#1の実行動画 ・・・・・・・・・👈ここをクリックする!
(Click here ! to watch the Video of program execution.)
プログラム#2の実行動画 ・・・・・・・・・👈ここをクリックする!
(Click here ! to watch the Video of program execution.)
24) OpenCVとscikit-imageを利用して写真画像のヒストグラムを合わせる

25) OpenCV利用で炎ビデオの温度測定
Thermalカメラが無いのRGMVision ThermalCAMから抽出されたサンプル ビデオ シーケンスデータ
を使用する。

#プログラムの実行動画 ・・・・・・・・・👈ここをクリックする!
(Click here ! to watch the Video of program execution.)
26) OpenCV利用で顔面ビデオの温度測定
Thermalカメラが無いのRGMVision ThermalCAMから抽出されたサンプル ビデオ シーケンスデータ
を使用する。

#プログラムの実行動画 ・・・・・・・・・👈ここをクリックする!
(Click here ! to watch the Video of program execution.)
27) 参考資料
i) Computer vision using GoPro and Raspberry Pi
ii) OpenCV + Python using Raspberry Pi by Dr.Aldo Vargas
(python scription from https://github.com/alduxvm/rpi-opencv)
iii) Face recognition with OpenCV, Python, Deep Learning
(Dr.Adrian Rosebrock/Pyimagesearch)
<元に戻る>