Text this: An improved defect classification algorithm for six printing defects and its implementation on real printed circuit board images