Image Processing With Python
Image Processing With Python
3 Human brain VS AI
9 Pooling layer
5 What is CNN?
11 Demo: Image Processing with Python
6 Layers in CNN
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
What is Image Processing
that image
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Is It A Cat Or A Dog?
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Is It A Cat Or A Dog?
Traditional Machine Learning Deep Learning
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Human Brain VS Neural Network
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
How Image Input Works In Computer?
4 21 54 92 48
Converts the image into an array of pixel
values where the dimension of array 2 22 54 36 22
depends on the resolution of the image 3 42 37 86 73
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
What is CNN?
“A feed forward network to process and recognize image data with the
grid version”
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Fully Connected Network
Combines the extracted features
and represents a new model
Pooling Layer
Reduce the image size
ReLu Layer
Converts negative numbers into zero
Convolution Layer
Converts images into an array
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Layers In CNN
Layers in CNN
Convolutional Layer
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Working Of Convolutional Layer
4 21 54 92 48 4 21 54 92 48
0 -1
2 22 54 36 22 2 22 54 36 22 * 1 1
3 42 37 86 73 3 42 37 86 73 Filter/Feature detector
Terminology Alert!!
3 22 -2 10
23 25 87 139
Extracted features from the image
Dimension reduced
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Layers In CNN
Activation function: ReLu
Layers in CNN
“Converts negative values into zero”
ReLu
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Working Of Relu Layer
4 21 54 92 48
3 22 -2 10
2 22 54 36 22 Applying ReLu layer
23 25 87 139
3 42 37 86 73
3 22 0 10
After removing the negative values
23 25 87 139
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Layers In CNN
Pooling Layer
Layers in CNN
“Reduces the spatial size and the numbers of parameters”
1 Convolutional Layer
Used to reduce dimensionality
Helps to control overfitting
2 ReLU
Filters of size 2x2 are commonly used in it
3 Pooling Layer
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Working Of Pooling Layer
3 22 0 10 Max Pooling 3 22 0 10
2*2 with stride = 1
23 25 87 139 23 25 87 139
Terminology Alert!!
Amount of movement between applications of the filter to the 25
input image is referred as stride
3 22 0 10 3 22 0 10 3 22 0 10
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Flatten The Data
“Converting the Pooled feature map into an array is known as data flattening”
25
87
25 87 139 139 Flatten
139
139
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Layers In CNN
Pooling Layer
Layers in CNN
“Combines all the features together to create a final model”
1 Convolutional Layer
Used to reduce dimensionality
Helps to control overfitting
2 ReLU
Filters of size 2x2 are commonly used in it
3 Pooling Layer
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Working Of Fully Connected Layer
Hidden layers
Input layer
25 Prediction
87 Dog
139 Cat
Output layer
139
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Image Processing with Python
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Thank You
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited