make webcam-opencv work with a config file