python import the cv2 library code example Example: install opencv python pip install opencv-python pip install opencv-contrib-python