Quantcast
Channel: Data Science, Analytics and Big Data discussions - Latest topics
Viewing all articles
Browse latest Browse all 4448

Image Processing

$
0
0

@deepak_k wrote:

Hi guys I need one help.
I am currently working on one image data set where images are of different shape. i have iterate the folder and save the multiple arrays in a list.

E.g - Automobile has 25 images
automobile = []
for filename in glob.glob('C:/Automobile/*.jpg')
im=imread(filename, flatten=True)
im=im.astype('float32')
automobile.append(im)

automobile[1].shape
(995, 885, 3)
automobile[25].shape
(1439, 726, 3)

Shape size is different for each image. i need to stack this in numpy using
np.stack(automobile) but its throwing error because each image size is different.

Please let me know how to handle such scenario in image classification

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4448

Trending Articles