support OpenCV 2.4.7