From ceaccb7db090d07a75d14c43e07a96773ac1e9a6 Mon Sep 17 00:00:00 2001 From: zcy <290198252@qq.com> Date: Thu, 26 May 2022 09:33:26 +0800 Subject: [PATCH] no message --- client/webrtc_capture/src/cv_ssd.cpp | 1 - client/webrtc_capture/src/mainwindow.cpp | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/client/webrtc_capture/src/cv_ssd.cpp b/client/webrtc_capture/src/cv_ssd.cpp index 517c98a..08e525f 100644 --- a/client/webrtc_capture/src/cv_ssd.cpp +++ b/client/webrtc_capture/src/cv_ssd.cpp @@ -79,7 +79,6 @@ cv::Mat * ssd_detect(cv::Mat *inframe,std::string modelFile,std::string model_te Point(tl_x, tl_y), FONT_HERSHEY_SIMPLEX, 1.0, Scalar(255, 0, 0), 2); } } - cv::imshow("image2",*image2); return image2; } diff --git a/client/webrtc_capture/src/mainwindow.cpp b/client/webrtc_capture/src/mainwindow.cpp index ee1f4f5..a7ac5c6 100644 --- a/client/webrtc_capture/src/mainwindow.cpp +++ b/client/webrtc_capture/src/mainwindow.cpp @@ -273,8 +273,8 @@ void MainWindow::on_pushButton_4_clicked() if((ui->lineEdit->text().toStdString() == "") || (ui->lineEdit_2->text().toStdString() == "")){ - QssMessageBox::warn("",nullptr,"请输入模型",QMessageBox::Ok); - + QssMessageBox::warn("please input model file",nullptr,"please input model file",QMessageBox::Ok); + return; } gdetect = new ASyncDetectAndRenderThread(this,mDetectResut,ui->openGLWidget->RenderWidth(), ui->openGLWidget->RenderHeight(),