Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Qt 5 and OpenCV 4 Computer Vision Projects

You're reading from  Qt 5 and OpenCV 4 Computer Vision Projects

Product type Book
Published in Jun 2019
Publisher Packt
ISBN-13 9781789532586
Pages 348 pages
Edition 1st Edition
Languages
Author (1):
Zhuo Qingliang Zhuo Qingliang
Profile icon Zhuo Qingliang

Table of Contents (11) Chapters

Preface Building an Image Viewer Editing Images Like a Pro Home Security Applications Fun with Faces Optical Character Recognition Object Detection in Real Time Real-Time Car Detection and Distance Measurement Using OpenGL for the High-Speed Filtering of Images Assessments Other Books You May Enjoy

Chapter 2, Editing Images Like a Pro

  1. How would we know whether an OpenCV function supports in-place operations?

As we mentioned in the chapter, we can refer to the official document pertaining to the function. If the document stipulates that it supports in-place operations, then it does, otherwise, it doesn't.

  1. How can a hotkey be added to each action we added as a plugin?

We can add a new method to the plugin interface class that returns a QList<QKeySequence> instance and implement it in the concrete plugin class. When we load the plugin, we call that method to get the shortcut key sequence and set it as the hotkey of the action for that plugin.

  1. How can a new action be added to discard all the changes in the current image in our application?

First of all, add a class field of the QPixmap type to the MainWindow class. Before editing the current image, we save a...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}