摘要: import sysimport osfrom PyQt5.QtCore import QObject, QDateTimefrom PyQt5.QtWidgets import QApplicationfrom PyQt5.QtGui import QGuiApplication"""模块路径加到 阅读全文
posted @ 2021-11-21 20:49 一身转战三千里 阅读(286) 评论(0) 推荐(0)
摘要: import sys import os from PyQt5.QtCore import QObject from PyQt5.QtWidgets import QApplication from PyQt5.QtGui import QGuiApplication """模块路径加到当前模块扫描 阅读全文
posted @ 2021-11-21 20:48 一身转战三千里 阅读(159) 评论(0) 推荐(0)
摘要: #! D:/soft/Python/Python37 # -*- coding: utf-8 -*- import sys import os from PyQt5.QtCore import (QObject, QThread, QMutex, QMutexLocker, pyqtSignal, 阅读全文
posted @ 2021-11-21 20:47 一身转战三千里 阅读(437) 评论(0) 推荐(0)
摘要: this->resize(500,300); QLabel* label=new QLabel("标签",this); label->move(10,10); QLabel* label1=new QLabel("标签",this); label1->move(250,10); QPixmap p( 阅读全文
posted @ 2021-08-27 13:56 一身转战三千里 阅读(204) 评论(0) 推荐(0)
摘要: #!D:/ide/Python/Python37/ # -*- coding: utf-8 -*- """ 加载系统相关包 """ import sys import os import ctypes from ctypes import * from binascii import unhexli 阅读全文
posted @ 2021-08-26 18:25 一身转战三千里 阅读(212) 评论(0) 推荐(0)
摘要: #ifndef UARTDLL_GLOBAL_H #define UARTDLL_GLOBAL_H #include <QtCore/qglobal.h> #if defined(UARTDLL_LIBRARY) # define UARTDLL_EXPORT Q_DECL_EXPORT #else 阅读全文
posted @ 2021-08-26 18:21 一身转战三千里 阅读(291) 评论(0) 推荐(0)
摘要: 在图片中识别足球 先补充下霍夫圆变换的几个参数知识: dp,用来检测圆心的累加器图像的分辨率于输入图像之比的倒数,且此参数允许创建一个比输入图像分辨率低的累加器。上述文字不好理解的话,来看例子吧。例如,如果dp= 1时,累加器和输入图像具有相同的分辨率。如果dp=2,累加器便有输入图像一半那么大的宽 阅读全文
posted @ 2021-08-05 02:20 一身转战三千里 阅读(1271) 评论(0) 推荐(1)
摘要: pip3 install opencv-python 1 不知道为何网上很多教程如此自找麻烦。如果是Windows下多个Python版本,可以试试 python3 -m pip install opencv-python 阅读全文
posted @ 2021-08-05 02:10 一身转战三千里 阅读(414) 评论(0) 推荐(0)
摘要: 将pip源更换到国内镜像 用pip管理工具安装库文件时,默认使用国外的源文件,因此在国内的下载速度会比较慢,可能只有50KB/s。幸好,国内的一些顶级科研机构已经给我们准备好了各种镜像,下载速度可达2MB/s。其中,比较常用的国内镜像包括: (1)阿里云 http://mirrors.aliyun. 阅读全文
posted @ 2021-08-05 02:09 一身转战三千里 阅读(1053) 评论(0) 推荐(0)
摘要: 说明 Canny边缘检测+霍夫圆识别图片中的圆形,由于霍夫圆的半径过滤不太稳定,当图中有多个圆时还要自行斟酌,如果是多个半径不同的圆,可以多次使用霍夫圆,并取第一个来识别。但是如果图中有多个半径相似的圆时,有必要转换方法或者提取更多细节来拟合霍夫圆。使用的图片来自:http://www.ihalco 阅读全文
posted @ 2021-08-05 02:08 一身转战三千里 阅读(1532) 评论(0) 推荐(0)