当前位置: 首页 > news >正文

深圳布吉做网站黑客怎么入侵网站

深圳布吉做网站,黑客怎么入侵网站,自做业务网站,广告公司经营范围怎么写最好程序示例精选 VSQtC Yolov8物体识别窗体程序onnx模型 如需安装运行环境或远程调试#xff0c;见文章底部个人QQ名片#xff0c;由专业技术人员远程协助#xff01; 前言 这篇博客针对《VSQtC Yolov8物体识别窗体程序onnx模型》编写代码#xff0c;代码整洁#xff0c;规… 程序示例精选 VSQtC Yolov8物体识别窗体程序onnx模型 如需安装运行环境或远程调试见文章底部个人QQ名片由专业技术人员远程协助 前言 这篇博客针对《VSQtC Yolov8物体识别窗体程序onnx模型》编写代码代码整洁规则易读。 学习与应用推荐首选。 运行结果 文章目录 一、所需工具软件 二、使用步骤        1. 主要代码        2. 运行结果 三、在线协助 一、所需工具软件 1. VS2019, Qt        2. CYolov8 二、使用步骤 代码如下示例 #includemath.h #include yolov8_onnx.h #includetime.h using namespace dnn;templatetypename _Tpint yolov8_onnx(_Tp cls, Mat img, string model_path) {//cout test00 endl;if (cls.ReadModel(model_path, false)) {cout read net ok! endl;}else {return -1;}vectorScalar color;srand(time(0));for (int i 0; i 80; i) {int b rand() % 256;int g rand() % 256;int r rand() % 256;//color.push_back(Scalar(b, g, r));color.push_back(Scalar(255, 0, 255));}if (cls.OnnxDetect(img, result)) {//cout test5 endl;DrawPred(img,cls._className, color);}else {cout Detect Failed! endl;}//system(pause);//return 0; }mainWindow::mainWindow(QWidget *parent): QMainWindow(parent) {ui.setupUi(this);QObject::connect(ui.pushButton, SIGNAL(clicked()), this, SLOT(onCamera()));QObject::connect(ui.pushButton_2, SIGNAL(clicked()), this, SLOT(onVideo()));static void sleep(int msec) {QTime dieTime QTime::currentTime().addMSecs(msec);while (QTime::currentTime() dieTime)QCoreApplication::processEvents(QEventLoop::AllEvents, 100); } void mainWindow::onCamera() {std::cout test_ std::endl;cout aa endl;VideoCapture capture(0);while (1) {Mat frame;capture frame;if (frame.empty()) break;ui.label-clear();cvtColor(frame, frame, COLOR_RGB2BGR);QImage img QImage((const unsigned char*)(frame.data), ui.label-setPixmap(QPixmap::fromImage(img));ui.label-update();} } void mainWindow::onVideo() {std::cout test_ std::endl;cout aa endl;QString filePath QFileDialog::getOpenFileName(this, tr(Open));if (filePath.isEmpty()) {qDebug() Select nothing;return;}QTextCodec* codec QTextCodec::codecForName(UTF-8);std::string imagePath codec-fromUnicode(filePath).data();std::cout imagePath std::endl;VideoCapture capture(imagePath);capture.open(imagePath);if (!capture.isOpened()){cout could not load video... endl;}while (1) {Mat frame;capture frame;if (frame.empty()) break;ui.label-clear();cvtColor(frame, frame, COLOR_RGB2BGR);QImage img QImage((const unsigned char*)(frame.data), ui.label-setPixmap(QPixmap::fromImage(img));ui.label-update();sleep(30); } } void mainWindow::onRecogn() {//string img_path ./data/image/aa.png;//string detect_model_path yolov8n.onnx;//Mat img imread(img_path);//Yolov8Onnx task_detect_onnx;//yolov8_onnx(task_detect_onnx, img, detect_model_path); //onnxruntime detect//return 0;Mat img;img capture.open(aa.mp4);QStringList nameList;QStringList countList;while (capture.read(img))//cout test endl;Yolov8Onnx task_detect_onnx;yolov8_onnx(task_detect_onnx, img, detect_model_path); //onnxruntime detect//imshow(output, img);//waitKey(10);extern Mat imgT;//cout imgT imgT endl;ui.label-clear();cvtColor(imgT, imgT, COLOR_RGB2BGR);QImage img QImage((const unsigned char*)(imgT.data), imgT.cols, imgT.rows, imgT.cols * imgT.channels(), QImage::Format_RGB888);img img.scaled(600, 500, Qt::KeepAspectRatio); ui.label-setPixmap(QPixmap::fromImage(img));ui.label-update();QSqlDatabase db;db QSqlDatabase::addDatabase(QSQLITE);db.setDatabaseName(information.db);if (!db.open()) {qDebug() ;//qDebug() open error db.lastError();}QSqlQuery query;QString sqlSelect SELECT name, count FROM informationTable;if (query.exec(sqlSelect)) {while (query.next()) {QString name query.value(0).toString();QString count query.value(1).toString();nameList.append(name);countList.append(count);}}else {qDebug() Query failed;}// 一次性显示到 UIfor (int i 0; i nameList.size(); i) {ui.textEdit-append(nameList[i] : countList[i]);}db.close();sleep(30); //nameList.clear();//countList.clear();capture.release(); } void mainWindow::testT() {QString nameEd QString::fromStdString(person);//将信息写入数据库QSqlDatabase db;db QSqlDatabase::addDatabase(QSQLITE);db.setDatabaseName(information.db);// 2. 打开数据库if (!db.open()) {qDebug() ;//qDebug() open error db.lastError();}QSqlQuery query;//QString sqlInert QString(insert into informationTable(name,count) values(%1, %2)).arg(nameEd).arg(countEd);//if (!query.exec(sqlInert))// qDebug() insert data error db.lastError();// 检查数据库中是否存在nameEdQString checkExistQuery QString(SELECT COUNT(*) FROM informationTable WHERE name %1).arg(nameEd);QSqlQuery existQuery(checkExistQuery);if (existQuery.exec() existQuery.next()) {int count existQuery.value(0).toInt();if (count 0) {qDebug() count count;// 如果存在则执行更新操作}else {qDebug() no exists;// 如果不存在则执行插入操作}}else {qDebug() Check existence query failed;} } 运行结果 三、在线协助 如需安装运行环境或远程调试见文章底部个人 QQ 名片由专业技术人员远程协助 1远程安装运行环境代码调试 2Visual Studio, Qt, C, Python编程语言入门指导 3界面美化 4软件制作 5云服务器申请 6网站制作 当前文章连接https://blog.csdn.net/alicema1111/article/details/132666851 个人博客主页https://blog.csdn.net/alicema1111?typeblog 博主所有文章点这里https://blog.csdn.net/alicema1111?typeblog 博主推荐 Python人脸识别考勤打卡系统 https://blog.csdn.net/alicema1111/article/details/133434445 Python果树水果识别https://blog.csdn.net/alicema1111/article/details/130862842 PythonYolov8Deepsort入口人流量统计https://blog.csdn.net/alicema1111/article/details/130454430 PythonQt人脸识别门禁管理系统https://blog.csdn.net/alicema1111/article/details/130353433 PythonQt指纹录入识别考勤系统https://blog.csdn.net/alicema1111/article/details/129338432 Python Yolov5火焰烟雾识别源码分享https://blog.csdn.net/alicema1111/article/details/128420453 PythonYolov8路面桥梁墙体裂缝识别https://blog.csdn.net/alicema1111/article/details/133434445
http://www.pierceye.com/news/292737/

