video699.__main__

This module provides the main script of the video699 package.

Module Contents

video699.__main__.QUADRANGLE_TRACKER_NAMES = ['rtree_deque']
video699.__main__.SCREEN_DETECTOR_NAMES = ['fastai', 'annotated']
video699.__main__.SCENE_DETECTOR_NAMES = ['distance', 'none']
video699.__main__.PAGE_DETECTOR_NAMES = ['siamese', 'imagehash', 'vgg16', 'annotated']
video699.__main__._documents(args)

Reads documents specified by the arguments of the main script.

Parameters:args (argparse.Namespace) – The arguments received by the main script.
Returns:documents – Documents specified by the arguments of the main script.
Return type:set of DocumentABC
video699.__main__._video(args)

Reads a video specified by the arguments of the main script.

Parameters:args (argparse.Namespace) – The arguments received by the main script.
Returns:video – A video specified by the arguments of the main script.
Return type:VideoABC
video699.__main__._scene_detector(video, args)

Produces a scene event detector from the arguments of the main script.

Parameters:
  • video (VideoABC) – A video in which the scene detector will detect important frames.
  • args (argparse.Namespace) – The arguments received by the main script.
Returns:

scene_event_detector – The scene event detector from the arguments of the main script.

Return type:

VideoABC

video699.__main__._screen_event_detector(args)

Produces a screen event detector from the arguments of the main script.

Parameters:args (argparse.Namespace) – The arguments received by the main script.
Returns:screen_event_detector – The screen event detector from the arguments of the main script.
Return type:ScreenEventDetectorABC
video699.__main__._convex_quadrangle_tracker(args)

Produces a convex quadrangle tracker from the arguments of the main script.

Parameters:args (argparse.Namespace) – The arguments received by the main script.
Returns:convex_quadrangle_tracker – The convex quadrangle tracker from the arguments of the main script.
Return type:ConvexQuadrangleTrackerABC
video699.__main__._screen_detector(args)

Produces a screen detector from the arguments of the main script.

Parameters:args (argparse.Namespace) – The arguments received by the main script.
Returns:screen_detector – The screen detector from the arguments of the main script.
Return type:ScreenDetectorABC
video699.__main__._page_detector(args)

Produces a page detector from the arguments of the main script.

Parameters:args (argparse.Namespace) – The arguments received by the main script.
Returns:page_detector – The page detector from the arguments of the main script.
Return type:PageDetectorABC
class video699.__main__.AnnotatedPageDetector(documents)

Bases: video699.interface.PageDetectorABC

detect(self, frame, appeared_screens, existing_screens, disappeared_screens)
video699.__main__.parser