April 2017
Beginner to intermediate
358 pages
9h 30m
English
To get started with image analysis with Keras, we are going to reimplement the example we used in Chapter 8, Beating CAPTCHAs with Neural Networks, to predict which letter was represented in an image. We will recreate the dense neural network we used in Chapter 8, Beating CAPTCHAs with Neural Networks. To start with, we need to enter our dataset building code again in our notebook. For a description of what this code does, refer to Chapter 8, Beating CAPTCHAs with Neural Networks (remember to update the file location of the Coval font):
import numpy as np from PIL import Image, ImageDraw, ImageFont from skimage import transform as tf
def create_captcha(text, shear=0, size=(100, 30), scale=1): im = Image.new("L", ...Read now
Unlock full access