最近,给图像超分辨率加了个界面
1、开始界面
2、处理视频和图片
3、结果展示界面,后续功能会添加。。。。。
界面的代码
from PyQt5.QtWidgets import QApplication, QMainWindow, QPushButton, QStackedWidget, QWidget
from run import mywindow
from PyQt5.QtGui import QPixmap
from PyQt5.QtCore import Qt
from PyQt5.QtWidgets import QHBoxLayout
import sys
from PyQt5.QtWidgets import QApplication, QLabel, QHBoxLayout, QWidget
from PyQt5.QtGui import QPainter, QColor, QFont
class FirstWidget(QWidget):
def __init__(self, parent=None):
super().__init__()
self.parent = parent
self.nextPageButton = QPushButton("Next Page", self)
self.nextPageButton.clicked.connect(self.go_next_page)
self.nextPageButton.move(700, 570)
self.resize(800, 700) # 新增这一行
pixmap = QPixmap('图书馆.png')
pixmap = pixmap.scaled(300, 150)
lbl = QLabel(self)
lbl.setPixmap(pixmap)
lbl.move(250, 50