How do you tell a blind CNC router where a printed sheet is actually sitting on the bed? Over the summer of 2026, I built CNCVision to solve that problem on our existing Thermwood router, using ChatGPT and Codex as my main coding tools while I directed the architecture, hardware integration, and machine testing.
Hardware and controller hurdles
Getting a camera onto a live router and talking to an older controller brought a few headaches:
- Surviving the gantry: I had to find an affordable industrial camera that could handle vibration and stress mounted directly beside a router spindle, then 3D-print an enclosure to keep out wood dust and debris.
- Undocumented Ethernet packet limits: Exceeding the camera's undocumented maximum packet size silently killed the video stream. It took a while to track that down and tune it properly.
- No controller API: Thermwood doesn't expose an API or direct communication hook, so talking to the machine meant building a file-based workaround. A small program on the controller loops and listens for XY move requests, acknowledgements, session IDs, and status updates passed through files. The operator still keeps control of the machine's physical Cycle Start.
- Fighting AI safety refusals: Because a CNC router is industrial machinery, ChatGPT repeatedly pushed back on generating movement code, assuming it was unsafe even when the machine already had hard-coded limits and built-in safeties preventing what it was worried about.
How registration works
CNCVision is a native Windows C++ application using OpenCV. The camera locates black circular registration marks printed on the sheet, pairs those pixel coordinates with machine positions, and calculates the sheet's translation and rotation. From there, it outputs a new registered NC program that aligns the cutting paths to the printed graphics while preserving scale.

Staged commissioning began in July 2026 with camera-to-machine calibration, bounded moves, fixture offsets, and rotation checks. By August, it expanded from single job profiles to general jobs and automatic registration routes. Later updates pulled registration points straight from a dedicated operation inside an EnRoute NC file, cutting out manual prep.
Simplifying the interface and field testing
The operator UI went through heavy pruning: it started at 7 tabs, shrank to 3, and finally fit onto a single screen without losing capability. Most of that space came from stripping out everything except the decisions an operator actually needs to make, moving the rest into the backend.
Real shop testing shaped most of the fixes. Glare on printed sheets broke mark detection in ways that never happened at a desk. Logs exposed subtle timing and tracking bugs, and different production files uncovered controller quirks around tool changes and repeated coordinate rotations. Whenever a job failed on the machine, I used the saved captures and logs to reproduce the bug, add focused tests, and verify the fix against the original job files.
CNCVision now runs automatic registration routes and is used for cutting production sheets, with ongoing refinement to the UI and error recovery.
Back to the projects