Text this: Optimization of light emission for product quality inspection by using machine vision