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

The single-object detector

First of all, let's look at how to predict the class in parallel with the box. In Chapter 9, Learning to Classify and Localize Objects, you also learned how to make a classifier. Nothing limits us to combining classification with localization in a single network. That is done by connecting the classification and localization blocks to the same feature map of the base network and training it all together with a loss function, which is a sum of localization and classification losses. You can create and train such a network as an exercise.

The question remains, what if there is no object in the scene? To resolve this, we can simply add one more class that corresponds to the background and assign zero to the loss of ...

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