Preparing a model for OpenCV