Smart solutions to product inspection