Mapping the AnnotateImageRequest to AnnotationImageResponse in Vision API #10731
Labels
priority: p3
Desirable enhancement or fix. May not be included in next release.
type: question
Request for information or clarification. Not an issue.
Hi dear cloud team,
currently I am working with the google cloud vision api and with the
BatchAnnonateImageRequest
we can send multipleAnnotateImageRequest
s. TheBatchAnnotateImageResponse
that we get returns multipleAnnotateImageResponse
s as expected. The problem here is we do not know which response belongs to which request that we sent and therefore we cannot map them to our entities.I would be very happy if we can somehow relate the requests with the responses that we get.
A possible way to achieve could be that we introduce a requestId in proto files both for
AnnotateImageRequest
andAnnotationImageResponse
classes and the server maps this from request to the response so that we can know which response belongs to which request.Here is an example code snippet in Kotlin to show what I want to achieve:
In the following links you can see that there were some questions in the StackOverFlow but we cannot rely on the order of returned responses:
If I can support you in a way I would be happy to do that. Thank you very much in advance!
The text was updated successfully, but these errors were encountered: