hexdropper.most_common_rgb

Module Contents

Functions

most_common_rgb(input_array)

Determine the most common RGB values based on an image-derived array.

hexdropper.most_common_rgb.most_common_rgb(input_array)[source]

Determine the most common RGB values based on an image-derived array.

The input

Parameters:

input_array (ndarray(dtype=float, ndim=3)) – Array containing data from a cropped image

Returns:

Most common RGB values.

Return type:

tuple

Examples

>>> most_common_rgb(img_arr)