Skip to content

Icingworld/Pic2Character

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pic2Character

What you need

import pygame ———— pip install pygame

import cv2 ———— pip install opencv-python

Something you can change

  • 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)

How to use

put a picture in the directory change the path in main.py run main.py directly or run qumo.py firstly

Result

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

Raw

Translated

Translated

Releases

No releases published

Packages

No packages published

Languages