Vahe1994 / Deep-Vectorization-of-Technical-Drawings

Official Pytorch repository for Deep Vectorization of Technical Drawings https://arxiv.org/abs/2003.05471
Mozilla Public License 2.0
100 stars 16 forks source link

SVG results #27

Open eleveneee opened 1 year ago

eleveneee commented 1 year ago

First of all, thank you very much for your work! Is there any method to extract the coordinates of the points on the vector that are connected to the tail from the output SVG results? Looking forward to your reply!

Vahe1994 commented 1 year ago

Hello! Thank you for your kind words! I think I didn't quite get the question. Can you please clarify what do you mean by "vector that are connected to the tail "?

eleveneee commented 1 year ago

@Vahe1994 Thank you for your reply! What I want to express is: Is there any method to extract the coordinates of points from SVG results? And they are connected at the end.

Vahe1994 commented 1 year ago

Sorry for late answer. Unfortunately I don't think I know about existence of this kind of method.

Maybe, you can convert svg to bezier coord using this class https://github.com/Vahe1994/Deep-Vectorization-of-Technical-Drawings/blob/master/util_files/data/graphics/graphics.py (example this https://github.com/Vahe1994/Deep-Vectorization-of-Technical-Drawings/blob/2e4e5e3c8c291c31b64e23894c276e4443d0c7a6/util_files/data/vectordata/prepatched.py#L35) and than work with coordinates directly.

eleveneee commented 1 year ago

Thank you!I will try it.