Commit 804598b0 by BellCodeEditor

save project

parent 159bd442
Showing with 2 additions and 1 deletions
...@@ -10,7 +10,8 @@ data=numpy.array(img) ...@@ -10,7 +10,8 @@ data=numpy.array(img)
img_colors=wordcloud.ImageColorGenerator(data) img_colors=wordcloud.ImageColorGenerator(data)
w=wordcloud.WordCloud(background_color="white", w=wordcloud.WordCloud(background_color="white",
font_path='Simhei.ttf') font_path='Simhei.ttf',
mask=data,color_func=img_colors)
w.generate(text) w.generate(text)
......
mycloud.png

74.9 KB

Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment