Install OpenCV 4.6.0 on Ubuntu 24.04 using the following command in terminal.
sudo apt install libopencv-dev -y