install opencv latest version code example
Example 1: install opencv python
pip install opencv-python
pip install opencv-contrib-python
Example 2: install opencv
sudo pip3 install opencv-contrib-python
pip install opencv-python
pip install opencv-contrib-python
sudo pip3 install opencv-contrib-python