Workflow of the overall project

In this project, we will see how to read images from .jpg format into a matrix representation in Scala. Then, we will further process and prepare those images feedable by the CNNs. We will see several image manipulations, such as squaring all the images and resizing every image to the same dimensions, before we apply a grayscale filter to the image:

Figure 7: A conceptualize view of a CNN for image classification

Then we train nine CNNs on training data for each class. Once the training is completed, we save the trained model, CNN configurations and parameters, so that they can be restored later on, and then ...

Get Scala Machine Learning Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.