This class is used to extract information from an image using ImageInformation subclasses. More...
Public Member Functions | |
def | __init__ |
Constructor method. | |
def | add_default_extractors |
add ImageInformation objects for classes SizeExtractor, MinMaxExtractor, AverageValueExtractor | |
def | to_dict |
Create a dictionary using the ImageInformation instances stored in self.information_extractors. | |
Public Attributes | |
information_extractors | |
a list of objects of type ImageInformation. |
This class is used to extract information from an image using ImageInformation subclasses.
Definition at line 126 of file image_information.py.
Constructor method.
self | the object pointer |
Definition at line 129 of file image_information.py.
def face_contour_detector.image_information.image_information.InformationExtractor.add_default_extractors | ( | self | ) |
add ImageInformation objects for classes SizeExtractor, MinMaxExtractor, AverageValueExtractor
self | the object pointer |
Definition at line 138 of file image_information.py.
def face_contour_detector.image_information.image_information.InformationExtractor.to_dict | ( | self, | |
img | |||
) |
Create a dictionary using the ImageInformation instances stored in self.information_extractors.
self | the object pointer |
img | the image to collect the information from as cvMat with RGB colors. |
All ImageInformation subclasses return in their extract_information() method tuples of names and values. The dictionary uses the names as keys and stores the information as tuples: (value, type)
Definition at line 149 of file image_information.py.
a list of objects of type ImageInformation.
In this list all extractors are stored.
Definition at line 129 of file image_information.py.