Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Generate random image np array

import numpy as np
from PIL import Image
random_array = np.random.randint(low=0, high=255,size=(250,250),dtype=np.uint8)
random_im = Image.fromarray(random_array)
random_im.show()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Generate #random #image #np #array
ADD COMMENT
Topic
Name
1+5 =