相关文章:

  • 虚拟主机购买网站网站值不值得做seo
  • 长沙网站排名优化如何在网站做电子杂志
  • 石家庄科技网站在线解压zip网站
  • 不良网站举报中心官网做网站必须买云虚拟主机吗
  • 网站建设实习wordpress 登陆 插件下载
  • 做耳鼻喉医院网站多少钱北京网站建设营销
  • 济南网站建设就选搜点网络ok外贸平台补贴政策
  • 网站建设 学校百度快照优化培训班
  • 做阀门的英文网站怎么写西安seo服务公司排名
  • 淘宝客网站如何做推广古董手表网站
  • 网站虚拟主机查询企业文化建设的内容有哪些
  • 财经大学网站建设apicloud wordpress
  • 平面设计网站排行榜刚进外贸公司一个月多少钱
  • 企业网站最下面的那栏叫啥广州编程培训机构哪里好
  • 怎么学建设网站网站建设敬请期待图片素材
  • 滴滴出行的网站是哪家公司做的新媒体营销课程心得体会
  • 中国室内设计师联盟网站浙江手机版建站系统开发
  • 网站开源代码模版广州公司注册核名查询系统官网
  • 海外网站seo丹阳市住房建设管理局网站
  • 定制公司网站沙市做网站weisword
  • 平湖模板网站建设公司网站建设项目报告书
  • 校园门户网站解决方案手机与电脑网站制作
  • 济南网站建设 伍际网络网站域名备案授权书
  • 网站开发销售提成网站建设的内部风险分析
  • 网站建设框架都有哪些内容公司名字大全参考2022
  • 成功备案的网站增加域名黄金网站
  • 学习网站开发多少钱北京网页设计公司兴田德润可以吗
  • 如何加强门户网站建设上海好的设计公司
  • h5企业模板网站模板营销推广的渠道方式
  • 怎么学做网站PHP百度搜索风云榜总榜