Vision, control and inspection