项目地址:
https://github.com/beurtschipper/Depix
python depix.py -p [pixelated rectangle image] -s [search sequence image] -o output.png
参数说明:
-p 打了马赛克的图片
-s 辅助解码的图片
测试图片和辅助图片都在image文件夹中有,image文件夹对应几个文件,应该跟操作系统有关?:
debruinseq.txt
debruinseq_notepad_Windows10_close.png
debruinseq_notepad_Windows10_closeAndSpaced.pngdebruinseq_notepad_Windows10_spaced.png
debruinseq_notepad_Windows7_close.png
如果python不行就换成python3
遇到什么问题去官网下的论坛找解决方案
https://github.com/beurtschipper/Depix/issues/12
我在测试时,python2报错:
INFO:root:Loading search image from ./images/searchimages/debruinseq_notepad_Win
dows7_close.png
INFO:root:Finding color rectangles from pixelated space
Traceback (most recent call last):
File “depix.py”, line 39, in <module>
pixelatedSubRectanges = findSameColorSubRectangles(pixelatedImage, pixelated
Rectange)
File “C:\Users\**\Desktop\Depix-main\Depix-main\depixlib\functions.py”, line
55, in findSameColorSubRectangles
sameColorRectange = findSameColorRectangle(pixelatedImage, (x, y), (maxx, ma
xy))
File “C:\Users\***\Desktop\Depix-main\Depix-main\depixlib\functions.py”, line
39, in findSameColorRectangle
return ColorRectange(color, (startx, starty), (startx + width, starty + heig
ht))
File “C:\Users\**\Desktop\Depix-main\Depix-main\depixlib\Rectangle.py”, line
21, in __init__
super(ColorRectange, self).__init__(startCoordinates, endCoordinates)
TypeError: super() argument 1 must be type, not classobj
python3是OK的:
就是耗时太长…..
测试图片:
测试结果图片:
呃…就多了这一点?效果堪忧。
ps:打码使用的QQ自带打码功能