I had an idea of installing a webcam about my CNC pointing down and placing a cube with a QR like image on its top surface somewhere on my CNC bed then sending this information to OpenBuilds Control. Does anyone know if this is possible or already been done? I am not sure if the OpenBuilds software can receive a command from an external program and move to those coordinates, but I would like to give it a try. I code most of my desktop apps in Visual Studio C# - would have to research a LOT about webcam interfacing, how to calibrate the corners of my bed and the correct for lens distortion as well as finding the cube then converting it into physical coordinates. I am just kinda looking for some input if anyone has any thoughts. The main use would be to auto locate the corner of my workpiece. Thanks in advance. All comments or ideas are welcome.
No kidding we were just discussing this same idea, yesterday in a Think Tank Talk here at OpenBuilds HQ! We feel it could be done but there are a lot of projects in the works so this is one of those in the back burner for us for now but if your diving in it will be great to see what your findings are.
Do you think I should maybe look at a library in JavaScript then? Not sure of the limitations about gathering web cam feeds and processing inside a website but if I could magically have that working tomorrow it might be easier to implement. I would also probably want to make sure there is safety features like the spindle being off and a picture taken prior to the cube then a picture afterwards to compare and make sure an arm isn’t still in the way.
Optical Mark recognition · Issue #354 · LaserWeb/LaserWeb4 is some shelved work from a past (pre OpenBuilds) life you can play with. CONTROL is JS yes. API isn't all that documented but the source code will tell you all you need to know: OpenBuilds/OpenBuilds-CONTROL To integrate into CONTROL checkout the JS macros: Help getting started with Javascript Macros in Control...