The solution enables online AOI inspection for building glass, PV glass, and cover glass produced by the float process, and effectively detects defects such as tin marks, stones, bubbles, and scratches in float glass.