当前位置:网站首页>基于PyQt5完成的抠图功能-程序实现
基于PyQt5完成的抠图功能-程序实现
2022-06-09 03:51:00 【疯狂的豆包】
PyQt是Qt框架的Python语言实现,是最强大的GUI库之一。PyQt提供了一个设计良好的窗口控件集合,具有更方便的操作性。学过VB的同学会知道,相比与VB的使用,在界面设计上元素更丰富。
本文就是基于PyQt5完成的抠图功能,先看界面:

一、界面PicR.ui可参考上文如何实现,程序代码如下:
from PyQt5 import QtCore, QtGui, QtWidgets
import base64
import os
from return_png import img as retu # 引入img变量,赋别名为pdf_cf
class Ui_PicR(object):
def setupUi(self, PicR):
tmp = open('return.png', 'wb') # 创建临时的文件
tmp.write(base64.b64decode(retu)) # 把这个one图片解码出来,写入文件中去。
tmp.close()
PicR.setObjectName("PicR")
PicR.setWindowModality(QtCore.Qt.NonModal)
PicR.setEnabled(True)
PicR.resize(1400, 814)
PicR.setMinimumSize(QtCore.QSize(1400, 814))
PicR.setMaximumSize(边栏推荐
- 网页设计期末大作业-景点旅游网站(含导航栏,轮播图,样式精美)
- 丰富的色彩变化
- 目标检测模型mAP计算方法与对比步骤——对比原模型与量化模型之间的mAP
- Laravel view access routes
- unity第一人称射击游戏,枪击游戏,功能完整可以当大作业或者毕设
- Mongodb database document display exception
- How to calculate the number of parameters in the LSTM layer
- 【word】错误!文档中没有指定样式的文字。 1
- 【分享】网络丢包故障处理方案
- What is the value of Yuan universe virtual real estate?
猜你喜欢

接口性能测试:web service接口测试

Merkle Patricia Trie原理
![[软件工具][教程]一个很好用的可以将csdn博客文章导出word的工具使用教程](/img/40/556cd8c4868a93d4cc06a4a945475d.png)
[软件工具][教程]一个很好用的可以将csdn博客文章导出word的工具使用教程

六个C语言期末大作业-KTV选歌、个人收支管理、职工资源管理、班级学生档案管理、产品信息管理、图书馆管理系统

【LeetCode】第48天 - 1037. 有效的回旋镖

php反序列化复现——bugku 点login没反应

月薪近万,3年销售助理转行测试,0经验的我如何拿到多份offer?

Method of accessing LAN by external network and how virtual machines installed by VM access each other in LAN

C language interview tube: talk about the functions of various string functions. I: I don't know. Interviewer: come back for an interview when the young man has learned how to do it.

丰富的色彩变化
随机推荐
六个C语言期末大作业-KTV选歌、个人收支管理、职工资源管理、班级学生档案管理、产品信息管理、图书馆管理系统
大厂外包or自研公司?测试人找工作怎么选?
GC日志分析
ArcGIS Runtime 离线gdb数据缺失问题处理
Software Test Engineer, to what extent can I get 1W in a month?
JVM内存查看及设置思路
Six C language final assignments KTV song selection, personal revenue and expenditure management, staff resource management, class student file management, product information management, library mana
On June 12, MSG enterprise bank focused on Langfang AI enterprises to promote the integrated development of "double chain"
Memory surge problem location
基于OpenCV的人脸检测、训练、识别
word+正则表达式==快速批量添加图注题注(保姆级图文)
ES6之Symbol详解
Detailed explanation of HLS live broadcast protocol m3u8
如何使用Superset可无缝对接MRS进行自助分析
85. (leaflet house) leaflet military plotting - line arrow drawing
php反序列化复现——bugku 点login没反应
[leetcode] day 48 - 1037 Effective boomerang
85.(leaflet之家)leaflet军事标绘-直线箭头绘制
MongoDB搭建副本集集群
Generics and decorators for typescript