import pygame ———— pip install pygame
import cv2 ———— pip install opencv-python
- main.py
-
- block = 8 (it's best)
-
- path = "" (path of picture)
-
- weight = [] (权重 the weight of pixel)
- qumo.py
-
- block = 15 (it's best)
-
- weight = []
- list.txt (字符集 characters to cover the picture)
- Keyboard.ttf (字体 form)
put a picture in the directory change the path in main.py run main.py directly or run qumo.py firstly
qumo.py get a new character.txt which contains weights of characters
main.py get a trans.jpg and a pygame window showing the progress of covering
Raw Picture
Translated