In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
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!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.