Skip to content
/ -svg- Public

将图像文件转为svg图,并通过python的turtle库将其描画出来。

Notifications You must be signed in to change notification settings

Hownone/-svg-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

位图转矢量图绘画

将图像文件转为svg图,并通过python的turtle库将其描画出来。 无论是现实世界中的图像,还是二次元的图像都可以。

python中运用到的库

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 ,注意事项如上。

About

将图像文件转为svg图,并通过python的turtle库将其描画出来。

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages