January 2019
Intermediate to advanced
342 pages
9h 17m
English
We are going to use a CNN architecture to identify the characters in the CAPTCHA. The CNN would have two pairs of convolution and pooling before the dense layers. Instead of feeding the whole CAPTCHA to the network, we are going to break the CAPTCHA into four characters and feed them individually to the model. This requires the final output layer of the CNN to predict one of the 36 classes pertaining to the 26 letters and 10 digits.
The model can be defined as shown in the following code by the function _model_:
def _model_(n_classes): # Build the neural network input_ = Input(shape=(40,25,1)) # First convolutional layer with max pooling x = Conv2D(20, (5, 5), padding="same",activation="relu")(input_) x ...
Read now
Unlock full access