code: def __init__(self, param_path):
      super(LabelCorresWidget, self).__init__()
      self.tr = partial(QCoreApplication.translate, "APP_EISeg")
  
      self.userLabDict = None
      self.classLen = len(COCO_CLASS_DICT)
      self.param_path = param_path
      self.resize(500, 300)
  
      self.setWindowTitle(self.tr("目标检测标签映射设置"))
      self.labelCorrespondenceTable = QTableWidget()
      self.set_table_properties()
  
      self.btnCompleteLabelMapping = QPushButton(self.tr("完成"))
      self.btnCompleteLabelMapping.clicked.connect(
          self.completeLabelMapping
      )
      self.btnClearLabelMapping = QPushButton(self.tr("重置"))
      self.btnClearLabelMapping.clicked.connect(self.resetLabelMapping)
  
      self.ckbAllClass = QCheckBox(self.tr("全选"))
      self.ckbAllClass.clicked.connect(self.allSelect)
      self.ckbNoneClass = QCheckBox(self.tr("全不选"))
      self.ckbNoneClass.clicked.connect(self.noneSelect)
  
      v_layout = QVBoxLayout()
      # 查找
      findHorizontalLayout = QHBoxLayout()
      self.cbbCOCOFind = QComboBox()
      self.cbbCOCOFind.setMinimumSize(QSize(0, 32))
      self.cbbCOCOFind.setEditable(True)
      findHorizontalLayout.addWidget(self.cbbCOCOFind)
      self.btnCOCOFind = create_button(
          self,
          "btnCOCOFind",
          self.tr("查找"),
          osp.join(pjpath, "resource/Find.png"),
      )
      self.btnCOCOFind.setMinimumSize(QSize(0, 32))
      self.btnCOCOFind.setMaximumWidth(68)
      findHorizontalLayout.addWidget(self.btnCOCOFind)
      v_layout.addLayout(findHorizontalLayout)
      v_layout.addWidget(self.labelCorrespondenceTable)  # 主界面
      # 按钮及选择框
      h_layout = QHBoxLayout()
      h_layout.addWidget(self.btnCompleteLabelMapping)
      h_layout.addWidget(self.btnClearLabelMapping)
      h_layout.addSpacerItem(
          QSpacerItem(0, 0, QSizePolicy.Expanding, QSizePolicy.Minimum)
      )
      h_layout.addWidget(self.ckbAllClass)
      h_layout.addWidget(self.ckbNoneClass)
      v_layout.addLayout(h_layout)
      self.setLayout(v_layout)
  
      # 连接信号槽
      self.btnCOCOFind.clicked.connect(self._cocoFuzzyMatching)  # 模糊搜索
      self.cbbCOCOFind.activated[str].connect(self._findCOCOByText)
  
imports: import os.path
  from functools import partial
  from qtpy.QtCore import Qt, QCoreApplication, QSize
  from qtpy.QtWidgets import QDesktopWidget, QWidget, QTableWidget, QTableWidgetItem, QSpacerItem, QHeaderView, QPushButton, QVBoxLayout, QHBoxLayout, QCheckBox, QSizePolicy, QComboBox, QMessageBox
  from qtpy.QtGui import QBrush, QColor
  import json
  from eiseg import pjpath
  from widget.create import create_button
  from util.coco.detlabel import COCO_CLASS_DICT
label_desc: Use image node_id 1 to create a new LabelCorresWidget object from inherited base classes: QWidget with example: obj = LabelCorresWidget(param_path)