Documentation ¶
Index ¶
Constants ¶
View Source
const ( // PredictorPath is the folder the trained predictor is in PredictorPath = "/etc/cabiria" // PredictorFilename is the name of the file which holds the trained predictor PredictorFilename = "intertitlePredictor.model" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Predictor ¶
Predictor can be used to predict whether given frames are intertitles
or not.
type Range ¶
Range defines a set of frames which encapsulate an intertitle.
Range can be used as a Period.
func MapRanges ¶
MapRanges takes an array of intertitle frames and an fps, and reduces it
to an array of Ranges.
func (Range) Start ¶
Start returns a time representation of the start frame of a Range,
using the FPS.
func (Range) TransformToNew ¶
TransformToNew computes a new Range given the desired start and end times,
calculating frame numbers using the FPS.
Click to show internal directories.
Click to hide internal directories.