finish settings for opencv