https://github.com/luliyucoordinate/picturetocharacter
The picture is transformed into a character painting
https://github.com/luliyucoordinate/picturetocharacter
Last synced: 7 months ago
JSON representation
The picture is transformed into a character painting
- Host: GitHub
- URL: https://github.com/luliyucoordinate/picturetocharacter
- Owner: luliyucoordinate
- Created: 2018-02-09T02:29:02.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-09T11:02:09.000Z (over 7 years ago)
- Last Synced: 2025-01-22T00:32:49.459Z (9 months ago)
- Language: Python
- Size: 128 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PictureToCharacter
[](https://github.com/luliyucoordinate/PictureToCharacter)[](https://github.com/luliyucoordinate/PictureToCharacter)
Make picture transformed into a character painting
You should use the command to install some requirements for run
```shell
pip install -r requirements.txt
```### How to use
please put the picture which you want to transformed in the dir`PictureToCharacter\picture.png`
```shell
python PictureToCharacter.py picture.png
```you can use `--width` and `--height` to adjust the picture size.Example
```shell
python PictureToCharacter.py picture.png --width 20 --height 20
```Also,you can get the `.txt` of the character painting use `-o`or`--output`
```shell
python PictureToCharacter.py picture.png --width 20 --height 20 --output picture.txt
```then,you can use `picture.txt`.Look like this
```python
str_c = '''the content of picture.txt'''
print(str_c)
```