Extract video data
The resources.Video
class provides methods to extract data from the videos you’ve uploaded to the platform.
Methods
Extract transcriptions
Description: This method retrieves a transcription of the spoken words.
Function signature and example:
Parameters:
Return value: Returns a RootModelList
containing models.VideoValue
objects, each representing a segment of the transcription.
API Reference: For a description of each field in the request and response, see the Retrieve a transcription page.
Related guide: Extract transcriptions.
Extract text recognized in video (OCR)
Description: This method retrieves text recognized in video (OCR).
Function signature and example:
Parameters:
Return value: Returns a RootModelList
containing models.VideoValue
objects, each representing a segment of recognized text in the video.
API Reference: For a description of each field in the request and response, see the Retrieve text recognized in video page.
Related guide: Extract text recognized in video (OCR).
Extract logos
Description: This method retrieves information about the logos detected in a specific video.
Function signature and example:
Parameters:
Return value: Returns a RootModelList
containing models.VideoValue
objects, each representing a segment where a logo was detected in the video.
API Reference: For a description of each field in the request and response, see the Extract logos page.
Related guide: Extract logos.
Extract thumbnails
Description: This method retrieves a thumbnail of a video. To use this feature, you must enable thumbnail generation for the index to which the video has been uploaded. For details, see the Create indexes page.
Function signature and example:
Parameters:
Return value: Returns a str
representing the URL of the thumbnail.
API Reference: For a description of each field in the request and response, see the Retrieve a thumbnail page.
Related guide: Retrieve thumbnails.