Flexible automatic visual inspection based on the separation of detection and analysis | IEEE Conference Publication | IEEE Xplore