Posted in cnc hacks Tagged gcode, Octoprint, opencv, path planning, webcam Post navigation Let us know in the comments if you’ve got some other good examples. We’ve seen a similar OpenCV approach used for center-finding bore holes, but while we’ve seen a few webcams used with laser cutters, the CNC mill applications seem largely untapped. Once you see the girl pirate robot that ’s daughter made, you’ll get the idea. This project is clearly an invitation to keep on hacking, an appetizer. But mounting a webcam to a CNC toolhead and using it for various pathing problems really opens up tons of possibilities: visual homing, workpiece edge finding, copying parts, custom fitting odd shapes, and more. Right now, it’s limited to paths with non-crossing lines, and probably with good contrast and a nice dark line - all the usual CV restrictions. The user can enter the usual milling parameters: speeds, feeds, depth of cut, tool offset, milling direction, etc. It starts off with a fiducial arrow for scale and orientation, then it mores the webcam around the scene. Under the hood, OpenCV is doing a lot of the image processing, including line detection, and the iterative “find the line” and “move the toolhead” steps really show off what computer vision can do. The code is on GitHub and there’s a demo video embedded below. The plugin lets you skip the modeling step entirely, going straight from a CNC-mounted webcam that reads your scribbles and gives you a Gcode toolpath in return. Aka hit us with a line-tracing plugin for OctoPrint that cuts out whatever 2D shape you draw on a piece of wood.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |