python实战小项目——图片转换为字符画

简介: python实战小项目——图片转换为字符画

1.所需外部库

    Pillow库

2.实操代码

1. # 导入所需的库
2. from PIL import Image
3. 
4. # 定义字符画中所使用的字符集合
5. ascii_char = list("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!@#$%^&*()_+-=[]{}|;':\",./<>?\\ ")
6. 
7. # 将256个灰度值映射到70个字符上
8. def get_char(r, g, b, alpha=256):
9. if alpha == 0:
10. return ' '
11.     length = len(ascii_char)
12.     gray = int(0.2126 * r + 0.7152 * g + 0.0722 * b)
13. 
14.     unit = (256.0 + 1) / length
15. return ascii_char[int(gray / unit)]
16. 
17. # 将图片转换为字符画
18. def image_to_ascii(image_path, width=100):
19.     im = Image.open(image_path)
20.     im = im.resize((width, int(width * im.size[1] / im.size[0])))
21.     txt = ""
22. for i in range(im.size[1]):
23. for j in range(im.size[0]):
24.             txt += get_char(*im.getpixel((j, i)))
25.         txt += '\n'
26. return txt
27. 
28. # 测试
29. if __name__ == '__main__':
30. print(image_to_ascii('test.jpg'))

3.实战测试效果

31deecc0b94f4bc78f2c88b106429bff.jpg

1. \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
2. \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
3. \\\\\\\\\\\\\\\\\\\\\|MFGLX]?\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
4. \\\\\\\\\\\\\\\\\\\\\FL=)#LaoV.\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
5. \\\\\\\\\\\\\\\\\\\\\&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\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

