{"action":"created","issue":{"url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-node/issues/2383","repository_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-node","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-node/issues/2383/labels{/name}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-node/issues/2383/comments","events_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-node/issues/2383/events","html_url":"https://github.com/GoogleCloudPlatform/google-cloud-node/issues/2383","id":235397208,"number":2383,"title":"Vision API pixelFractions don't add up","user":{"login":"aggubin","id":2379482,"avatar_url":"https://avatars2.githubusercontent.com/u/2379482?v=3","gravatar_id":"","url":"https://api.github.com/users/aggubin","html_url":"https://github.com/aggubin","followers_url":"https://api.github.com/users/aggubin/followers","following_url":"https://api.github.com/users/aggubin/following{/other_user}","gists_url":"https://api.github.com/users/aggubin/gists{/gist_id}","starred_url":"https://api.github.com/users/aggubin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aggubin/subscriptions","organizations_url":"https://api.github.com/users/aggubin/orgs","repos_url":"https://api.github.com/users/aggubin/repos","events_url":"https://api.github.com/users/aggubin/events{/privacy}","received_events_url":"https://api.github.com/users/aggubin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-06-12T23:49:05Z","updated_at":"2017-06-13T16:30:35Z","closed_at":null,"body":"I am evaluating Vision API for color detection and ran into this issue:\r\n\r\nI've uploaded an image of a rainbow to https://cloud.google.com/vision/docs/drag-and-drop\r\n![rainbow](https://user-images.githubusercontent.com/2379482/27059914-4984ec4c-4f8e-11e7-9dc2-39042cbbe15b.jpg)\r\n\r\nand got the following for image properties:\r\n  \"imagePropertiesAnnotation\": {\r\n      \"dominantColors\": {\r\n        \"colors\": [\r\n          {\r\n            \"color\": {\r\n              \"red\": 3,\r\n              \"green\": 2,\r\n              \"blue\": 253\r\n            },\r\n            \"score\": 0.23274913,\r\n            \"pixelFraction\": 0.08280405\r\n          },\r\n          {\r\n            \"color\": {\r\n              \"red\": 6,\r\n              \"green\": 129,\r\n              \"blue\": 6\r\n            },\r\n            \"score\": 0.22612064,\r\n            \"pixelFraction\": 0.10820983\r\n          },\r\n          {\r\n            \"color\": {\r\n              \"red\": 249,\r\n              \"green\": 249,\r\n              \"blue\": 10\r\n            },\r\n            \"score\": 0.12150193,\r\n            \"pixelFraction\": 0.06665099\r\n          },\r\n          {\r\n            \"color\": {\r\n              \"red\": 74,\r\n              \"green\": 3,\r\n              \"blue\": 128\r\n            },\r\n            \"score\": 0.057100553,\r\n            \"pixelFraction\": 0.10577903\r\n          },\r\n          {\r\n            \"color\": {\r\n              \"red\": 253,\r\n              \"green\": 168,\r\n              \"blue\": 3\r\n            },\r\n            \"score\": 0.044047087,\r\n            \"pixelFraction\": 0.07417862\r\n          },\r\n          {\r\n            \"color\": {\r\n              \"red\": 41,\r\n              \"blue\": 200\r\n            },\r\n            \"score\": 0.015849508,\r\n            \"pixelFraction\": 0.009252725\r\n          },\r\n          {\r\n            \"color\": {\r\n              \"red\": 81,\r\n              \"green\": 85,\r\n              \"blue\": 253\r\n            },\r\n            \"score\": 0.008871765,\r\n            \"pixelFraction\": 0.0034501685\r\n          },\r\n          {\r\n            \"color\": {\r\n              \"red\": 253,\r\n              \"green\": 2,\r\n              \"blue\": 3\r\n            },\r\n            \"score\": 0.006723068,\r\n            \"pixelFraction\": 0.096996784\r\n          },\r\n          {\r\n            \"color\": {\r\n              \"red\": 165,\r\n              \"green\": 159,\r\n              \"blue\": 7\r\n            },\r\n            \"score\": 0.0064168423,\r\n            \"pixelFraction\": 0.0047047753\r\n          },\r\n          {\r\n            \"color\": {\r\n              \"red\": 154,\r\n              \"green\": 78,\r\n              \"blue\": 189\r\n            },\r\n            \"score\": 0.0041353106,\r\n            \"pixelFraction\": 0.011761938\r\n          }\r\n        ]\r\n      }\r\n    }\r\n\r\nthings I've noticed: \r\npixelFractions add up to  1.0, but rather to 0.5637 and scores to ~0.7235...\r\nWhy is that, where does the rest of the pixels go?\r\n\r\nI also uploaded the following image: \r\n![red](https://user-images.githubusercontent.com/2379482/27060011-e48f2dec-4f8e-11e7-87a1-b4595fb79e1b.jpeg)  (single color red block)\r\nand that gives expected 1 and 1 for pixelFraction and score\r\n\r\n\r\nSincerely,\r\nAlexander"},"comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-node/issues/comments/308173754","html_url":"https://github.com/GoogleCloudPlatform/google-cloud-node/issues/2383#issuecomment-308173754","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-node/issues/2383","id":308173754,"user":{"login":"lukesneeringer","id":4346,"avatar_url":"https://avatars3.githubusercontent.com/u/4346?v=3","gravatar_id":"","url":"https://api.github.com/users/lukesneeringer","html_url":"https://github.com/lukesneeringer","followers_url":"https://api.github.com/users/lukesneeringer/followers","following_url":"https://api.github.com/users/lukesneeringer/following{/other_user}","gists_url":"https://api.github.com/users/lukesneeringer/gists{/gist_id}","starred_url":"https://api.github.com/users/lukesneeringer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukesneeringer/subscriptions","organizations_url":"https://api.github.com/users/lukesneeringer/orgs","repos_url":"https://api.github.com/users/lukesneeringer/repos","events_url":"https://api.github.com/users/lukesneeringer/events{/privacy}","received_events_url":"https://api.github.com/users/lukesneeringer/received_events","type":"User","site_admin":false},"created_at":"2017-06-13T16:30:35Z","updated_at":"2017-06-13T16:30:35Z","body":"Hello @aggubin,\r\nThat's definitely an API issue, and this repo is only the client library for it (sorry about that).\r\n\r\n@xinjiez, can you provide thoughts here?"}}
{"actor":{"display_login":"lukesneeringer"}}