Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to make Nail Winding drawing with python idea

Shulou Source: shulou.com Published: 2022-06-01 11:37:36 10月01日 Update

This article mainly introduces "how to use python idea to make nail winding painting". In daily operation, I believe many people have doubts about how to use python idea to make nail winding painting. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful for you to answer the doubt of "how to use python idea to make nail winding painting". Next, please follow the editor to study!

Generate nail winding code

Open the StringArtGenerator website https://halfmonty.github.io/StringArtGenerator/

Be careful

Number of Number of Pins nails number of Number of Lines winding

Choose the avatar you are interested in (such as IU Li Zhien)

The website is relatively slow, waiting for dozens of seconds. It will automatically analyze the picture and generate the nail code of the winding diagram.

Copy and paste the numbers in the picture into the winding chart .txt

Production material

If Taobao directly search the nail winding map, the price is probably more than 100 yuan, too expensive.

Python part

The process of winding is very boring, if you look at the numbers while winding is too slow. We can consider turning the nail code into audio and listening to the reading with the head down and winding the wire.

Text to audio code, need to use the pyttsx3 library.

Import pyttsx3

# initialization

Engine = pyttsx3.init ()

# read winding digits

Nums = open ("winding chart .txt"). Read (). Split (',')

For num in nums:

Engine.say (num)

# Note, there is no sound without this sentence

Engine.runAndWait ()

When the code is running, the sound interval is about 3s, and the speed is moderate. You can wind the wire according to the rhythm of the code. The whole process is about 3.3h (4000 times).

At this point, the study on "how to use python idea to make nail winding painting" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Tags: Nails production line drawings learning code numbers websites pictures sound more follow audio help generation practical moderate boring next price the whole process Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Linux OPPO Reno Apple NVidia