0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

鍵盤画像からの輪郭検出の練習PGM

Posted at

鍵盤画像からの輪郭検出の練習PGM

openCVを用いた輪郭検出の練習PGMです

今回作成したPGMのgithubURL: https://github.com/NanjoMiyako/RinkakuKensyutuTest1

処理手順

  1. makeOriginPicture.pyで元画像から鍵盤領域だけを抜き出した
    画像を取得
    2.RinkakuKensyutu.pyから1で作成した画像から輪郭領域を取得
    各輪郭の矩形範囲を描画

参考URL

Pythonを用いた画像処理(openCV,skimage) - Qiita

Python, OpenCVで画像ファイルの読み込み、保存(imread, imwrite) | note.nkmk.me [OpenCV][Python3]検出した輪郭を描画し、輪郭線を近似して滑らかにする - Qiita

参考素材

米津玄師【パプリカ】2020応援ソング 簡単ドレミ楽譜 初心者向け1本指ピアノ - YouTube

サンプル出力データ
参考画像1
concat.jpg

参考画像2
img_gray3.jpg

参考画像3
img_contour.jpg

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?