Get the App
SLTechnology News&Howtos  ›  Development  › 

How to use Python to make a confession picture

Shulou Source: shulou.com Published: 2022-06-02 19:29:21 10月03日 Update

This article mainly explains "how to make confession pictures with Python". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let Xiaobian take you to learn "how to make confession pictures with Python"!

Turtles are commonly used in Python to draw

Yeah, the little turtle that painted the cherry tree.

Now we can draw a cherry tree full of love

Of course, you can also draw a heart, and then add a lyrics of a confession balloon.

It looks a little bit better than the static heart drawn with the cardioid function

But it doesn't seem to be anything special.

Except for drawing hearts.

Another common routine is to use photos to routine

Twisting pictures of girls.

Like cut it into hearts or hide some love in it.

This article shares how to insert word clouds into photos

Make a special word cloud card with Python

First prepare a text, chat history or love words

We also used the lyrics of the confession balloon as an example

Then prepare a photo, whether it's a net photo or a photo of a circle of friends, we'll cut one from the confession balloon mv.

Then use opencv in Python to extract the people in the photo

And then use this image to generate word clouds using wordcloud

Finally, use PIL to synthesize the two images

At this point, I believe everyone has a deeper understanding of "how to make confession pictures with Python," so let's actually operate it! Here is the website, more related content can enter the relevant channels for inquiry, pay attention to us, continue to learn!

Tags: Photos production love pictures confessions balloons content routines that is love words friends cherry trees lyrics cherry blossoms preparation learning good-looking practical deeper useful Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information Docker Shulou Tech Info Huawei Redmi