Some executed projects
Monocular computer vision for metal-block centering on a CNC gripper
May 16th, 2024
I was contacted by an Italian metal-forming company to develop a computer vision system capable of determining whether a metal block was correctly centered between two bolts of a CNC gripper using a single camera.
I extended the original requirement beyond a simple aligned/misaligned classification. Using geometric projection principles inspired by epipolar geometry, I developed a method that estimates the degree of misalignment as a percentage. This continuous measurement provides substantially more information than a binary decision and enables the system to recalibrate itself with minimal human intervention.
The processing pipeline begins with a neural network that detects seven characteristic corners defining the position and orientation of the metal block, together with the two bolts used as alignment references. Based on these detected points, a geometric formulation projects the observed block position to estimate its desired centered location, shown in blue in the visualizations. The geometric formulation was developed independently from scratch, drawing on concepts related to epipolar and projective geometry and without LLM-based assistance.
The images below show the performance of the system on photographs collected directly from the production environment at the factory.
To evaluate the complete pipeline under real-time conditions, I also built a physical mockup reproducing the relevant geometry of the two reference bolts. This allowed me to test the CNN-based corner detection, real-time computation of the desired block position, and vision-based estimation of the displacement between the current and target positions using a live camera feed. Two examples of these experiments are shown below.
The prototype was successfully developed and validated using the dataset collected at the Italian factory. I did not continue with the deployment of the project because I moved to Prague to start studying my master's degree.