0

I need to generate a txt file with G-code in it from a black and white bitmap. In the other words, i need to cover the black area with traces for a CNC machine. I was thinking about transforming the bitmap into an array with coordinates of black pixels and then connect them to get the trace. Could You help me and give some advice, how to do it? I'd like to use Python, but I'm making something like this firs time and I'm not sure how to start, which methods/packets use etc.

I tried to use matplotlib and numpy, but I didn't find anything specified to my problem.

Thanks for any help!

0 Answers0