Evaluating detection (Intersection Over Union)

Before we move further, we need to know how to measure whether our model detected an object correctly or not; for this, we calculate the Intersection Over Union (IoU) that will return a number, telling us how good our detection was based on some reference (Ground Truth). IoU is calculated by dividing the area where a detection and ground-truth box overlap with each over by the total area covered by the detection and ground-truth box:

Here is an example of a poor, good, and excellent IoU:

By convention, ...

Get Hands-On Convolutional Neural Networks with TensorFlow 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.