Fix to run with OpenCV4.6