ui/ImageView.py
def draw_bounding_box(self, box_src: SourceBoundingBox, manager: BoundingBoxManager):
        """
        Draw a bounding box in the scene, add to box manager
        :param box_src: Source bounding box to add
        :param manager: Bounding box manager
        :return: Graphical bounding box item
        """
        box_pos = self.get_scene_rel_point(QPointF(box_src.x(), box_src.y()))
        box_item = manager.make_box(
            box_pos.x(),
            box_pos.y(),
            self.pixmap_scalar * box_src.width(),
            self.pixmap_scalar * box_src.height(),
            box_src.label,
            box_src)
        self.scene().addItem(box_item)
        return box_item

        Draw a bounding box in the scene, add to box manager
        :param box_src: Source bounding box to add
        :param manager: Bounding box manager
        :return: Graphical bounding box item
        
Draw a bounding box in the scene, add to box manager
Draw a bounding box in the scene add to box manager
def draw_bounding_box(self, box_src: SourceBoundingBox, manager: BoundingBoxManager):
        box_pos = self.get_scene_rel_point(QPointF(box_src.x(), box_src.y()))
        box_item = manager.make_box(
            box_pos.x(),
            box_pos.y(),
            self.pixmap_scalar * box_src.width(),
            self.pixmap_scalar * box_src.height(),
            box_src.label,
            box_src)
        self.scene().addItem(box_item)
        return box_item
def draw_bounding_box ( self , box_src : SourceBoundingBox , manager : BoundingBoxManager ) : box_pos = self . get_scene_rel_point ( QPointF ( box_src . x ( ) , box_src . y ( ) ) ) box_item = manager . make_box ( box_pos . x ( ) , box_pos . y ( ) , self . pixmap_scalar * box_src . width ( ) , self . pixmap_scalar * box_src . height ( ) , box_src . label , box_src ) self . scene ( ) . addItem ( box_item ) return box_item
Draw a bounding box in the scene, add to box manager
Draw a bounding box in the scene add to box manager
"""
        Draw a bounding box in the scene, add to box manager
        :param box_src: Source bounding box to add
        :param manager: Bounding box manager
        :return: Graphical bounding box item
        """
Graphical bounding box item
Graphical bounding box item
self
box_src
SourceBoundingBox
Source bounding box to add
Source bounding box to add
manager
BoundingBoxManager
Bounding box manager
Bounding box manager