AOI for BGA matrix tray inspection