xtract.bot
POST /api/image-histogram

Compute pixel histograms for an image. Returns per-channel bin counts (red, green, blue, luma). Useful for exposure analysis and white-balance estimation.

Computes a histogram for each of the four channels: red, green, blue, and luminance. Each channel histogram is an array of `bins` integers summing to the pixel count of the image. Useful for exposure analysis, white-balance estimation, thresholding parameter tuning, and image fingerprinting.

Inputs

NameTypeDefaultDescription
image*fileInput image bytes.
binsnumber (2…256)256Histogram bin count per channel (1-256).

Response

Modes: json. Cache: yes (24h TTL).