An open API service indexing awesome lists of open source software.

https://github.com/icingworld/pic2character

图像转字符画
https://github.com/icingworld/pic2character

character-drawing opencv-python python

Last synced: about 1 year ago
JSON representation

图像转字符画

Awesome Lists containing this project

README

          

## 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](/preview/234.jpeg)

Translated

![Translated](/preview/trans.jpg)