- Apr 13 Mon 2020 08:21
-
How to create a thread in Qt Application
- Apr 04 Sat 2020 20:48
-
How to load and display an image on Qt GUI with OpenCV 4.2.0 in Jetson nano

Unfortunately Qt creator in linux does not support BGR888 format, so we have to convert the image to RGB format by using cvtColor funtion before displaying it.
Mat img = imread("lena.jpg");cvtColor(img, img, COLOR_BGR2RGB);
auto w = ui->label->width();auto h = ui->label->height();ui->label->setPixmap(
QPixmap::fromImage(
QImage(img.data, img.cols, img.rows, img.step, QImage::Format_RGB888)
).scaled(w, h, Qt::KeepAspectRatio)
);
- Apr 04 Sat 2020 20:20
-
Creating a Qt Console Application with OpenCV4.2.0 in Jetson Nano

INCLUDEPATH += /usr/local/include/opencv4/
LIBS+= -L/usr/local/lib/ \
`pkg-config --cflags --libs opencv4`
- Apr 04 Sat 2020 07:42
-
QMessageBox Example

#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QMessageBox>#include <QTime>#include <QDebug>MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
, ui(new Ui::MainWindow){ ui->setupUi(this);}
MainWindow::~MainWindow()
{ delete ui;}
void MainWindow::on_pushButton_clicked(){QMessageBox::about(this, "About", "This is an about dialog");
}
void MainWindow::on_pushButton_2_clicked(){QMessageBox::aboutQt(this, "Something about QT");
}
void MainWindow::on_pushButton_3_clicked(){QMessageBox::critical(this,"Error occured","You should check out what happened!");
}
void MainWindow::on_pushButton_4_clicked(){QTime dt_now = QTime::currentTime();
QMessageBox::information(this, "Current Time: ", dt_now.toString());
}
void MainWindow::on_pushButton_5_clicked(){QMessageBox::StandardButton reply = QMessageBox::question(this, "Login","Are you ready to go?",
QMessageBox::Yes | QMessageBox::No);
if(reply == QMessageBox::Yes) {QMessageBox::information(this, "Yes", "You've selected 'Yes' button");
qDebug() << "Yes is clicked" << endl;}else if(reply == QMessageBox::No)
{QMessageBox::information(this, "No", "You've selected 'No' button");
qDebug() << "No is clicked" << endl;}
}
void MainWindow::on_pushButton_6_clicked(){QMessageBox::warning(this, "Warning","Some warning messages have occured!");
}
- Apr 04 Sat 2020 07:34
-
Installing Git for Windows v2.26.0
- Apr 02 Thu 2020 11:58
-
How to Show Another Window From MainWindow in QT
- Mar 31 Tue 2020 18:49
-
How to load and display an image on Qt GUI with OpenCV 4.2.0
- Mar 31 Tue 2020 16:55
-
Creating a Qt Console Application with OpenCV4.2.0
- Mar 30 Mon 2020 11:41
-
Installing Qt 5.14.1
- Mar 24 Tue 2020 16:16
-
Installing OpenCV 4.2.0 with Contrib + CUDA 10 + cuDNN 7.6.5 on Windows 10

If you are trying to run DNN in OpenCV and unfortunately get such an error message:[ WARN:0] global C:\OpenCV\OpenCV4.2.0\opencv-4.2.0\modules\dnn\src\dnn.cpp (1363) cv::dnn::dnn4_v20191202::Net::Impl::setUpNet DNN module was not built with CUDA backend; switching to CPUThis means you don’t have a compatible environment for running a cuDNN based application.In this tutorial you will learn how to build OpenCV4.2.0 and all stuffs you have to notice.
After that you can easily use the following two commands without any errors.net.setPreferableBackend(DNN_BACKEND_CUDA);
net.setPreferableTarget(DNN_TARGET_CUDA);
- Mar 17 Tue 2020 16:09
-
Accelerating OpenCV 4 – build with CUDA 10.0 on Windows
- Feb 17 Mon 2020 14:51
-
Object Tracking using OpenCV with GPU
https://github.com/weixu000/libtorch-yolov3-deepsort
https://github.com/Smorodov/Multitarget-trackerDeepSORT: Deep Learning to Track Custom Objects in a Videohttps://nanonets.com/blog/object-tracking-deepsort/
End-to-end representation learning for Correlation Filter based tracking






