将图像文件转为svg图,并通过python的turtle库将其描画出来。 无论是现实世界中的图像,还是二次元的图像都可以。
beautifulsoup4
lxml
numpy
opencv-python
pywin32
potrace.exe 位图转换为矢量表示
基于多边形的位图轮廓矢量化算法
K-means 算法
SVG贝塞尔曲线指令
不能直接在pycharm或其他IDE上直接点击RUN运行,要在控制端Terminal上运行
1、在cmd上运行,python main.py 你想要转化的图片(如1.jpg),注意要在源程序相同的文件夹中输入指令
2、在pycharm里的terminal中输入python main.py 1.jpg ,注意事项如上。