Inspection and detection with vision systems