Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Computer Vision with OpenCV 3 and Qt5

You're reading from   Computer Vision with OpenCV 3 and Qt5 Build visually appealing, multithreaded, cross-platform computer vision applications

Arrow left icon
Product type Paperback
Published in Jan 2018
Publisher Packt
ISBN-13 9781788472395
Length 486 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Amin Ahmadi Tazehkandi Amin Ahmadi Tazehkandi
Author Profile Icon Amin Ahmadi Tazehkandi
Amin Ahmadi Tazehkandi
Arrow right icon
View More author details
Toc

Table of Contents (14) Chapters Close

Preface 1. Introduction to OpenCV and Qt 2. Creating Our First Qt and OpenCV Project FREE CHAPTER 3. Creating a Comprehensive Qt+OpenCV Project 4. Mat and QImage 5. The Graphics View Framework 6. Image Processing in OpenCV 7. Features and Descriptors 8. Multithreading 9. Video Analysis 10. Debugging and Testing 11. Linking and Deployment 12. Qt Quick Applications 13. Other Books You May Enjoy

Integrating C++ and QML codes


Even though the QML libraries have into a fully-fledged collection of types that can handle visuals, networking, cameras, and so on, it's still important to be to extend them by using the power of C++ classes. Fortunately, QML and the Qt Framework provides enough provisions to be able to easily handle this. In this section, we are going to learn how to create a non-visual C++ class that can be used within QML codes to process images using OpenCV. Then, we'll create a C++ class that can be used as a visual item within QML codes to display images.

Note

Note that there is an Image type by default in QML that can be used to display images saved on disk by providing their URL to the Image item. However, we'll be creating an image viewer QML type that can be used to display QImage objects, and use this opportunity to learn about the integration of C++ classes (visual) in QML codes.

Start by adding the OpenCV framework to our project that we created in the previous...

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 €18.99/month. Cancel anytime