-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vision image properties #2320
Vision image properties #2320
Conversation
a08bd4e
to
c741476
Compare
71f4e4b
to
e99b0e2
Compare
@tseaver, I cleaned this up so it should be ready to checkout as well. |
e99b0e2
to
acc96bc
Compare
|
||
@property | ||
def red(self): | ||
"""Red color. |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
return self._red | ||
|
||
@property | ||
def green(self): |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
""" | ||
return self._green | ||
|
||
@property |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
||
:type red: int | ||
:param red: The amount of red in the color as a value in the interval | ||
[0, 1]. |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
:param color: RGB components of the color. | ||
|
||
:type score: float | ||
:param score: Image-specific score for this color. Value in range [0, 1]. |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
} | ||
} | ||
] | ||
} |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@tseaver, updated everything except the |
LGTM |
5fdb9da
to
5e0da90
Compare
Based from #2319
Adds the image properties detection API for Vision.
This adds a fairly large
ImagePropertiesAnnotation
with several classes to absorb the color data in the response.✅ Also after #2319 is merged I will clean up the weird commit history.