AI visual inspection system for BBV machines