forked from PulseFocusPlatform/PulseFocusPlatform
Compare commits
84 Commits
master
...
ssschanged
Author | SHA1 | Date |
---|---|---|
p02945817 | 4e0a3ae508 | |
p02945817 | a0174c457d | |
p02945817 | 0f7628505d | |
p02945817 | 3301d7bfc5 | |
p02945817 | af2190a70d | |
p02945817 | 67c6d677d8 | |
p02945817 | c56c9ff0b3 | |
p02945817 | 2d165031b1 | |
p02945817 | 8c5360639b | |
p02945817 | 1f429cfec9 | |
p02945817 | 1f1271da72 | |
p02945817 | f2eeb9a13e | |
p02945817 | dee4cb567e | |
p02945817 | 69712f0430 | |
p02945817 | 96076306c9 | |
p02945817 | 7c59186c5c | |
p02945817 | 0794c2ca75 | |
p02945817 | be9adcf9af | |
p02945817 | 393d1772c0 | |
p02945817 | d0fd669b38 | |
p02945817 | 3c1314596e | |
p02945817 | 7149690cf0 | |
p02945817 | 5c34a921f8 | |
p02945817 | 29b081e37a | |
p02945817 | afb796b633 | |
p02945817 | 5d5bb25b66 | |
p02945817 | 61760c4557 | |
p02945817 | c65783dde3 | |
p02945817 | e39c7cff8c | |
p02945817 | c718158d5d | |
p02945817 | 46906d6464 | |
p02945817 | 6a07098983 | |
p02945817 | 52ce53697d | |
p02945817 | 112d7c2abe | |
p02945817 | 03edd45541 | |
p02945817 | d53ef8f5cc | |
p02945817 | 7ba40027ea | |
p02945817 | 40218a3dfd | |
p02945817 | 6e50becd13 | |
p02945817 | 4941e82583 | |
p02945817 | 4f2b6e65f1 | |
p02945817 | 3952f45e49 | |
p02945817 | 095d7bd7fe | |
p02945817 | af2a8522d3 | |
p02945817 | bc3cc3e978 | |
p02945817 | 66812f8687 | |
p02945817 | e79bca4328 | |
p02945817 | 2a0d071f40 | |
p02945817 | 65f26d0285 | |
p02945817 | 0a208ff95b | |
p02945817 | 94a0f2580a | |
p02945817 | c1b7ebb919 | |
p02945817 | ca159b08d6 | |
p02945817 | f88a80b448 | |
p02945817 | 554cc83b40 | |
p02945817 | b24be7713c | |
p02945817 | b7e9967556 | |
p02945817 | 8caeb6944b | |
p02945817 | 3279cc4c82 | |
p02945817 | 9ca4085c6a | |
p02945817 | 9bf14dae80 | |
p02945817 | 40f2168f6f | |
p02945817 | a5673f134b | |
p02945817 | 61370c1c72 | |
p02945817 | 3acdb7fcc4 | |
p02945817 | 0868c3ca26 | |
p02945817 | 3e19acf86c | |
p02945817 | b0bebf0846 | |
p02945817 | 5bcdee1fac | |
p02945817 | 3b4ac9cae1 | |
p02945817 | ab8ffcf61a | |
p02945817 | d16b7893a5 | |
p02945817 | becb5ea553 | |
p02945817 | 2ffcc98ac4 | |
p02945817 | 128444f997 | |
p02945817 | efc062138b | |
p02945817 | 1735bc6975 | |
p02945817 | 1d613070e3 | |
p02945817 | 7f873243cf | |
p02945817 | e66910c48b | |
p02945817 | 914394829b | |
p02945817 | aca022de7a | |
p02945817 | 63b8e759b1 | |
p02945817 | ccd2951448 |
|
@ -0,0 +1,3 @@
|
||||||
|
# Default ignored files
|
||||||
|
/shelf/
|
||||||
|
/workspace.xml
|
|
@ -0,0 +1,12 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<module type="PYTHON_MODULE" version="4">
|
||||||
|
<component name="NewModuleRootManager">
|
||||||
|
<content url="file://$MODULE_DIR$" />
|
||||||
|
<orderEntry type="jdk" jdkName="Python 3.7 (Focus)" jdkType="Python SDK" />
|
||||||
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
|
</component>
|
||||||
|
<component name="PyDocumentationSettings">
|
||||||
|
<option name="format" value="GOOGLE" />
|
||||||
|
<option name="myDocStringFormat" value="Google" />
|
||||||
|
</component>
|
||||||
|
</module>
|
|
@ -0,0 +1,6 @@
|
||||||
|
<component name="InspectionProjectProfileManager">
|
||||||
|
<settings>
|
||||||
|
<option name="USE_PROJECT_PROFILE" value="false" />
|
||||||
|
<version value="1.0" />
|
||||||
|
</settings>
|
||||||
|
</component>
|
|
@ -0,0 +1,4 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.7 (Focus)" project-jdk-type="Python SDK" />
|
||||||
|
</project>
|
|
@ -0,0 +1,8 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ProjectModuleManager">
|
||||||
|
<modules>
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/PulseFocusPlatform.iml" filepath="$PROJECT_DIR$/.idea/PulseFocusPlatform.iml" />
|
||||||
|
</modules>
|
||||||
|
</component>
|
||||||
|
</project>
|
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="VcsDirectoryMappings">
|
||||||
|
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||||
|
</component>
|
||||||
|
</project>
|
28
SSS_win.py
28
SSS_win.py
|
@ -1,11 +1,9 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
# Form implementation generated from reading ui file 'SSS_win.ui'
|
# Form implementation generated from reading ui file 'SSS_win.ui'
|
||||||
#
|
|
||||||
# Created by: PyQt5 UI code generator 5.15.4
|
# Created by: PyQt5 UI code generator 5.15.4
|
||||||
#
|
|
||||||
# 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
|
from PyQt5 import QtCore, QtGui, QtWidgets
|
||||||
|
@ -18,18 +16,18 @@ class Ui_MainWindow(object):
|
||||||
self.centralwidget = QtWidgets.QWidget(MainWindow)
|
self.centralwidget = QtWidgets.QWidget(MainWindow)
|
||||||
self.centralwidget.setObjectName("centralwidget")
|
self.centralwidget.setObjectName("centralwidget")
|
||||||
self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.centralwidget)
|
self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.centralwidget)
|
||||||
self.verticalLayout_5.setObjectName("verticalLayout_5")
|
self.verticalLayout_5.setObjectName("verticalLayout_5")#垂直布局
|
||||||
self.verticalLayout = QtWidgets.QVBoxLayout()
|
self.verticalLayout = QtWidgets.QVBoxLayout()
|
||||||
self.verticalLayout.setObjectName("verticalLayout")
|
self.verticalLayout.setObjectName("verticalLayout")#垂直布局
|
||||||
self.horizontalLayout = QtWidgets.QHBoxLayout()
|
self.horizontalLayout = QtWidgets.QHBoxLayout()
|
||||||
self.horizontalLayout.setObjectName("horizontalLayout")
|
self.horizontalLayout.setObjectName("horizontalLayout")#水平布局
|
||||||
self.verticalLayout_2 = QtWidgets.QVBoxLayout()
|
self.verticalLayout_2 = QtWidgets.QVBoxLayout()
|
||||||
self.verticalLayout_2.setObjectName("verticalLayout_2")
|
self.verticalLayout_2.setObjectName("verticalLayout_2")#垂直布局
|
||||||
self.tupiandiaoru = QtWidgets.QPushButton(self.centralwidget)
|
self.tupiandiaoru = QtWidgets.QPushButton(self.centralwidget)
|
||||||
self.tupiandiaoru.setObjectName("tupiandiaoru")
|
self.tupiandiaoru.setObjectName("tupiandiaoru")#图片导入
|
||||||
self.verticalLayout_2.addWidget(self.tupiandiaoru)
|
self.verticalLayout_2.addWidget(self.tupiandiaoru)
|
||||||
self.shipindaoru = QtWidgets.QPushButton(self.centralwidget)
|
self.shipindaoru = QtWidgets.QPushButton(self.centralwidget)
|
||||||
self.shipindaoru.setObjectName("shipindaoru")
|
self.shipindaoru.setObjectName("shipindaoru")#视频导入
|
||||||
self.verticalLayout_2.addWidget(self.shipindaoru)
|
self.verticalLayout_2.addWidget(self.shipindaoru)
|
||||||
self.pushButton_xxdaochu = QtWidgets.QPushButton(self.centralwidget)
|
self.pushButton_xxdaochu = QtWidgets.QPushButton(self.centralwidget)
|
||||||
self.pushButton_xxdaochu.setObjectName("pushButton_xxdaochu")
|
self.pushButton_xxdaochu.setObjectName("pushButton_xxdaochu")
|
||||||
|
@ -147,13 +145,13 @@ class Ui_MainWindow(object):
|
||||||
self.xunlian.clicked.connect(MainWindow.press_xunlian)
|
self.xunlian.clicked.connect(MainWindow.press_xunlian)
|
||||||
self.pushButton_tuichu.clicked.connect(MainWindow.exit)
|
self.pushButton_tuichu.clicked.connect(MainWindow.exit)
|
||||||
self.shipindaoru.clicked.connect(MainWindow.press_movie)
|
self.shipindaoru.clicked.connect(MainWindow.press_movie)
|
||||||
self.comboBox_sbsuanfa.activated.connect(MainWindow.moxingxuanze)
|
self.comboBox_sbsuanfa.activated['QString'].connect(MainWindow.moxingxuanze)
|
||||||
self.comboBox_GPU.activated.connect(MainWindow.gpu_use)
|
self.comboBox_GPU.activated['QString'].connect(MainWindow.gpu_use)
|
||||||
QtCore.QMetaObject.connectSlotsByName(MainWindow)
|
QtCore.QMetaObject.connectSlotsByName(MainWindow)
|
||||||
|
|
||||||
def retranslateUi(self, MainWindow):
|
def retranslateUi(self, MainWindow):
|
||||||
_translate = QtCore.QCoreApplication.translate
|
_translate = QtCore.QCoreApplication.translate
|
||||||
MainWindow.setWindowTitle(_translate("MainWindow", "脉冲聚焦"))
|
MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
|
||||||
self.tupiandiaoru.setText(_translate("MainWindow", "静态图像导入"))
|
self.tupiandiaoru.setText(_translate("MainWindow", "静态图像导入"))
|
||||||
self.shipindaoru.setText(_translate("MainWindow", "动态图像导入"))
|
self.shipindaoru.setText(_translate("MainWindow", "动态图像导入"))
|
||||||
self.pushButton_xxdaochu.setText(_translate("MainWindow", "信息导出"))
|
self.pushButton_xxdaochu.setText(_translate("MainWindow", "信息导出"))
|
||||||
|
@ -162,7 +160,7 @@ class Ui_MainWindow(object):
|
||||||
self.comboBox_yclfangfa.setItemText(0, _translate("MainWindow", "多尺度融合"))
|
self.comboBox_yclfangfa.setItemText(0, _translate("MainWindow", "多尺度融合"))
|
||||||
self.comboBox_yclfangfa.setItemText(1, _translate("MainWindow", "图像增广"))
|
self.comboBox_yclfangfa.setItemText(1, _translate("MainWindow", "图像增广"))
|
||||||
self.comboBox_yclfangfa.setItemText(2, _translate("MainWindow", "图像重塑"))
|
self.comboBox_yclfangfa.setItemText(2, _translate("MainWindow", "图像重塑"))
|
||||||
self.label_3.setText(_translate("MainWindow", "聚焦算法"))
|
self.label_3.setText(_translate("MainWindow", "识别算法"))
|
||||||
self.comboBox_sbsuanfa.setCurrentText(_translate("MainWindow", "PPYOLO-BOT"))
|
self.comboBox_sbsuanfa.setCurrentText(_translate("MainWindow", "PPYOLO-BOT"))
|
||||||
self.comboBox_sbsuanfa.setItemText(0, _translate("MainWindow", "PPYOLO-BOT"))
|
self.comboBox_sbsuanfa.setItemText(0, _translate("MainWindow", "PPYOLO-BOT"))
|
||||||
self.comboBox_sbsuanfa.setItemText(1, _translate("MainWindow", "YOLOV3"))
|
self.comboBox_sbsuanfa.setItemText(1, _translate("MainWindow", "YOLOV3"))
|
||||||
|
@ -172,7 +170,7 @@ class Ui_MainWindow(object):
|
||||||
self.comboBox_GPU.setItemText(0, _translate("MainWindow", "YES"))
|
self.comboBox_GPU.setItemText(0, _translate("MainWindow", "YES"))
|
||||||
self.comboBox_GPU.setItemText(1, _translate("MainWindow", "NO"))
|
self.comboBox_GPU.setItemText(1, _translate("MainWindow", "NO"))
|
||||||
self.label.setText(_translate("MainWindow", "特征选择"))
|
self.label.setText(_translate("MainWindow", "特征选择"))
|
||||||
self.shibie.setText(_translate("MainWindow", "聚焦"))
|
self.shibie.setText(_translate("MainWindow", "识别"))
|
||||||
self.xunlian.setText(_translate("MainWindow", "训练"))
|
self.xunlian.setText(_translate("MainWindow", "训练"))
|
||||||
self.pushButton_jswendang.setText(_translate("MainWindow", "技术文档"))
|
self.pushButton_jswendang.setText(_translate("MainWindow", "技术文档"))
|
||||||
self.pushButton_rjwendang.setText(_translate("MainWindow", "软件说明文档"))
|
self.pushButton_rjwendang.setText(_translate("MainWindow", "软件说明文档"))
|
||||||
|
|
Binary file not shown.
6
main.py
6
main.py
|
@ -75,10 +75,8 @@ class mywindow(QtWidgets.QMainWindow, Ui_MainWindow):
|
||||||
# print(self.path1+'video_output/'+self.Video_fname.split('/')[-1])
|
# print(self.path1+'video_output/'+self.Video_fname.split('/')[-1])
|
||||||
# self.cap = cv2.VideoCapture(
|
# self.cap = cv2.VideoCapture(
|
||||||
# self.path1+'video_output/'+self.Video_fname.split('/')[-1])
|
# self.path1+'video_output/'+self.Video_fname.split('/')[-1])
|
||||||
# self.framRate = self.cap.get(cv2.CAP_PROP_FPS)
|
# self.framRate = self.cap.get(cv2.CAP_PROP_FPS
|
||||||
|
|
||||||
# th = threading.Thread(target=self.Display)
|
# th = threading.Thread(target=self.Display)
|
||||||
# th.start()
|
|
||||||
|
|
||||||
def Images_Display(self):
|
def Images_Display(self):
|
||||||
img_list=[]
|
img_list=[]
|
||||||
|
@ -137,7 +135,6 @@ class mywindow(QtWidgets.QMainWindow, Ui_MainWindow):
|
||||||
# print(xmlFile)
|
# print(xmlFile)
|
||||||
# self.label_movie.setPixmap(QtGui.QPixmap(
|
# self.label_movie.setPixmap(QtGui.QPixmap(
|
||||||
# self.video_image_path+'/'+xmlFile))
|
# self.video_image_path+'/'+xmlFile))
|
||||||
# time.sleep(0.5)
|
|
||||||
|
|
||||||
def Sorted(self,files):
|
def Sorted(self,files):
|
||||||
files=[int(i.split('.')[0]) for i in files]
|
files=[int(i.split('.')[0]) for i in files]
|
||||||
|
@ -235,7 +232,6 @@ class mywindow(QtWidgets.QMainWindow, Ui_MainWindow):
|
||||||
th2 = threading.Thread(target=self.Split)
|
th2 = threading.Thread(target=self.Split)
|
||||||
th2.start()
|
th2.start()
|
||||||
# self.th = threading.Thread(target=self.Display)
|
# self.th = threading.Thread(target=self.Display)
|
||||||
# self.th.start()
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
15
setup.py
15
setup.py
|
@ -1,16 +1,12 @@
|
||||||
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
|
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
|
||||||
#
|
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
# you may not use this file except in compliance with the License.
|
# you may not use this file except in compliance with
|
||||||
# You may obtain a copy of the License at
|
# You may obtain a copy of the License at
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
#
|
# Unless required by applicable law or agreed
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
# See the License for the specific language governing permissions and
|
|
||||||
# limitations under the License.
|
|
||||||
|
|
||||||
import os.path as osp
|
import os.path as osp
|
||||||
import glob
|
import glob
|
||||||
|
@ -37,7 +33,6 @@ def package_model_zoo():
|
||||||
|
|
||||||
valid_cfgs = []
|
valid_cfgs = []
|
||||||
for cfg in cfgs:
|
for cfg in cfgs:
|
||||||
# exclude dataset base config
|
|
||||||
if osp.split(osp.split(cfg)[0])[1] not in ['datasets']:
|
if osp.split(osp.split(cfg)[0])[1] not in ['datasets']:
|
||||||
valid_cfgs.append(cfg)
|
valid_cfgs.append(cfg)
|
||||||
model_names = [
|
model_names = [
|
||||||
|
|
Loading…
Reference in New Issue