label_import/timestamp.py
def from_frameidx_fps(cls, frameidx, fps):
        """
        Construct Timestamp from frame index and fps
        :param frameidx:
        :param fps: Frames per second
        :return:
        """
        import helper.helper as hlp
        milliseconds = (frameidx % fps) * 100 / fps
        total_seconds = frameidx // fps
        seconds = total_seconds % S_PER_MIN
        total_minutes = total_seconds // S_PER_MIN
        minutes = total_minutes % MIN_PER_H
        hours = hlp.clamp(total_minutes // MIN_PER_H, 0, 99)
        return cls(hours, minutes, seconds, milliseconds)

        Construct Timestamp from frame index and fps
        :param frameidx:
        :param fps: Frames per second
        :return:
        
Construct Timestamp from frame index and fps
Construct Timestamp from frame index and fps
def from_frameidx_fps(cls, frameidx, fps):
        import helper.helper as hlp
        milliseconds = (frameidx % fps) * 100 / fps
        total_seconds = frameidx // fps
        seconds = total_seconds % S_PER_MIN
        total_minutes = total_seconds // S_PER_MIN
        minutes = total_minutes % MIN_PER_H
        hours = hlp.clamp(total_minutes // MIN_PER_H, 0, 99)
        return cls(hours, minutes, seconds, milliseconds)
def from_frameidx_fps ( cls , frameidx , fps ) : import helper . helper as hlp milliseconds = ( frameidx % fps ) * 100 / fps total_seconds = frameidx // fps seconds = total_seconds % S_PER_MIN total_minutes = total_seconds // S_PER_MIN minutes = total_minutes % MIN_PER_H hours = hlp . clamp ( total_minutes // MIN_PER_H , 0 , 99 ) return cls ( hours , minutes , seconds , milliseconds )
Construct Timestamp from frame index and fps
Construct Timestamp from frame index and fps
"""
        Construct Timestamp from frame index and fps
        :param frameidx:
        :param fps: Frames per second
        :return:
        """
None
cls
frameidx
None
fps
Frames per second
Frames per second