Code for industrial inspection based on master thesis