

Perform the following steps to install the latest OpenCV version from the source:Ġ1. This is the recommended way of installing OpenCV. It will be optimized for your particular system, and you will have complete control over the build options.

Verify the installation by importing the cv2 module and printing the OpenCV version: python3 -c "import cv2 print(cv2._version_)"Īt the time of writing, the version in the repositories is 4.2: Outputīuilding the OpenCV library from the source allows you to have the latest available version.

The command above will install all packages necessary to run OpenCV. $ sudo apt install libopencv-dev python3-opencv OpenCV is available for installation from the default Ubuntu 20.04 repositories. Installing OpenCV from the Ubuntu Repository Login as root user and create a user with sudo privileges.Access to VNC console in your Alibaba Cloud or SSH client installed in your PC.You should set up your server’s hostname.If you are using the domain name, remember to point your domain name to IP address of your server.If you have registered domain with any 3 rd party, you may transfer into Alibaba Cloud.But if you are willing to use IP address directly, you may skip this. Domain registration is recommended for setting up FQDN hostname of your server.To setup up your ECS for the first time, you can refer to this tutorial or quick-start guide.You can register new account and claim your free credits. If you are a new user, after payment method verification you can claim free $450 – $1300 credits.You must have added and verified your payment method.You must be registered with Alibaba Cloud.Installing OpenCV from the Ubuntu Repository.
