If you installed OpenCV via APT, you can update it using: sudo apt update sudo apt upgrade libopencv-dev python3-opencv For installations from source, you would need to re-clone the latest version from GitHub and recompile.