How to Show an Image in OpenCV

Machine Learning courses with 100+ Real-time projects Start Now!!

Program 1

import cv2
img=cv2.imread("D://opencvapp//butterfly.jpg")
cv2.imshow('Image Window',img)
cv2.waitKey(0)
cv2.destroyAllWindows()

 

 

If you are Happy with DataFlair, do not forget to make us happy with your positive feedback on Google

courses

TechVidvan Team

TechVidvan Team provides high-quality content & courses on AI, ML, Data Science, Data Engineering, Data Analytics, programming, Python, DSA, Android, Flutter, full stack web dev, MERN, and many latest technology.

Leave a Reply

Your email address will not be published. Required fields are marked *