Tool2DXF

From photo to DXF — digitize your tools in seconds.

Introduction

My Tool2DXF software takes a simple photo of a tool placed on a sheet of paper and automatically extracts its outline as a scaled DXF file ready for CAD or CNC use. The process begins by detecting the rectangular paper sheet in the image and using its known dimensions to calibrate scale. The photo is then perspective-corrected so the paper appears flat and true to size. After calibration, the software isolates the tool from the background, finds its contour, and allows interactive refinement through a built-in editor where you can adjust or redraw parts of the outline if needed. Once the outline is finalized, the contour is converted into real-world millimeter coordinates, offset if desired, and saved as a closed polyline inside a DXF file. Along the way, debug images of each step are saved, making it easy to verify the detection process. This workflow ensures accurate, scaled outlines from just a single photo, making it ideal for digitizing tools or parts for design and manufacturing. if you find this interresting check it out at the following link: https://github.com/lahn92/ToolToDXF

Animation showing the steps of Tool2DXF