video699.page.imagehash

This module implements a page detector that matches image hashes extracted from document page image data with image hashes extracted from projection screen image data. Related classes and functions are also implemented.

Module Contents

video699.page.imagehash.LOGGER
video699.page.imagehash.CONFIGURATION
video699.page.imagehash._hash_image(image)

Produces an image hash for an image.

Parameters:image (ImageABC) – An image.
Returns:image_hash – A hash of the image.
Return type:array_like
class video699.page.imagehash.ImageHashPageDetector(documents)

Bases: video699.interface.PageDetectorABC

A page detector using approximate nearest neighbor search of image hashes.

The following image hashes are used to represent images: - average hash and perception hash [Krawetz11], - difference hash [Krawetz13], and - wavelet hash [Petrov16].

Parameters:documents (set of DocumentABC) – The provided document pages.
detect(self, frame, appeared_screens, existing_screens, disappeared_screens)