Ejemplo n.º 1
0
 def downsample_video(self, event):
     if self.rotate.GetStringSelection() == "Yes":
         self.rotate = True
     else:
         self.rotate = False
     deeplabcut.DownSampleVideo(self.filelist[0],
                                width=-1,
                                height=self.height.GetValue(),
                                rotateccw=self.rotate)
Ejemplo n.º 2
0
    def downsample_video(self, event):
        if self.rotate.GetStringSelection() == "Yes":
            self.rotate_val = True
        else:
            self.rotate_val = False

        Videos = self.filelist
        if len(Videos) > 0:
            for video in Videos:
                deeplabcut.DownSampleVideo(
                    video,
                    width=-1,
                    height=self.height.GetValue(),
                    rotateccw=self.rotate_val,
                )
        else:
            print("Please select a video first!")