Answers for "function to red image in p"

0

function to red image in p

# importing OpenCV(cv2) module 
import cv2 
  
# Save image in set directory 
# Read RGB image 
img = cv2.imread('g4g.png')  
  
# Output img with window name as 'image' 
cv2.imshow('image', img)  
  
# Maintain output window utill 
# user presses a key 
cv2.waitKey(0)         
  
# Destroying present windows on screen 
cv2.destroyAllWindows()
Posted by: Guest on April-19-2020

Python Answers by Framework

Browse Popular Code Answers by Language