1. 1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
2. 1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
3. 1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
4. 1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
5. 1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
6. 1111111111111111111111111111111111111111111111111111111111111111111111111111112111111111111111111111
7. 1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
8. 1111111111111111111rt11111111111111111111111111111111111111111111111111111111rj111111111111111111111
9. 1111111111111111111ADd121111111111111111111111111111111111111111111111111111rDA111111111111111111111
10. 1111111111111111111qasj1111111111111111111111111111111111111111111111111111kvau211111111111111111111
11. 1111111111111111118B7aDd11111111111111111111111111111111111111111111111111eDa8Ea11111111111111111111
12. 111111111111111111gz88bBe111111111111111111111111111111111111111111111111fGb88zb11111111111111111111
13. 111111111111111111tx8l9bHf11111111111111111111111111111111111111111111114Bd8k8wr11111111111111111111
14. 111111111111111111on9Ny6cF71111111111111111111111111111111300000000000a9vf6uN8oo11111111111111111111
15. 111111111111111111viaSZv7driihedddddddevCBBABAAAAussssssssyIIIIIIIIIDBBsh6qYSaiv11111111111111111111
16. 111111111111111111IefUZYr6bhhhdddddddddbbbbabbbbb000000000966666666655665mVZUfeI11111111111111111111
17. 111111111111111121wakWXYWrbdccffffffffegjkkjjjjkjnpoooooooqtuuuuuuttwzyyzSZXXkaw11111111111111111111
18. 111111111111111115w8pZXXYWSTTSVWWWWWWVWWXXWWXXWWXXYYYYYXYYYYYYYYYYYYZZ!!!YWXZp8w41111111111111111111
19. 11111111111111111aD6vZXXXXYYYYYYYYYYYXYXYYXYYYYYYXYYYYYYYYXXYYXYYYYYXXXXXXXWZw6D01111111111111111111
20. 111111111111111118s7BZXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXWWXXXXXXXXXXXXXXZD7q71111111111111111111
21. 111111111111111119k7HZXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXWWXWXXXXXXXXXXXXXXXXXXZJ7md1111111111111111111
22. 11111111111111111on8NZXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXYO0no1111111111111111111
23. 11111111111111111iibRYXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXYSdfj1111111111111111111
24. 11111111111111111xdfVXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXWXXWhbA1111111111111111111
25. 11111111111111112D0jYXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXYn8J7111111111111111111
26. 1111111111111111aK7qZXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXYt6G0111111111111111111
27. 1111111111111111aB6wZXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXZA6w0111111111111111111
28. 1111111111111111au6BZXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXZG6vm111111111111111111
29. 1111111111111111rv7HZXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXZL9qq111111111111111111
30. 1111111111111111on0NYXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXYRaij111111111111111111
31. 1111111111111111mgbSYXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXUedy111111111111111111
32. 1111111111111111EdfUXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXYWkaz111111111111111111
33. 1111111111111111yakWYXXXXXXXXXXXXXXXXXWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXYp8n111111111111111111
34. 1111111111111111n9qYXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXWXXX!w6v711111111111111111
35. 1111111111111116v7vZXXXXXXXXXXXXXXXXXYXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXZC7t711111111111111111
36. 1111111111111119u7BZXXXXXXXXXXXXXWXXYYZZZZZYYXXXWXXXXXXXXXXXXXXXXXXXXWXXXYZZZZ@K7pk12111111111111111
37. 111111111111111en8IYWXXXXXXXXXXXXYZYUNFBBCIPVZYXXXXXXXXXXXXXXXXXXXXXXXXZYTMFCBDB8nv11111111111111111
38. 111111111111111qo9NYXXXXXXXXXXXWYWHqe8654570hvMYYXXWXXXXXXXXXXXXXXXXXZWGoe8644578bCBd111111111111111
39. 111111111111111DicRYXWXXXXXXXXYZJk849hszBype759nKZYWXXXXXXXXXXXXXXXYYIj850itAByoe75fvyd1111111111111
40. 111111111111111GdgUYXXXXXXXXWYWv05dE%'./</,{Yyc59sTZXWXXXXXXXXXXXXYVu86gH&;.<</,]Xwa4fAq111111111111
41. 111111111111111x0kXXXXXXXXXXZSn68A->>/...../>/_A05hQZXXXXXXXXXXXXZRk69D]></...../>/*y87sn31111111111
42. 111111111111117F7qYWXXXXXXWYTk5dV/<...........</#i5gRYXXXXXXXXXXYRh5fY<<...........<<!g6su1111111111
43. 111111111111110D6wZXXXXXXXYWm5f^>..............>?=m4pXXXXXXXXXXYUk5k_>/............//:(j7wb111111111
44. 111111111111119s6CZXXXXXXXZz6d&>............../$vAPd0MZXXXXXXXXZv6g_>............./'AgsKahA111111111
45. 11111111111111mr6IZXXXXXXYSd7T?............../]f66kr7zZXXXXXXWYPb8W>..............<L486pp0s111111111
46. 11111111111111po9MZXXXXXXZF6n:/........//....<*899cw6tZXWXXXXWZC5r,/........./..../x609hv0l111111111
47. 11111111111111ihbRYXXXXXXZy3E>.......<>.,/><./'n55sA5xZXXXXXXWZw4H?....../>>.,<><.<U764zx9o111111111
48. 11111111111111mcfVYXXWXXXZC6s./....<.#FspuJ(/</=IK_l7HZYXXXXXXZA4w<.....>"!DrpvM_/>.RuH)hcF111111111
49. 11111111111111wakXYXXYXXXYQb8O<>/>>*u946654aA->??\N6fTYXXXXXXXYN00R>><<>%q846655bD{?>?\J5qs111111111
50. 11111111111114v8qYYXXXXXXXZy78A*}-Ib5ctGJDo05fQ|:Ra7CZWXXXXXXXXYw79D({+Fa5ctHJDn95hS;'O0bB2111111111
51. 11111111111110C6wZXXXXXXXXXXx050gc58oPZZZZYLk67ij87rYYXXXXXXXXXXXv95agb58rQZZZZYJi78ij70xd1111111111
52. 1111111111111nA6BZXXXXXXXXXYZLpdablGYYXWWXXZWAf87dzXXWXXXXXXXXXXWYKodablHYYXWWXX!O000blDd11111111111
53. 1111111111111sv7IZXXXXXXXXXXXZYSPRXZYXXXXXXXXZUMLTZXXXXXXXXXXXXXXXZYTPRXYXXXXXXXYTcdPGq6121111111111
54. 1111111111111nm9NYXXXXXXXXXXXXXYYYXXXXXXXXXXXWYZZYXWXXXXXXXXXXXXXXWXYYYXXXXXXXXXYVhcE111111111111111
55. 1111111111111ChbRYXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXYn9t111111111111111
56. 1111111111111FdgUYXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXZs7A711111111111111
57. 1111111111121u0mXYXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXZz6y911111111111111
58. 1111111111126v7qZXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXZF7n611111111111111
59. 111111111111aC6wZXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXWXXXXXXXXXWXXWXXZL8ni11111111111111
60. 1111111111118r7DZWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXZYYQakk11111111111111
61. 1111111111118k8JZXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXYXXXXXXXXXXYXYVJUYUfey12111111111111
62. 111111111111mn0NYXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXYZZYXXXXXXXYWo6yZYiaD21111111111111
63. 111111111111licRYXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXYRqAXYXXXXXYXs7aJYYq7Ma1111111111111
64. 111111111111CcgVXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXZJ67nQZXXXYZv70GZXZw6Ca1111111111111
65. 111111111114G0lYXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXYWAa6eFYYXYy89CZXXZC6ta1111111111111
66. 11111111111aM7rZXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXYZNk78rT!B98yZYXXZI7uq1111111111111
67. 111111111119A6xZXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXZVw06hw07vZYXXXYN0mm1111111111111
68. 11111111111gv5D!WXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXWYYKh677tYXWWXXXTbfs1111111111111
69. 11111111111tv7IZXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXZTs8qWYXXXXXXVgcE1111111111111
70. 11111111111nm0NZXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXWYYJUYWXXXXXXYm0s1111111111111
71. 11111111111lfbRYXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXZYXXXXXXXXZs8m2111111111111
72. 11111111111CcgVYXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXYZy7w8111111111111
73. 11111111111walWYXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXYE7p9111111111111
74. 11111111112o7rZXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXYL8oo111111111111
75. 11111111119A6wZXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXYQakw111111111111
76. 11111111117s7DZXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXYUffJ111111111111
77. 1111111111kq7IZXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXWXXjay111111111111
78. 1111111111rn9OYXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXZo8G711111111111
79. 1111111111JhdRYXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXWXXZv6E911111111111
80. 1111111111DchUXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXWXXZC6s711111111111
81. 1111111122y0mYYXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXZI7rm11111111111
82. 1111111110I7rZYXWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXYN0no11111111111
83. 1111111110A7xZXXWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXYScff12111111111
84. 1111111118q6EZXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXVgbv21111111111
85. 111111111lp7JYXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXmau11111111111
86. 111111111nn0OYXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXYs7z71111111111
87. 111111111gfcTYXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXZz5Ab1111111111
88. 111111111vcgWYXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXZF6zs1111111111
89. 111111117M9mXXXXXXXXXXXXWWWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXWXXXXXXXXXXXZL8qq1111111111
90. 11111111aJ7s!ZZZZZZZZZZZZZZZZZZZZZZZZZZZYYYZZZZZZZZZZZZZYYYZZZZZYYYYYZZZZYZZZZZZZZZZZZTajo1111111111
91. 111111110z7kyxxxxxxxxxxxxyxxxyyyxxxxxxxxyyyxxxyxxxxxxxxxyyyxyxyyyxyxyxxxyxyxxxyxxxxxxywafF1111111111
92. 111111118r898888888888888888888888888888888888888888888888888888888888888888888888888880dA1111111111
93. 111111114keeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeefl1111111111
94. 1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
95. 1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
96. 1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
97. 1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
98. 1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
99. 1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
100. 1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
相关文章
|
5天前
|
数据采集 机器学习/深度学习 人工智能
Python编程入门:从基础到实战
【10月更文挑战第36天】本文将带你走进Python的世界,从基础语法出发,逐步深入到实际项目应用。我们将一起探索Python的简洁与强大,通过实例学习如何运用Python解决问题。无论你是编程新手还是希望扩展技能的老手,这篇文章都将为你提供有价值的指导和灵感。让我们一起开启Python编程之旅,用代码书写想法,创造可能。
|
5天前
|
人工智能 Shell 开发工具
[oeasy]python0041_输出ASCII码表_英文字符编码_键盘字符_ISO_646
本文介绍了ASCII码表的生成与使用,包括英文字符、数字和符号的编码。通过Python代码遍历0到127的ASCII值,解决了找不到竖线符号的问题,并解释了ASCII码的固定映射关系及其重要性。文章还介绍了ASCII码的历史背景,以及它如何成为国际标准ISO 646。最后,通过安装`ascii`程序展示了完整的ASCII码表。
6 1
|
5天前
|
机器学习/深度学习 数据可视化 数据处理
Python数据科学:从基础到实战
Python数据科学:从基础到实战
12 1
|
6天前
|
机器学习/深度学习 JSON API
Python编程实战:构建一个简单的天气预报应用
Python编程实战:构建一个简单的天气预报应用
16 1
|
2天前
|
数据采集 存储 数据处理
探索Python中的异步编程:从基础到实战
【10月更文挑战第39天】在编程世界中,时间就是效率的代名词。Python的异步编程特性,如同给程序穿上了一双翅膀,让它们在执行任务时飞得更高、更快。本文将带你领略Python异步编程的魅力,从理解其背后的原理到掌握实际应用的技巧,我们不仅会讨论理论基础,还会通过实际代码示例,展示如何利用这些知识来提升你的程序性能。准备好让你的Python代码“起飞”了吗?让我们开始这场异步编程的旅程!
|
5天前
|
并行计算 数据挖掘 大数据
Python数据分析实战:利用Pandas处理大数据集
Python数据分析实战:利用Pandas处理大数据集
|
6月前
|
存储 计算机视觉 Python
python实现Gif图片的字符画
这是一个Python实战项目,旨在将GIF动态图转化为ASCII字符动画。项目适合有一定Python基础的学习者,主要使用os、imageio、PIL库。首先,代码导入所需库,然后通过PIL创建空白图片并添加文本。接着,程序读取GIF,拆分帧并转为字符画,存入“tmp”目录。同时,代码提供了清空“tmp”目录、将灰度值映射为ASCII字符、将图片处理成字符画的函数。此外,还有创建新画布和合成GIF的步骤。主函数调用这些模块,最终将ASCII字符画合并成GIF。项目展示了将动态图像转换为ASCII艺术的过程。
|
6月前
|
Python
在Python中实现图片转字符画灰度处理或灰色量化
在Python中实现图片转字符画灰度处理或灰色量化
63 1
|
6月前
|
计算机视觉 Python
在Python中实现图片转字符画打开图片
在Python中实现图片转字符画打开图片
45 1
|
6月前
|
Python
在Python中实现图片转字符画导入所需库
在Python中实现图片转字符画导入所需库
29 1