October 2018
Intermediate to advanced
252 pages
6h 49m
English
The training images are assumed to be stored in the train folder in subfolders Type_1, Type_2, and Type_3. The images are stored as .jpg files in separate folders depending on their classification. Image paths are read as strings; the function uses the image's folder name to get the corresponding label and returns the image paths and labels as two parallel arrays. Let's get started with the data preprocessing steps.