Notice: Over the next few months, we're reorganizing the App Engine documentation site to make it easier to find content and better align with the rest of Google Cloud products. The same content will be available, but the navigation will now match the rest of the Cloud products.

Python 3.10 is now generally available.

google.appengine.api.images.histogram

Calculates the histogram of the given image.

image_data String of the source image data.
rpc An optional UserRPC object.

3 256-element lists containing the number of occurences of each value of each color in the order RGB.

NotImageError If the supplied image data is not an image.
BadImageError If the supplied image data is corrupt.
LargeImageError If the supplied image data is too large to process.
Error All other errors.