Member-only story
OpenCV on Oracle Linux 9 for Vision AI
OpenCV (Open Source Computer Vision Library) is an open source computer vision and machine learning software library. OpenCV was built to provide a common infrastructure for computer vision applications and to accelerate the use of machine perception in the commercial products. Being an Apache 2 licensed product, OpenCV makes it easy for businesses to utilize and modify the code.
Experimenting, playing and working with OpenCV is an amazing adventure for tech minded people who like to build something. One downside people might encounter every now and then is that in some cases, in some version and operating system combinations, it is hard to install OpenCV including the python bindings.
One of the issues often seen and discussed is the below one where the PIP installation of opencv-python fails and PIP could not build wheels for opencv-python.
ERROR: Could not build wheels for opencv-python, which is required to install
pyproject.toml-based projects
In this post I try to provide a quick step by step guide which will provide you a Linux environment whith OpenCV and the OpenCV Python bindings installed. We will use a Oracle Linux 9 distribution as the base operating system and we will use vagrant to quickly deploy a virtual environment.