opencv_dnn:samples:segmentation

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
opencv_dnn:segmentation [2018/09/28 20:40] – [動かしてみよう] babaopencv_dnn:samples:segmentation [2019/07/30 09:54] (現在) – ↷ opencv_dnn:segmentation から opencv_dnn:samples:segmentation へページを移動しました。 baba
行 1: 行 1:
 +{{indexmenu_n>6}}
 ====== Semantic Segmentation ====== ====== Semantic Segmentation ======
 ここではOpenCVに実装された,領域分割(Semantic Segmentation)に関して使い方を解説します. ここではOpenCVに実装された,領域分割(Semantic Segmentation)に関して使い方を解説します.
行 5: 行 6:
 という問は変わりませんが,これがより詳細になり,「どのあたりになにがあるか?」までがわかるように という問は変わりませんが,これがより詳細になり,「どのあたりになにがあるか?」までがわかるように
 なります. なります.
 +  * このSegmentationをoFのaddonとしてまとめたものをgithubにおいています。 
 +    * https://github.com/TetsuakiBaba/ofxOpenCvDnnSegmentation
 {{:opencv_dnn:20180227180905.png?400|}} {{:opencv_dnn:20180227180905.png?400|}}
 https://wiki.tum.de/display/lfdv/Image+Semantic+Segmentation https://wiki.tum.de/display/lfdv/Image+Semantic+Segmentation
  
-===== 動かしてみよう ===== +OpenCVで確認できるセグメンテーションの手法として,下記の2つが利用できるのを確認しました. 
-  $ ./example_dnn_segmentation --classes=pascal-classes.txt  --config=fcn8s-heavy-pascal.prototxt  --model=fcn8s-heavy-pascal.caffemodel  --width=500 --height=500 --rgb  --mean=100+  * FCN(Fully Conncected Network):https://github.com/shelhamer/fcn.berkeleyvision.org 
 +    * 一般的な全結合型ネットワークを領域分割に応用したもの. 
 +  * Enet:https://github.com/TimoSaemann/ENet 
 +    * 領域分割をリアルタイム処理をするためのアルゴリズム 
 +===== FCN ===== 
 +https://github.com/shelhamer/fcn.berkeleyvision.org に一通りの情報がまとまっています.このページではFCN-32s PASCAL を使ってみます.FCN-32s PASCALへのリンクをたどり次のサイトにいくといろいろデータもらえます. 
 +  * {{ :opencv_dnn:fcn32s-heavy-pascal.caffemodel |}} 
 +  * {{ :opencv_dnn:fcn32s-heavy-pascal.prototxt |}} 
 +  * {{ :opencv_dnn:pascal-classes.txt |}} 
 + 
 + 
 +  $ ./example_dnn_segmentation --classes=pascal-classes.txt  --config=fcn8s-heavy-pascal.prototxt  --model=fcn8s-heavy-pascal.caffemodel  --width=500 --height=500 --rgb  --mean=
 + 
 +===== Enet ===== 
 +高速で動作可能な領域分割です.https://www.pyimagesearch.com/2018/09/03/semantic-segmentation-with-opencv-and-deep-learning/ も参考にすると良いでしょう. 
 +  * {{ :opencv_dnn:categories.txt |}} 
 +  * {{ :opencv_dnn:enet-model-best.net |}} 
  
 +  $ ./example_dnn_segmentation enet --zoo=../../dnn/models.yml --classes=categories.txt --model=Enet-model-best.net  --width=1024 --height=512 --rgb --mean=1 
 +  
 +Enetを学習させるには下記のEnet作者による github ページを参照しましょう。
 +  * https://github.com/TimoSaemann/ENet/tree/master/Tutorial
  
 +  * Reference
 +    * http://atkg.hatenablog.com/entry/2018/12/10/215224
  • /home/users/2/lolipop.jp-4404d470cd64c603/web/ws/data/attic/opencv_dnn/samples/segmentation.1538134804.txt.gz
  • 最終更新: 2018/09/28 20:40
  • by baba