code: def __init__(self, *args):
      super(AnnotationView, self).__init__(*args)
      self.setRenderHints(
          QtGui.QPainter.Antialiasing
          | QtGui.QPainter.SmoothPixmapTransform
      )
      self.setMouseTracking(True)
      self.setTransformationAnchor(QtWidgets.QGraphicsView.NoAnchor)
      self.setResizeAnchor(QtWidgets.QGraphicsView.NoAnchor)
      self.point = QtCore.QPoint(0, 0)
      self.middle_click = False
      self.det_mode = False
      self.zoom_range = (0.02, 50)
      self.zoom_all = 1
  
file_path: PaddleSeg/EISeg/eiseg/widget/view.py
imports: from qtpy import QtWidgets, QtCore, QtGui
  from qtpy.QtCore import Qt, QPointF
label_desc: Use image node_id 1 to create a new AnnotationView object from inherited base classes: QtWidgets with example: obj = AnnotationView()