Import Numpy Import Cv2 Cv2 Imshowimageimg Cv2 Waitkey0

[Solved] Import Numpy Import Cv2 Cv2 Imshowimageimg Cv2 Waitkey0 | Python - Code Explorer | yomemimo.com
Question : import numpy import cv2 cv2.imshow('image',img) cv2.waitKey(0)

Answered by : huldar

import cv2
import numpy as np
#numpy array
ndarray = np.full((300,300,3), 125, dtype=np.uint8)
#show image
cv2.imshow('Example - Show image in window', ndarray)
cv2.waitKey(0) # waits until a key is pressed
cv2.destroyAllWindows() # destroys the window showing image

Source : https://pythonexamples.org/python-opencv-imshow/ | Last Update : Sun, 30 May 21

Answers related to import numpy import cv2 cv2 imshowimageimg cv2 waitkey0

Code Explorer Popular Question For Python