Skip to content

IVideoIndexerCallbacks

Namespace: VideoCataloger

Type: Interface

VideoIndexer interface.

Definition

public interface IVideoIndexerCallbacks

Methods

Method Description
StartingIndexing(VideoEntry) Called at the start of indexing to give an oportunity to cancel indexing.
ProcessFrame(int, double, ref Bitmap) Called for each frame. Source unaltered frame from the video
VideoIndexedEnd(VideoEntry) Video has finished indexing. This is called when the video has finished indexing and have been added to the catalog.
EndingIndexing() Called at the end of indexing, i.e no more videos in queue to be indexed.
EndingIndexing() Called at the end of indexing, i.e no more videos in queue to be indexed.

StartingIndexing

Called at the start of indexing to give an oportunity to cancel indexing.

bool StartingIndexing(VideoEntry video)

Parameters:

Name Type Description
video VideoCataloger.VideoEntry Video about to be indexed

Returns: Boolean - Return true to start indexing or false to skip the video


ProcessFrame

Called for each frame. Source unaltered frame from the video

bool ProcessFrame(int frame, double sample_time, ref Bitmap image)

Parameters:

Name Type Description
frame Int32 Frame number of the video frame. zero is the first frame.
sample_time Double Time of the frame in seconds from the start of the video.
image Drawing.Bitmap Bitmap with all image data of the frame.

Returns: Boolean - Return true if the frame should be stored in the catalog.


VideoIndexedEnd

Video has finished indexing. This is called when the video has finished indexing and have been added to the catalog.

void VideoIndexedEnd(VideoEntry captured_video)

Parameters:

Name Type Description
captured_video VideoCataloger.VideoEntry Image about the just finished captured video.

EndingIndexing

Called at the end of indexing, i.e no more videos in queue to be indexed.

void EndingIndexing()

EndingIndexing

Called at the end of indexing, i.e no more videos in queue to be indexed.

void EndingIndexing()