资源简介

位图转g代码轮廓加工源码,需要opencv模块,直接cmd 输入 pip install opencv-python即可安装

资源截图

代码片段和文件信息

# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file ‘I2G.ui‘
#
# Created by: PyQt5 UI code generator 5.13.0
#
# WARNING! All changes made in this file will be lost!


from PyQt5 import QtCore QtGui QtWidgets


class Ui_Form(object):
    def setupUi(self Form):
        Form.setobjectName(“Form“)
        Form.resize(400 300)
        Form.setMinimumSize(QtCore.QSize(400 300))
        Form.setMaximumSize(QtCore.QSize(400 300))
        self.im_b = QtWidgets.QPushButton(Form)
        self.im_b.setGeometry(QtCore.QRect(310 10 75 23))
        self.im_b.setobjectName(“im_b“)
        self.gb_sp = QtWidgets.QDoubleSpinBox(Form)
        self.gb_sp.setGeometry(QtCore.QRect(340 100 41 22))
        self.gb_sp.setDecimals(1)
        self.gb_sp.setMaximum(9.9)
        self.gb_sp.setobjectName(“gb_sp“)
        self.bl_sp = QtWidgets.QSpinBox(Form)
        self.bl_sp.setGeometry(QtCore.QRect(340 40 42 22))
        self.bl_sp.setMaximum(255)
        self.bl_sp.setProperty(“value“ 255)
        self.bl_sp.setobjectName(“bl_sp“)
        self.view_b = QtWidgets.QPushButton(Form)
        self.view_b.setEnabled(False)
        self.view_b.setGeometry(QtCore.QRect(310 130 75 23))
        self.view_b.setobjectName(“view_b“)
        self.gen_b = QtWidgets.QPushButton(Form)
        self.gen_b.setEnabled(False)
        self.gen_b.setGeometry(QtCore.QRect(310 260 75 23))
        self.gen_b.setobjectName(“gen_b“)
        self.bh_sp = QtWidgets.QSpinBox(Form)
        self.bh_sp.setGeometry(QtCore.QRect(340 70 42 22))
        self.bh_sp.setMaximum(255)
        self.bh_sp.setProperty(“value“ 127)
        self.bh_sp.setobjectName(“bh_sp“)
        self.s_sp = QtWidgets.QDoubleSpinBox(Form)
        self.s_sp.setGeometry(QtCore.QRect(340 200 41 22))
        self.s_sp.setDecimals(1)
        self.s_sp.setMaximum(99.9)
        self.s_sp.setProperty(“value“ 1.0)
        self.s_sp.setobjectName(“s_sp“)
        self.h_sp = QtWidgets.QDoubleSpinBox(Form)
        self.h_sp.setGeometry(QtCore.QRect(340 230 41 22))
        self.h_sp.setDecimals(1)
        self.h_sp.setMaximum(99.9)
        self.h_sp.setSingleStep(5.0)
        self.h_sp.setProperty(“value“ 1.0)
        self.h_sp.setobjectName(“h_sp“)
        self.h_le = QtWidgets.QLineEdit(Form)
        self.h_le.setGeometry(QtCore.QRect(330 160 51 16))
        self.h_le.setReadOnly(True)
        self.h_le.setobjectName(“h_le“)
        self.w_le = QtWidgets.QLineEdit(Form)
        self.w_le.setGeometry(QtCore.QRect(330 180 51 16))
        self.w_le.setReadOnly(True)
        self.w_le.setobjectName(“w_le“)
        self.label = QtWidgets.QLabel(Form)
        self.label.setGeometry(QtCore.QRect(310 40 21 21))
        self.label.setobjectName(“label“)
        self.label_2 = QtWidgets.QLabel(Form)
        self.label_2.setGeometry(QtCore.QRect(310 70 21 21))
        self.label_2.setobjectName(“label_2“)
        s

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       5341  2019-11-14 21:22  I2G.py

     文件       5821  2019-11-15 11:09  I2GApplication.py

----------- ---------  ---------- -----  ----

                11162                    2


评论

共有 条评论