https://github.com/icingworld/pic2character
图像转字符画
https://github.com/icingworld/pic2character
character-drawing opencv-python python
Last synced: about 1 year ago
JSON representation
图像转字符画
- Host: GitHub
- URL: https://github.com/icingworld/pic2character
- Owner: Icingworld
- Created: 2021-07-05T06:05:44.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2023-06-16T09:45:47.000Z (about 3 years ago)
- Last Synced: 2025-05-29T18:14:12.364Z (about 1 year ago)
- Topics: character-drawing, opencv-python, python
- Language: Python
- Homepage:
- Size: 191 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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

Translated
