Object viewability determination system and method
A system for calculating viewability scores of objects displayed within a viewport, the system comprising a processing resource configured to perform the following for at least one object of the objects: determine a first value indicative of a relative portion of the object from the viewport; and calculate a viewability score of the object, wherein the viewability score is calculated based on the first value.
1 . A system for determining viewability of an object displayed within a scene, the system comprising one or more processing units configured to:
divide said object displayed within said scene into a plurality of segments, each composed of a plurality of pixels;
for each segment of said plurality of segments, determine an average color value based on color encoding values of the pixels within the segment;
identify one or more segments having a dominating desired color, wherein a segment is determined to have a dominating desired color if the color encoding values of the pixels in the segment are within a threshold distance from the average color value of that segment;
determine an actual color for each of the segments having a dominating desired color, based on visual data of the object as displayed in a rendered scene;
compare, for each segment having a dominating desired color, the actual color of the segment to a corresponding desired color to generate a color resemblance value; and,
based on the color resemblance values of the dominating color segments, calculate a viewability score of the object, being indicative of the object's visibility within said scene.
2 . The system of claim 1 , wherein upon the color resemblance value being lower than a low threshold, the viewability score is calculated based on an under-threshold-value indicative of the color resemblance value being under the low threshold.
3 . The system of claim 2 , wherein the under-threshold-value is zero.
4 . The system of claim 1 , wherein upon the color resemblance value being higher than a high threshold, the viewability score is calculated based on an over-threshold-value indicative of the color resemblance value being over the high threshold.
5 . The system of claim 4 , wherein the over-threshold-value is one.
6 . The system of claim 1 , wherein the processing resource is further configured to determine a second value indicative of a relative portion of the object from the viewport, and wherein the viewability score is calculated also based on the second value.
7 . The system of claim 1 , wherein the processing resource is further configured to determine a third value indicative of relative portion of the object visible in the viewport, and wherein the viewability score is calculated also based on the third value.
8 . A method for determining viewability of an object displayed within a scene, the method comprising:
dividing said object displayed within said scene into a plurality of segments, each composed of a plurality of pixels;
for each segment of said plurality of segments, determining an average color value based on color encoding values of the pixels within the segment;
identifying one or more segments having a dominating desired color, wherein a segment is determined to have a dominating desired color if the color encoding values of the pixels in the segment are within a threshold distance from the average color value of that segment;
determining an actual color for each of the segments having a dominating desired color, based on visual data of the object as displayed in a rendered scene;
comparing, for each segment having a dominating desired color, the actual color of the segment to a corresponding desired color to generate a color resemblance value; and,
based on the color resemblance values of the dominating color segments, calculating a viewability score of the object, being indicative of the object's visibility within said scene.
9 . The method of claim 8 , wherein upon the color resemblance value being lower than a low threshold, the viewability score is calculated based on an under-threshold-value indicative of the color resemblance value being under the low threshold.
10 . The method of claim 9 , wherein the under-threshold-value is zero.
11 . The method of claim 8 , wherein upon the color resemblance value being higher than a high threshold, the viewability score is calculated based on an over-threshold-value indicative of the color resemblance value being over the high threshold.
12 . The method of claim 11 , wherein the over-threshold-value is one.
13 . The method of claim 8 , further comprising determining, by the processing resource, a second value indicative of a relative portion of the object from the viewport, and wherein the viewability score is calculated also based on the second value.
14 . The method of claim 8 , further comprising determining, by the processing resource, a third value indicative of relative portion of the object visible in the viewport, and wherein the viewability score is calculated also based on the third value.
15 . A non-transitory computer readable storage medium having computer readable program code embodied therewith, the computer readable program code, executable by at least one processing resource of a computer to perform a method for determining viewability of an object displayed within a scene, the method comprising performing the following:
dividing said object displayed within said scene into a plurality of segments, each composed of a plurality of pixels;
for each segment of said plurality of segments, determining an average color value based on color encoding values of the pixels within the segment;
identifying one or more segments having a dominating desired color, wherein a segment is determined to have a dominating desired color if the color encoding values of the pixels in the segment are within a threshold distance from the average color value of that segment;
determining an actual color for each of the segments having a dominating desired color, based on visual data of the object as displayed in a rendered scene;
comparing, for each segment having a dominating desired color, the actual color of the segment to a corresponding desired color to generate a color resemblance value; and,
based on the color resemblance values of the dominating color segments, calculating a viewability score of the object, being indicative of the object's visibility within said scene.