资源简介
【没法取消收费变成,有需要的可以私信我,我直接发你们,】除了yolov3外还包含部分图像处理的基本程序,如模糊、膨胀、腐蚀,camshift追踪等;
设置了背景图和显示图标,相关文件替换为自己的路径即可;
仅供参考,如果想运行需要改部分代码,不会的话注销掉有问题的代码慢慢调试
代码片段和文件信息
# -*- coding: utf-8 -*-
#2018年10月23日 星期二 10时21分21秒
import sys
import os
from PyQt5.QtWidgets import QApplication QWidget QPushButton
from PyQt5.QtGui import QIcon
from PyQt5.QtCore import pyqtSlot
import cv2 as cv
import numpy as np
import time
from matplotlib import pyplot as plt
import matplotlib.pyplot as plt1
class work(QWidget):
def __init__(self):
super().__init__()
self.title = “图像处理课程作业“
self.left = 300
self.top = 300
self.width = 820
self.height = 500
self.initUI()
def initUI(self):
#主窗口
self.setWindowtitle(self.title)
self.setGeometry(self.left self.top self.width self.height)
#小图标皮一下
self.setWindowIcon(QIcon(‘D:\\application\\visual studio\\GaussianFilter\\mean_filter\\x64\Debug\\BlueCup.jpg‘))
#各按钮显示设计
button_display = QPushButton(“显示图片“ self)
button_display.resize(10050)
button_display.move(50 40)
button_2gray = QPushButton(“转成灰度图“ self)
button_2gray.resize(10050)
button_2gray.move(50 120)
button_histogram = QPushButton(“绘制直方图“ self)
button_histogram.resize(10050)
button_histogram.move(50 200)
button_equalizeHist = QPushButton(“直方图均衡“ self)
button_equalizeHist.resize(10050)
button_equalizeHist.move(50 280)
button_gradient_sharpening = QPushButton(“梯度锐化“ self)
button_gradient_sharpening.resize(10050)
button_gradient_sharpening.move(210 40)
button_laplace_sharpening = QPushButton(“Laplace锐化“ self)
button_laplace_sharpening.resize(10050)
button_laplace_sharpening.move(210 120)
button_canny = QPushButton(“canny边缘检测“ self)
button_canny.resize(10050)
button_canny.move(210 200)
button_filter = QPushButton(“图像滤波“ self)
button_filter.resize(10050)
button_filter.move(210 280)
button_func = QPushButton(“func“ self)
button_func.resize(10050)
button_func.move(37040)
button_detection = QPushButton(“目标检测“ self)
button_detection.resize(12070)
button_detection.move(600 350)
“““按钮与鼠标点击事件相关联“““
button_display.clicked.connect(self.display)
button_2gray.clicked.connect(self.rgb2gray)
button_histogram.clicked.connect(self.histogram)
button_equalizeHist.clicked.connect(self.equalizeHist)
button_gradient_sharpening.clicked.connect(self.gradient_sharpening)
button_laplace_sharpening.clicked.connect(self.laplace_sharpening)
button_canny.clicked.connect(self.canny)
button_filter.clicked.connect(self.filter)
button_func.clicked.connect(self.d_func)
button_detectio
相关资源
- QT modbus串口调试程序
- 使用pyqt5实现的Python-GUI动态作图
- PyQwt-5.2.1-cp37-cp37m-win_amd64.whl
- Python3.x+Pyqt5实现主窗体与子窗体相互
- PyQt5实时显示Camera
- python 打印信息重定向 GUI界面 ,PyQt
- 邮件收发客户端
- pyqt5下连接sqlite3并显示
- python+pyqt5 做上位机界面
- PyQt5CheckBox简单界面
- PYQT5写字板
-
pyqt5+requests+bs4+lxm
l+urllib阅读小说窗 - PyQt5 入门级
- PyQt5对txt简单增删查改管理学生信息
- 《Python Qt GUI快速编程 PyQt编程指南》
- pyqt5天气查询系统
- pyqt5俄罗斯方块 源码
- pyqt5图书管理系统源码+安装说明+数据
- PyQt5标准对话框 获取用户输入
- 简单窗口(Python+pyQT)入门级
- 上位机V5.0 pyqtgraph.rar
- PyQt5学生成绩信息系统一:登录窗口
- 官网python3.5.2中内置的python3.dll
- pyqt打开摄像头
- 基于PyQt5和Matplotlib的函数绘制
- pyhhon GUI编程
评论
共有 条评论