Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to convert numpy array to cv2 image

# cv2 images are already numpy arrays. So you do not need to convert it.
# Simply pass it to cv2 as a normal cv2 image.
import cv2
import numpy

imgarray = yourarrayhere # This would be your image array

cv2img = cv2.imshow(imgarray) # This work the same as passing an image
 
PREVIOUS NEXT
Tagged: #convert #numpy #array #image
ADD COMMENT
Topic
Name
2+1 =