[ 
https://issues.apache.org/jira/browse/BEAM-9247?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17032407#comment-17032407
 ] 

Elias Djurfeldt commented on BEAM-9247:
---------------------------------------

Got a question regarding the input. For every image (element), you can also 
provide `image_context` as seen hereĀ 
[https://google-cloud-python.readthedocs.io/en/0.32.0/vision/gapic/v1/types.html#google.cloud.vision_v1.types.AnnotateImageRequest]

I think it's safe to assume that we can keep `features` static over the entire 
PCollection, but the image_context might be unique for every image. Should the 
input element therefore be a `Tuple[image, image_context]`? Or do we assume 
that the context also stays static throughout a PCollection.

> [Python] PTransform that integrates Cloud Vision functionality
> --------------------------------------------------------------
>
>                 Key: BEAM-9247
>                 URL: https://issues.apache.org/jira/browse/BEAM-9247
>             Project: Beam
>          Issue Type: Sub-task
>          Components: io-py-gcp
>            Reporter: Kamil Wasilewski
>            Assignee: Elias Djurfeldt
>            Priority: Major
>
> The goal is to create a PTransform that integrates Google Cloud Vision API 
> functionality [1].
> [1] https://cloud.google.com/vision/docs/



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

Reply via email to