Installing OpenCV and NumPy
To install NumPy for your Python distribution using the pip package manager, run the following command:
pip install numpy
If, however, you are using Anaconda/Miniconda to manage your packages, run the following command:
conda install numpy
Installing OpenCV might be more complicated, depending on your operating system. The easiest option is to have Anaconda handle the installation process by following this guide (https://anaconda.org/conda-forge/opencv) after installing Anaconda (https://www.anaconda.com/download/) as your main Python package manager. If, however, you are not using Anaconda, the main option for installing OpenCV is to follow its official documentation guide, which can be found at https://docs.opencv.org/master/df/d65/tutorial_table_of_content_introduction.html ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access