当前位置:网站首页>Matting function based on pyqt5 - program implementation
Matting function based on pyqt5 - program implementation
2022-06-09 03:55:00 【Crazy Beanbag】
PyQt yes Qt Framework of the Python Language implementation , Is the most powerful GUI One of the Libraries .PyQt Provides a well-designed collection of window controls , It has more convenient operability . Did you learn VB My classmates will know , Compared with the VB Use , There are more elements in the interface design .
This article is based on PyQt5 Completed matting function , Look at the interface first :

One 、 Interface PicR.ui Refer to how to implement , The program code is as follows :
from PyQt5 import QtCore, QtGui, QtWidgets
import base64
import os
from return_png import img as retu # introduce img Variable , Alias as pdf_cf
class Ui_PicR(object):
def setupUi(self, PicR):
tmp = open('return.png', 'wb') # Create temporary files
tmp.write(base64.b64decode(retu)) # Put this one Decode the picture , Write to file .
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(边栏推荐
- From just entering the testing industry to doubling my salary: talk about my advanced testing experience, which is worth learning from
- Rich color changes
- OnlineJudge使用说明
- SQL Server counts the data volume difference between today and yesterday that is greater than 10
- 【LeetCode】第48天 - 1037. 有效的回旋镖
- 从刚入测试界到薪资翻倍:聊聊我的测试进阶历程,值得借鉴
- 专家,如何快速转型管理者?
- The talent gap is more than 500000, and the average salary is 20K? Network security, the next outlet for testers~
- Assembly: JMP instructions
- 汇编:jmp指令
猜你喜欢
![[excellent design] opencv based face recognition punch in / sign in / attendance management system (the simplest basic library development, which can be based on raspberry pie)](/img/9f/3ccef9a39e29472ed6ed00d7082012.png)
[excellent design] opencv based face recognition punch in / sign in / attendance management system (the simplest basic library development, which can be based on raspberry pie)

《Attention-ocr-Chinese-Version-mas # ter》代码运行逻辑

在线JSON转XML工具

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

Assembly: CPU structure - flag register and related instructions

Merkle Patricia Trie原理

The key points of writing test cases for the first time

JVM memory view and setting ideas
![[software tools] [tutorials] a useful tool for exporting CSDN blog articles to word](/img/40/556cd8c4868a93d4cc06a4a945475d.png)
[software tools] [tutorials] a useful tool for exporting CSDN blog articles to word

Error 5 occurred in the console input command net start MySQL console output system. Access denied. MySQL service is starting MySQL service failed to start. The service did not report any errors. Plea
随机推荐
大厂外包or自研公司?测试人找工作怎么选?
网页设计期末大作业-景点旅游网站(含导航栏,轮播图,样式精美)
Why common read SQL is sent to the master instance in the distributed dble read / write separation scenario
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.
SQL Server counts the data volume difference between today and yesterday that is greater than 10
Erreur! Il n'y a pas de texte de style spécifié dans le document. (1)
如何使用Superset可无缝对接MRS进行自助分析
[软件工具][教程]一个很好用的可以将csdn博客文章导出word的工具使用教程
unity第一人称射击游戏,枪击游戏,功能完整可以当大作业或者毕设
专家,如何快速转型管理者?
Rich color changes
Indonesia widya robotics and Huawei cloud make the safety of construction sites visible
Octopus network louis:gamefi as an application chain has gradually become a consensus
几何运用题
Wwdc2022 interesting news Apple released the free weather API weatherkit
Today in history: kubernetes open source version released; Worldofwarcraft landed in China; The inventor of packet switching network was born
Assembly: CPU structure - flag register and related instructions
Kotlin basics from getting started to advanced series (Introduction) basic use of file storage
Online JSON to XML tool
Fault analysis | a special scenario in MySQL where a new user cannot log in