You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Beam JIRA Bot (Jira)" <ji...@apache.org> on 2020/10/12 17:10:01 UTC

[jira] [Updated] (BEAM-10692) Change org.apache.beam.sdk.extensions.ml.CloudVision to associate the AnnotateImageResponses with the image data used for the annotation

     [ https://issues.apache.org/jira/browse/BEAM-10692?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Beam JIRA Bot updated BEAM-10692:
---------------------------------
    Labels: stale-P2  (was: )

> Change org.apache.beam.sdk.extensions.ml.CloudVision to associate the AnnotateImageResponses with the image data used for the annotation
> ----------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: BEAM-10692
>                 URL: https://issues.apache.org/jira/browse/BEAM-10692
>             Project: Beam
>          Issue Type: New Feature
>          Components: extensions-java-gcp
>    Affects Versions: 2.22.0
>            Reporter: Sergei Lilichenko
>            Priority: P2
>              Labels: stale-P2
>
> There is a problem with the design of that transform. It takes a PCollection<String> (in case of GCS URIs) in and outputs PCollection<List<AnnotateImageResponse>>. There is no way to associate the responses with the original file URIs. [ImageAnnotationContext|https://cloud.google.com/vision/docs/reference/rest/v1/AnnotateImageResponse#ImageAnnotationContext] is returned as part of the response, but the "uri" is empty for the majority of annotations (looks like it's only populated for file annotations and not for image annotations).
> One approach is to return KV<String, List<AnnotateImageResponse>> for images where the key is the GCS URI and for bytes to pass an id of any type and do KV<IDTYPE, List<AnnotateImageResponse>>.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)