Getting the Average RGB Value of an Image
You can get the average RGB value of an image only by making an API call.
The returned average RGB value is a hexadecimal string in JSON.
This operation is represented by average-hue.
Example
Below gives an example of querying the average RGB value of the example.jpg image:
If information similar to the following is displayed, the average RGB value of the image is obtained:
{"RGB":"#28577D"}
Original example.jpg image:
Color corresponding to the average RGB value (#28577D):
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot