<jupyter_start><jupyter_text><jupyter_code># Install OpenCV library
!python3 -m pip install opencv-python
# Import OpenCV library in your code
import cv2 as cv
!wget https://github.com/opencv/opencv_extra/blob/4.x/testdata/cv/features2d/tsukuba.png
!pwd
# Download image
!curl -o logo.png https://colab.research.google.com/img/colab_favicon_256px.png

# Read image with help opencv
img = cv2.imread('logo.png', cv2.IMREAD_UNCHANGED)

# Check image
print(img)
#show image with help imshow by opencv

# cv.imshow('image', img) 
# cv.waitKey(0)        
# cv.destroyAllWindows() 

from google.colab.patches import cv2_imshow
cv2_imshow(img)<jupyter_output><empty_output>
StarcoderdataJupyterStructuredCleanDedup