function to red image in p

Solutions on MaxInterview for function to red image in p by the best coders in the world

showing results for - "function to red image in p"
Ana Sofia
14 Jan 2020
1# importing OpenCV(cv2) module 
2import cv2 
3  
4# Save image in set directory 
5# Read RGB image 
6img = cv2.imread('g4g.png')  
7  
8# Output img with window name as 'image' 
9cv2.imshow('image', img)  
10  
11# Maintain output window utill 
12# user presses a key 
13cv2.waitKey(0)         
14  
15# Destroying present windows on screen 
16cv2.destroyAllWindows()