MCPcopy Index your code
hub / github.com/DeepLabCut/DeepLabCut / __init__

Method __init__

deeplabcut/gui/widgets.py:470–488  ·  view source on GitHub ↗
(self, video, parent=None)

Source from the content-addressed store, hash-verified

468
469class FrameCropper(QtWidgets.QDialog):
470 def __init__(self, video, parent=None):
471 super().__init__(parent)
472 self.clip = VideoWriter(video)
473
474 self.fig = Figure()
475 self.ax = self.fig.add_subplot(111)
476 self.ax_help = self.fig.add_axes([0.9, 0.2, 0.1, 0.1])
477 self.ax_save = self.fig.add_axes([0.9, 0.1, 0.1, 0.1])
478 self.crop_button = Button(self.ax_save, "Crop")
479 self.crop_button.on_clicked(self.validate_crop)
480 self.help_button = Button(self.ax_help, "Help")
481 self.help_button.on_clicked(self.display_help)
482
483 self.canvas = FigureCanvas(self.fig)
484 layout = QtWidgets.QVBoxLayout(self)
485 layout.addWidget(self.canvas)
486 self.setLayout(layout)
487
488 self.bbox = [0, 0, 0, 0]
489
490 def draw_bbox(self):
491 frame = None

Callers

nothing calls this directly

Calls 2

VideoWriterClass · 0.90
__init__Method · 0.45

Tested by

no test coverage detected