Zhuxinchan 1 år sedan
förälder
incheckning
98ffec6138

+ 1 - 1
README.md

@@ -3,4 +3,4 @@
 **内容**
 **要求**
 **提交**
-## 
+## 第02天实训日志

+ 13 - 0
day03/codes/ex_qt01.py

@@ -0,0 +1,13 @@
+# 引入模块
+from PyQt5.QtWidgets import QApplication
+from PyQt5.QtWidgets import QDialog
+
+
+#创建Qt应用
+app = QApplication([])  # 参数:命令行参数
+"""
+   Qt的应用必须在APP之间
+"""
+dlg = QDialog()
+dlg.show()
+app.exec()   #让应用程序进入消息循环

+ 0 - 0
day03/codes/text.txt


+ 0 - 0
day03/codes/.ipynb_checkpoints/day03卷积特征-checkpoint → day03/codes1/.ipynb_checkpoints/day03卷积特征-checkpoint


+ 0 - 0
day03/codes/.ipynb_checkpoints/day03笔记-checkpoint → day03/codes1/.ipynb_checkpoints/day03笔记-checkpoint


+ 0 - 0
day03/codes/.ipynb_checkpoints/gpu-checkpoint.bmp → day03/codes1/.ipynb_checkpoints/gpu-checkpoint.bmp


+ 0 - 0
day03/codes/day03卷积特征 → day03/codes1/day03卷积特征


+ 0 - 0
day03/codes/day03笔记 → day03/codes1/day03笔记


+ 0 - 0
day03/codes/gpu.bmp → day03/codes1/gpu.bmp


+ 0 - 0
day04/monitor/main.py


+ 65 - 0
day04/monitor/ui/monitor.ui

@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>Dialog</class>
+ <widget class="QDialog" name="Dialog">
+  <property name="geometry">
+   <rect>
+    <x>0</x>
+    <y>0</y>
+    <width>650</width>
+    <height>463</height>
+   </rect>
+  </property>
+  <property name="windowTitle">
+   <string>Dialog</string>
+  </property>
+  <widget class="QLabel" name="label">
+   <property name="geometry">
+    <rect>
+     <x>230</x>
+     <y>270</y>
+     <width>191</width>
+     <height>101</height>
+    </rect>
+   </property>
+   <property name="styleSheet">
+    <string notr="true">border-width:2px;
+border-style:solid;
+border-radius:10px;
+border-top-color:red;
+border-left-color:red;
+border-bottom-color:red;
+border-right-color:red;
+
+</string>
+   </property>
+   <property name="text">
+    <string>视屏显示区</string>
+   </property>
+  </widget>
+  <widget class="QPushButton" name="pushButton">
+   <property name="geometry">
+    <rect>
+     <x>150</x>
+     <y>130</y>
+     <width>93</width>
+     <height>28</height>
+    </rect>
+   </property>
+   <property name="styleSheet">
+    <string notr="true">border-width:2px;
+border-style:solid;
+border-radius:10px;
+border-top-color:#ffffff;
+border-left-color:#ffffff;
+border-bottom-color:#ffffff;
+border-right-color:#ffffff;</string>
+   </property>
+   <property name="text">
+    <string>处理视频</string>
+   </property>
+  </widget>
+ </widget>
+ <resources/>
+ <connections/>
+</ui>

+ 48 - 0
day04/monitor/ui/monitor_ui.py

@@ -0,0 +1,48 @@
+# -*- coding: utf-8 -*-
+
+# Form implementation generated from reading ui file 'monitor.ui'
+#
+# Created by: PyQt5 UI code generator 5.15.9
+#
+# WARNING: Any manual changes made to this file will be lost when pyuic5 is
+# run again.  Do not edit this file unless you know what you are doing.
+
+
+from PyQt5 import QtCore, QtGui, QtWidgets
+
+
+class Ui_Dialog(object):
+    def setupUi(self, Dialog):
+        Dialog.setObjectName("Dialog")
+        Dialog.resize(650, 463)
+        self.label = QtWidgets.QLabel(Dialog)
+        self.label.setGeometry(QtCore.QRect(230, 270, 191, 101))
+        self.label.setStyleSheet("border-width:2px;\n"
+"border-style:solid;\n"
+"border-radius:10px;\n"
+"border-top-color:red;\n"
+"border-left-color:red;\n"
+"border-bottom-color:red;\n"
+"border-right-color:red;\n"
+"\n"
+"")
+        self.label.setObjectName("label")
+        self.pushButton = QtWidgets.QPushButton(Dialog)
+        self.pushButton.setGeometry(QtCore.QRect(150, 130, 93, 28))
+        self.pushButton.setStyleSheet("border-width:2px;\n"
+"border-style:solid;\n"
+"border-radius:10px;\n"
+"border-top-color:#ffffff;\n"
+"border-left-color:#ffffff;\n"
+"border-bottom-color:#ffffff;\n"
+"border-right-color:#ffffff;")
+        self.pushButton.setObjectName("pushButton")
+
+        self.retranslateUi(Dialog)
+        QtCore.QMetaObject.connectSlotsByName(Dialog)
+
+    def retranslateUi(self, Dialog):
+        _translate = QtCore.QCoreApplication.translate
+        Dialog.setWindowTitle(_translate("Dialog", "Dialog"))
+        self.label.setText(_translate("Dialog", "视屏显示区"))
+        self.pushButton.setText(_translate("Dialog", "处理视频"))

+ 5 - 0
ex01.py

@@ -0,0 +1,5 @@
+import numpy
+import cv2
+img_array=[[[0,0,255,50]for i in range(255)]for j in range(255)]#255*255的图像,图像的像素[0,255,0,128]
+img_numpy=numpy.array(img_array)
+cv2.imwrite("1.jpg",img_numpy)