Skip to content

Clay

Quickly generate word cloud Python module: wordcloud


Introduction

word-cloud is a very famous word in natural language processing domain. At first I thought it was just to calculate the frequency of the vocabulary and display the high-frequency words large.

But not only that, the shapes and the styles of characters are all learned not as simple as I thought.

I am a person who likes new things, so I came to study the wordcloud module in Python today and record my experience here.

Read More »Quickly generate word cloud Python module: wordcloud

Use Python PIL module to merge two images


Introduction

Recently, because I have been studying the interface of the program, I got many strange problems.

I want to record today is how to merge two pictures. I found that if I simply use the composite() function in PIL, the second picture will be overwritten by the first picture. So, I started to try convert the background of the second picture to transparent.

After converting the image to a transparent background, the result of the merging is quite natural to me.

I will start to introduce how to merge two pictures in below.

Read More »Use Python PIL module to merge two images

[Solved][Python] AttributeError: module ‘win32ctypes.pywin32.win32api’ has no attribute ‘error’

Display Python code on the screen

Introduction

Today I used PyInstaller to package my Python program to execute file on Windows, I got an error message:

AttributeError: module 'win32ctypes.pywin32.win32api' has no attribute 'error'

After I searching some information on Internet, I found it is a common problem about icon picture of our GUI program. The icon need to use the .ico file, but I use a .png file.

This icon is on the computer desktop dock, not the icon on the program window.

Read More »[Solved][Python] AttributeError: module ‘win32ctypes.pywin32.win32api’ has no attribute ‘error’
Exit mobile version