check opencv installation code example
Example 1: install opencv
pip install opencv-python
Example 2: install opencv
sudo pip3 install opencv-contrib-python
pip install opencv-python
sudo pip3 install opencv-contrib-python