Flange inspection