Color_Harmonization

Color Harmonization

Color Harmonization is a computational model designed to adjust and enhance the color balance of an image based on harmony templates, as proposed in the paper by Daniel Cohen-Or et al. The model improves visual aesthetics by aligning image colors with established color harmony principles. It supports multiple harmony templates and can be integrated with user interfaces for visual quality assessment using metrics from interfacemetrics.aalto.fi.

Apache-2.0
Image-to-Image
PyTorch
English
by @AIOZAI
•
188
•
18

Last updated: a year ago


Input Schema

input_image
imagerequired

The image file on which color processing will be performed.


template
stringrequired

This is the name of a selected "harmonic color scheme". The template defines a specific color harmony to apply to the image. Available options: [Vertical Bar, VShape, Right Angle, Left Angle, Double Bar, TSshape, YBranch, XCross]


angle
integerrequired

This is an angle value used in the harmonic color scheme to adjust the colors in the image. This value can help shift or modify the color scheme of the image according to the selected template. Min: 1. Max: 90.

Output Schema

output_image
image

URL to a generated output artifact.


output_hue
image

URL to a generated output artifact.

Learn more
POSThttps://api.aiozai.network/api/v1/model/778579dc-4eaf-4a6e-8cc1-ddc735f7231d/task
X-API-KeyAIOZ_AI_API_KEY

curl -X POST \
"https://api.aiozai.network/api/v1/model/778579dc-4eaf-4a6e-8cc1-ddc735f7231d/task" \
-H "x-api-key: $AIOZ_AI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input_image": "https://api.aiozai.network/api/v1/storage/f/uploads/documents/771e2969-c3e0-4d9c-b1ec-1659334ae419/2025/10/06/1759714242-jjPnGgF6EvSnyVYt8hVXSL.jpeg",
"template": "v_shape",
"angle": 45
}'

Example response

{
"output_image": "https://s3.w3s.aioz.network/w3ai-platform/data/7a70647b41dd4b1aa72098a363f51d2a.png?AWSAccessKeyId=FR46RKQH5H6OUSSRC4TYELDGNM&Signature=yjunSRyB5aggiJtd4AdZHEo5eBc%3D&Expires=2765876099",
"output_hue": "https://s3.w3s.aioz.network/w3ai-platform/data/c717450abe6f4d3a80ebbb08952c6bd5.png?AWSAccessKeyId=FR46RKQH5H6OUSSRC4TYELDGNM&Signature=q2uh8ki52pNJKu%2B3%2FfPrxp5joug%3D&Expires=2765876098"
}