This package contains only the class ImageSelectionFrame. More...
Classes | |
class | ImageSelectionFrame |
This class is used to display proposals to the user. More... | |
Functions | |
def | scale_image |
This method is used to scale an image to a maximum size. | |
Variables | |
int | MAX_HEIGHT = 500 |
constant defining the maximum width an displayed image is allowed to have | |
int | MAX_WIDTH = 250 |
constant defining the maximum width an displayed image is allowed to have |
This package contains only the class ImageSelectionFrame.
See class documentation for details.
def face_contour_detector.gui.image_selection_frame.scale_image | ( | img, | |
max_width, | |||
max_height | |||
) |
This method is used to scale an image to a maximum size.
img | The image to scale (PIL Image) |
max_width | The maximum width that the scaled version of this image is allowed to have |
max_height | The maximum height that the scaled version of this image is allowed to have |
This function returns a scaled version of the image. The image has a width <= max_width and a height <= max_height. The scaled version preserve the proportions of the original image.
Definition at line 93 of file image_selection_frame.py.
constant defining the maximum width an displayed image is allowed to have
Definition at line 22 of file image_selection_frame.py.
constant defining the maximum width an displayed image is allowed to have
Definition at line 20 of file image_selection_frame.py.