✉️

Image to DXF

Lessons Learned

  1. Some problems are just easier (and occansionally more efficient) if you find ways to ignore them

---

When working on projects that need DXF (Drawing Exchange Format) files, like CNC and 3D printing, I found it tedious to go into CorelDraw to trace images I wanted to work with. This also seemed to be a sentiment held by one of my professors when 3D printing Loras merchandise, so I started work on this program. I found it difficult to account for the variety of detail in various photos, so instead I made it really easy to use guess and check. This was one of my first projects in Python that utilized a GUI. Some problems are just easier (and occasionally more efficient) if you find ways to ignore them. Below is the simple GUI that the application uses.

GUI

The application's GUI


Then a simple example using a very clear image of a smiley face,

simple smiley face

A simple smiley face drawing

preview mode of smiley face

The preview the application gives

resulting DXF of smiley

Viewing the resulting DXF file using an online tool


To showcase a more complex use case I've used the photo of me and the mannequin from my time testing AI enabled movement at Deere,

Me and mannequin

A photo of me and a mannequin

preview mode of me and mannequin

The preview the application gives

resulting DXF of me and mannequin

Viewing the resulting DXF file using an online tool


While there is some obvious room for improvement (me missing my face) much of that can be handled by fine-tuning the tolerances used. This tool has saved at least one person from having to hand (mouse?) draw vectors and I call that a success!

Related Projects