How to do it...

We will build the code to perform person detection (The code file and corresponding recommended dataset link is available as Anchor_box_based_person_detection.ipynb in GitHub along with the recommended dataset):

  1. Download the dataset that contains a set of images, the objects contained in them, and the corresponding bounding boxes of the objects in the images. The recommended dataset and the corresponding code files that you can work on are provided in GitHub.

A sample image and its corresponding bounding box location output would look similar to the one that we saw in step 1 of "Object detection using region proposal based CNN" recipe.

  1. Import the relevant packages, as follows:
import matplotlib.pyplot as plt%matplotlib ...

Get Neural Networks with Keras Cookbook 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.