O'Reilly logo

Computer Vision with OpenCV 3 and Qt5 by Amin Ahmadi Tazehkandi

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The plugin loader and user

Now, we will use the plugin that we created in the previous section of the book. Let's start by creating a new Qt Widgets Application Project. Let's name it Plugin_User. When the project is created, add the OpenCV framework to the *.PRO file first (you have seen enough of this already) and then go on to create a user interface similar to this:

  1. Obviously, you need to modify the mainwindow.ui file, design it to make it look like this, and set all object names as seen in the following screenshot:

Make sure to use the same types of Layouts as seen in the preceding picture.

  1. Next, add the cvplugininterface.h file to ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required