Skip to Content
OpenCV 4 with Python Blueprints - Second Edition
book

OpenCV 4 with Python Blueprints - Second Edition

by Dr. Menua Gevorgyan, Michael Beyeler (USD), Arsen Mamikonyan, Michael Beyeler
March 2020
Intermediate to advanced
366 pages
9h 8m
English
Packt Publishing
Content preview from OpenCV 4 with Python Blueprints - Second Edition

Training SSD- and YOLO-like networks

You are already aware that networks such as YOLO and SSD predict objects with predefined anchor boxes. Out of all available boxes, only one box is chosen, which corresponds to the object. During prediction time, the box is assigned with the class of the object and the offsets are predicted.

So, the question is, how do we choose that single box? You might already have guessed that IoU is used for that purpose. The correspondence between the ground truth boxes and anchor boxes can be made as follows:

  1. Create a matrix that contains all IoU values of all possible ground truth and anchor box pairs. Say, the row corresponds to the ground truth box and the column corresponds to anchor box.
  2. Find the maximal ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

OpenCV with Python Blueprints

OpenCV with Python Blueprints

Michael Beyeler, Michael Beyeler (USD)
OpenCV 3 Computer Vision with Python Cookbook

OpenCV 3 Computer Vision with Python Cookbook

Aleksei Spizhevoi, Aleksandr Rybnikov
Mastering OpenCV 4 with Python

Mastering OpenCV 4 with Python

Alberto Fernández Villán

Publisher Resources

ISBN: 9781789801811Supplemental Content