A small python program, runs a camera, takes a photo then creates gcode to allow a cnc machine to draw it.
				
			
		| GCODE_CHEATSHEET.txt | ||
| main.py | ||
| pngToSvgTest.py | ||
| README.md | ||
| svg_to_gcode.zip | ||
| svgToGcodeTest.py | ||
| test.gcode | ||
CNSelfie
CNC machine that draws your selfies!
Requirements
To run this you will need to install opencv-python and an altered version of svg_to_gcode, to do this make sure you dont have any other open-cv versions installed then run:
pip install opencv-python
and
pip install svg-to-gcode
Once you've installed svg-to-gcode, replace its file (in site-packages) with the zip file in this repo
This should also install numpy if you dont already have that
You might also find knowing a bit about G-Code will be helpful too, I didnt know much about how it actually worked until now, I found this guide very helpful
Todo
- Allow user to take photos
 - Generate edges from photo
 - Convert edges to vector (probably using potrace)
 - Convert vector to G-Code (give this a look)
 - QoL changes to edge detection