![]() It will be optimized for your particular system and you will have complete control over the build options. Installing OpenCV from the Source #īuilding the OpenCV library from source is the recommended way of installing OpenCV. If you want to install OpenCV with python 2 bindings install the python-opencv package. Python3 -c "import cv2 print(cv2._version_)" 3.2.0 To verify the installation, import the cv2 module and print the OpenCV version: ![]() The command above will install all packages necessary to run OpenCV. Refresh the packages index and install the OpenCV package by typing: sudo apt update sudo apt install python3-opencv To install OpenCV from the Ubuntu 18.04 repositories, follow these steps: At the time of writing, the version in the repositories is 3.2, which is not the latest version. The OpenCV package is available from the Ubuntu 18.04 distribution repository. Install OpenCV from the Ubuntu Repository # If you want to install the latest stable version of OpenCV from source, scroll down to the Installing OpenCV from the SourceĬhoose one of the installation options that works best for you. ![]() This tutorial explains how to install OpenCV on Ubuntu 18.04.įor most people, the easiest way to install OpenCV on Ubuntu is to install it using the apt package management tool. How to Install GCC Compiler on Ubuntu 18.04
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |