[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Cloud Vision V1 Client - Class ColorInfo (2.0.3)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.3 (latest)](/php/docs/reference/cloud-vision/latest/V1.ColorInfo)\n- [2.0.2](/php/docs/reference/cloud-vision/2.0.2/V1.ColorInfo)\n- [1.10.3](/php/docs/reference/cloud-vision/1.10.3/V1.ColorInfo)\n- [1.9.4](/php/docs/reference/cloud-vision/1.9.4/V1.ColorInfo)\n- [1.8.0](/php/docs/reference/cloud-vision/1.8.0/V1.ColorInfo)\n- [1.7.6](/php/docs/reference/cloud-vision/1.7.6/V1.ColorInfo)\n- [1.6.8](/php/docs/reference/cloud-vision/1.6.8/V1.ColorInfo) \nReference documentation and code samples for the Cloud Vision V1 Client class ColorInfo.\n\nColor information consists of RGB channels, score, and the fraction of\nthe image that the color occupies in the image.\n\nGenerated from protobuf message `google.cloud.vision.v1.ColorInfo`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Vision \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getColor\n\nRGB components of the color.\n\n### hasColor\n\n### clearColor\n\n### setColor\n\nRGB components of the color.\n\n### getScore\n\nImage-specific score for this color. Value in range \\[0, 1\\].\n\n### setScore\n\nImage-specific score for this color. Value in range \\[0, 1\\].\n\n### getPixelFraction\n\nThe fraction of pixels the color occupies in the image.\n\nValue in range \\[0, 1\\].\n\n### setPixelFraction\n\nThe fraction of pixels the color occupies in the image.\n\nValue in range \\[0, 1\\]."]]