One of the recommended tools is Depix, a tool to recover passwords from pixelated screenshots.
Depix is a Python tool for restoring passwords from mosaic pictures. The algorithm utilizes a linear box filter to process the contents of each block individually. For each block, it will search for all the blocks in the image that are pixelated and then check and match similar content.
Restore process:
Example image
1 Clone the project
git clone https://github.com/beurtschipper/Depix.git
2 Install dependencies
cd Depix
python -m pip install -r requirements.txt
3 Run Depix
python depix.py -p /path/to/your/input/image.png -s images/searchimages/debruinseq_notepad_Windows10_closeAndSpaced.png -o /path/to/your/output.png
4 Run the following command to start identifying
python3 depix.py -p images/testimages/testimage3_pixels.png -s images/searchimages/debruinseq_notepad_Windows10_closeAndSpaced.png
Outcome:
python3 depix.py -p images/testimages/sublime_screenshot_pixels_gimp.png -s images/searchimages/debruin_sublime_Linux_small.png --backgroundcolor 40,41,35 --averagetype linear
Outcome:
At present, Depix still has great limitations, it can only recognize English letters and numbers, and Chinese is not yet supported. At the same time, the mosaic of the identified object must conform to the coding style of the “search set”, so that it can be accurately identified. Replace it with a mosaic generated by another algorithm, and the model may become invalid. If you are interested, you can give it a try。