https://teratail.com/questions/rm93y77mzdgpas?_from_e=e_qctq_showd
こちらの質問で、いろんな回答をいただいて、
ピクセル化された画像の解析をするまでになりました。
ですが、
C:\Users\〇〇>cd "C:\Users\〇〇\Dropbox\ダウンロード\Depix-docker"
C:\Users\〇〇\Dropbox\ダウンロード\Depix-docker>python depix.py -p moza.png -s ./images/searchimages/hirakana.png -o 解析完了moza.png
INFO:root:Loading pixelated image from moza.png
INFO:root:Loading search image from ./images/searchimages/hirakana.png
INFO:root:Finding color rectangles from pixelated space
INFO:root:Found 292 same color rectangles
INFO:root:204 rectangles left after moot filter
INFO:root:Found 15 different rectangle sizes
INFO:root:Finding matches in search image
INFO:root:Removing blocks with no matches
Traceback (most recent call last):
File "C:\Users\〇〇\Dropbox\ダウンロード\Depix-docker\depix.py", line 52, in <module>
pixelatedSubRectanges = dropEmptyRectangleMatches(rectangleMatches, pixelatedSubRectanges)
File "C:\Users\〇〇\Dropbox\ダウンロード\Depix-docker\depixlib\functions.py", line 149, in dropEmptyRectangleMatches
if len(rectangleMatches[(pixelatedSubRectange.x,pixelatedSubRectange.y)]) > 0:
KeyError: (0, 0)
という表示になり、エラーのため解析完了となりません。
こちらのエラーは、どのようにすればなくすことができますか?
よろしくお願いいたします。
あなたの回答
tips
プレビュー