Set OpenCV to use a single thread, note that it needs to be compiled without GPU to turn GPU off.