def _get_image_workaround_seek(self, idx):
        """Same as __getitem__ but seek through the video beforehand

        This is a workaround for an all-zero image returned by `imageio`.
        """
        warnings.warn("imageio workaround used!")
        cap = self.video_handle
        mult = 50
        for ii in range(idx//mult):
            cap.get_data(ii*mult)
        final = cap.get_data(idx)
        return final
def _get_image_workaround_seek ( self , idx ) : warnings . warn ( "imageio workaround used!" ) cap = self . video_handle mult = 50 for ii in range ( idx // mult ) : cap . get_data ( ii * mult ) final = cap . get_data ( idx ) return final
Same as __getitem__ but seek through the video beforehand

        This is a workaround for an all-zero image returned by `imageio`.