An Automated System for Dimensional Control Based on Computer Vision