get code to work with OpenCV3