Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

flatten image python numpy

  x_data = np.array( [np.array(cv2.imread(imagePath[i])) for i in range(len(imagePath))] )

  pixels = x_data.flatten().reshape(1000, 12288)
  print pixels.shape
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #flatten #image #python #numpy
ADD COMMENT
Topic
Name
5+2 =