Even though in the documentation it’s not directly stated that OpenCV internal doesn’t use machine learning, OpenCV can be used for training machine learning models. It supports the deep learning frameworks such as TensorFlow, Torch/PyTorch, and Caffe.