itumo-arigatone / auto_tsumu

I want automatic play tool for tsumu-tsumu.
MIT License
2 stars 1 forks source link

Improvements in the identification process of Tsumu #12

Open itumo-arigatone opened 3 years ago

itumo-arigatone commented 3 years ago

Improvements in the identification process of Tsumulus.

現在は、範囲内の色をRGBそれぞれ、4段階に分けているが微妙に色が変わってしまう。 緑は緑!みたいな認識してくれるようにしたいよね。 人間の顔面とプ〇さんの認識が怪しい。。

itumo-arigatone commented 3 years ago

人間の顔が黄色か赤になっちまうぜい。

itumo-arigatone commented 3 years ago

https://rikoubou.hatenablog.com/entry/2019/02/21/190310 ここで閾値みたいなの決めてる。これを元に動的に5つのツムを識別できるのでは

itumo-arigatone commented 3 years ago

hsvにすることによって結構改善された。 コントラストもいじるとグッド

itumo-arigatone commented 3 years ago

人と茶色ぽいツムがダブるから、もっとハッキリと分ける方法があれば良い。。 案: 円の範囲の中で面積を1番多くを占めている色を抽出する?

現在は特定の範囲の平均値を取得している。

itumo-arigatone commented 3 years ago

なんかhsvのhだけで色は判断できるという噂があるから平均値出すのhだけでいい説が浮上

itumo-arigatone commented 3 years ago

マジでHueだけで判断したほうが精度いい... 似た色を出さないツムツムだからこそできる技

itumo-arigatone commented 1 year ago

https://user-images.githubusercontent.com/65723443/232704280-44d44165-acb1-49df-b854-9fd5dfc906fb.MOV