Title: Colour shade grading and its applications to visual inspection