Fix OpenCV settings