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

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

Awesome Lists containing this project

README

          

# PictureToCharacter

[![license](https://img.shields.io/github/license/mashape/apistatus.svg)](https://github.com/luliyucoordinate/PictureToCharacter)[![PyPI](https://img.shields.io/pypi/pyversions/Django.svg)](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)
```