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
187
18

Last updated: 6 months ago


Endpoint


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

Input Schema


Input Schema
FieldTypeDescription
input_image
URLrequired
The image file on which color processing will be performed.
template
optionsrequired
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, v_shape, right_angle, left_angle, double_bar, t_shape, y_branch, x_cross]
angle
intrequired
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 Schema
FieldTypeDescription
output_image
URL
URL to a generated output artifact.
output_hue
URL
URL to a generated output artifact.
Learn more
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://s3.w3s.aioz.network/w3ai-platform-v2/uploads/documents/771e2969-c3e0-4d9c-b1ec-1659334ae419/2025/10/06/1759714242-jjPnGgF6EvSnyVYt8hVXSL.jpeg?AWSAccessKeyId=FT7EO3IGQNMIILHXIDZRVTJHWE&Signature=NZCRUDzybvBqibmO9gWzc3yhz78%3D&Expires=2390434242",
"template": "v_shape",
"angle": 45
}'

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"
}