Feb-25-2019, 09:57 AM
Good Morning,
I'm new Python so please bear with me.
I am using the np.vstack funtion from numpy to vertically stack some images on a raspberry pi.
There is a line in the code:
I am trying to break down the for loop so that I can put a small delay in between the stacking of each image:
The code falls over when I then try and save the overall image.
Thanks for your help in advance,
Rhys
I'm new Python so please bear with me.
I am using the np.vstack funtion from numpy to vertically stack some images on a raspberry pi.
There is a line in the code:
1 2 |
imgs_comb = np.vstack((np.asarray(i.resize(min_shape)) for i in imgs)) |
1 2 3 |
for i in imgs: imgs_comb = np.vstack((np.asarray(i.resize(min_shape)))) time.sleep( 1 ) |
Thanks for your help in advance,
Rhys