반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- Google Excel
- Tkinter
- PostgreSQL
- dataframe
- list
- Mac
- matplotlib
- Python
- array
- gas
- google apps script
- SQL
- Apache
- Java
- 파이썬
- GIT
- PANDAS
- numpy
- PySpark
- Redshift
- django
- Kotlin
- c#
- Google Spreadsheet
- string
- hive
- Excel
- Github
- math
Archives
- Today
- Total
목록ascii art (1)
달나라 노트
Image를 ASCII Character art로 변환하기 in Python
image를 ASCII character를 이용한 그림으로 변환할 수 있습니다. 변환할 image인 apple.png는 다음과 같습니다. apple 로고를 변환해볼게요. import PIL.Image # list of ascii characters used when convert image to ascii text list_ascii_chars = ['@', '#', 'S', '%', '?', '*', '+', ';', ':', ',', '.'] # resize image according to a new width def resize_image(pil_obj_image, new_width): width, height = pil_obj_image.size # obj_image = image object ..
Python/Python ETC
2021. 4. 1. 03:06