OpenCV installed code example Example 1: install opencv sudo pip3 install opencv-contrib-python Example 2: install opencv pip install opencv-python