A vision application to inspect a mechanical detail in a production line has been designed. The application looks for defects, where for example an edge may have been damaged.