Cloud Vision API
  1. projects
Cloud Vision API
  • files
    • /v1p2beta1/files:annotate
      POST
    • /v1p2beta1/files:asyncBatchAnnotate
      POST
  • images
    • /v1p2beta1/images:annotate
      POST
    • /v1p2beta1/images:asyncBatchAnnotate
      POST
  • projects
    • /v1p2beta1/{parent}/files:annotate
      POST
    • /v1p2beta1/{parent}/files:asyncBatchAnnotate
      POST
    • /v1p2beta1/{parent}/images:annotate
      POST
    • /v1p2beta1/{parent}/images:asyncBatchAnnotate
      POST
  • Schemas
    • Schemas
      • AnnotateFileResponse
      • AnnotateImageResponse
      • AsyncAnnotateFileResponse
      • AsyncBatchAnnotateFilesResponse
      • AsyncBatchAnnotateImagesResponse
      • BatchAnnotateFilesResponse
      • BatchOperationMetadata
      • Block
      • BoundingPoly
      • Color
      • ColorInfo
      • CropHint
      • CropHintsAnnotation
      • DetectedBreak
      • DetectedLanguage
      • DominantColorsAnnotation
      • EntityAnnotation
      • FaceAnnotation
      • GcsDestination
      • GcsSource
      • GoogleCloudVisionV1p1beta1AnnotateFileResponse
      • GoogleCloudVisionV1p1beta1AnnotateImageResponse
      • GoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse
      • GoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesResponse
      • GoogleCloudVisionV1p1beta1Block
      • GoogleCloudVisionV1p1beta1BoundingPoly
      • GoogleCloudVisionV1p1beta1ColorInfo
      • GoogleCloudVisionV1p1beta1CropHint
      • GoogleCloudVisionV1p1beta1CropHintsAnnotation
      • GoogleCloudVisionV1p1beta1DominantColorsAnnotation
      • GoogleCloudVisionV1p1beta1EntityAnnotation
      • GoogleCloudVisionV1p1beta1FaceAnnotation
      • GoogleCloudVisionV1p1beta1FaceAnnotationLandmark
      • GoogleCloudVisionV1p1beta1GcsDestination
      • GoogleCloudVisionV1p1beta1GcsSource
      • GoogleCloudVisionV1p1beta1ImageAnnotationContext
      • GoogleCloudVisionV1p1beta1ImageProperties
      • GoogleCloudVisionV1p1beta1InputConfig
      • GoogleCloudVisionV1p1beta1LocalizedObjectAnnotation
      • GoogleCloudVisionV1p1beta1LocationInfo
      • GoogleCloudVisionV1p1beta1NormalizedVertex
      • GoogleCloudVisionV1p1beta1OperationMetadata
      • GoogleCloudVisionV1p1beta1OutputConfig
      • GoogleCloudVisionV1p1beta1Page
      • GoogleCloudVisionV1p1beta1Paragraph
      • GoogleCloudVisionV1p1beta1Position
      • GoogleCloudVisionV1p1beta1Product
      • GoogleCloudVisionV1p1beta1ProductKeyValue
      • GoogleCloudVisionV1p1beta1ProductSearchResults
      • GoogleCloudVisionV1p1beta1ProductSearchResultsGroupedResult
      • GoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation
      • GoogleCloudVisionV1p1beta1ProductSearchResultsResult
      • GoogleCloudVisionV1p1beta1Property
      • GoogleCloudVisionV1p1beta1SafeSearchAnnotation
      • GoogleCloudVisionV1p1beta1Symbol
      • GoogleCloudVisionV1p1beta1TextAnnotation
      • GoogleCloudVisionV1p1beta1TextAnnotationDetectedBreak
      • GoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage
      • GoogleCloudVisionV1p1beta1TextAnnotationTextProperty
      • GoogleCloudVisionV1p1beta1Vertex
      • GoogleCloudVisionV1p1beta1WebDetection
      • GoogleCloudVisionV1p1beta1WebDetectionWebEntity
      • GoogleCloudVisionV1p1beta1WebDetectionWebImage
      • GoogleCloudVisionV1p1beta1WebDetectionWebLabel
      • GoogleCloudVisionV1p1beta1WebDetectionWebPage
      • GoogleCloudVisionV1p1beta1Word
      • GoogleCloudVisionV1p2beta1AnnotateFileRequest
      • GoogleCloudVisionV1p2beta1AnnotateFileResponse
      • GoogleCloudVisionV1p2beta1AnnotateImageRequest
      • GoogleCloudVisionV1p2beta1AnnotateImageResponse
      • GoogleCloudVisionV1p2beta1AsyncAnnotateFileRequest
      • GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse
      • GoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesRequest
      • GoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse
      • GoogleCloudVisionV1p2beta1AsyncBatchAnnotateImagesRequest
      • GoogleCloudVisionV1p2beta1BatchAnnotateFilesRequest
      • GoogleCloudVisionV1p2beta1BatchAnnotateFilesResponse
      • GoogleCloudVisionV1p2beta1BatchAnnotateImagesRequest
      • GoogleCloudVisionV1p2beta1BatchAnnotateImagesResponse
      • GoogleCloudVisionV1p2beta1Block
      • GoogleCloudVisionV1p2beta1BoundingPoly
      • GoogleCloudVisionV1p2beta1ColorInfo
      • GoogleCloudVisionV1p2beta1CropHint
      • GoogleCloudVisionV1p2beta1CropHintsAnnotation
      • GoogleCloudVisionV1p2beta1CropHintsParams
      • GoogleCloudVisionV1p2beta1DominantColorsAnnotation
      • GoogleCloudVisionV1p2beta1EntityAnnotation
      • GoogleCloudVisionV1p2beta1FaceAnnotation
      • GoogleCloudVisionV1p2beta1FaceAnnotationLandmark
      • GoogleCloudVisionV1p2beta1Feature
      • GoogleCloudVisionV1p2beta1GcsDestination
      • GoogleCloudVisionV1p2beta1GcsSource
      • GoogleCloudVisionV1p2beta1Image
      • GoogleCloudVisionV1p2beta1ImageAnnotationContext
      • GoogleCloudVisionV1p2beta1ImageContext
      • GoogleCloudVisionV1p2beta1ImageProperties
      • GoogleCloudVisionV1p2beta1ImageSource
      • GoogleCloudVisionV1p2beta1InputConfig
      • GoogleCloudVisionV1p2beta1LatLongRect
      • GoogleCloudVisionV1p2beta1LocalizedObjectAnnotation
      • GoogleCloudVisionV1p2beta1LocationInfo
      • GoogleCloudVisionV1p2beta1NormalizedVertex
      • GoogleCloudVisionV1p2beta1OperationMetadata
      • GoogleCloudVisionV1p2beta1OutputConfig
      • GoogleCloudVisionV1p2beta1Page
      • GoogleCloudVisionV1p2beta1Paragraph
      • GoogleCloudVisionV1p2beta1Position
      • GoogleCloudVisionV1p2beta1Product
      • GoogleCloudVisionV1p2beta1ProductKeyValue
      • GoogleCloudVisionV1p2beta1ProductSearchParams
      • GoogleCloudVisionV1p2beta1ProductSearchResults
      • GoogleCloudVisionV1p2beta1ProductSearchResultsGroupedResult
      • GoogleCloudVisionV1p2beta1ProductSearchResultsObjectAnnotation
      • GoogleCloudVisionV1p2beta1ProductSearchResultsResult
      • GoogleCloudVisionV1p2beta1Property
      • GoogleCloudVisionV1p2beta1SafeSearchAnnotation
      • GoogleCloudVisionV1p2beta1Symbol
      • GoogleCloudVisionV1p2beta1TextAnnotation
      • GoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak
      • GoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage
      • GoogleCloudVisionV1p2beta1TextAnnotationTextProperty
      • GoogleCloudVisionV1p2beta1TextDetectionParams
      • GoogleCloudVisionV1p2beta1Vertex
      • GoogleCloudVisionV1p2beta1WebDetection
      • GoogleCloudVisionV1p2beta1WebDetectionParams
      • GoogleCloudVisionV1p2beta1WebDetectionWebEntity
      • GoogleCloudVisionV1p2beta1WebDetectionWebImage
      • GoogleCloudVisionV1p2beta1WebDetectionWebLabel
      • GoogleCloudVisionV1p2beta1WebDetectionWebPage
      • GoogleCloudVisionV1p2beta1Word
      • GoogleCloudVisionV1p3beta1AnnotateFileResponse
      • GoogleCloudVisionV1p3beta1AnnotateImageResponse
      • GoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse
      • GoogleCloudVisionV1p3beta1AsyncBatchAnnotateFilesResponse
      • GoogleCloudVisionV1p3beta1BatchOperationMetadata
      • GoogleCloudVisionV1p3beta1Block
      • GoogleCloudVisionV1p3beta1BoundingPoly
      • GoogleCloudVisionV1p3beta1ColorInfo
      • GoogleCloudVisionV1p3beta1CropHint
      • GoogleCloudVisionV1p3beta1CropHintsAnnotation
      • GoogleCloudVisionV1p3beta1DominantColorsAnnotation
      • GoogleCloudVisionV1p3beta1EntityAnnotation
      • GoogleCloudVisionV1p3beta1FaceAnnotation
      • GoogleCloudVisionV1p3beta1FaceAnnotationLandmark
      • GoogleCloudVisionV1p3beta1GcsDestination
      • GoogleCloudVisionV1p3beta1GcsSource
      • GoogleCloudVisionV1p3beta1ImageAnnotationContext
      • GoogleCloudVisionV1p3beta1ImageProperties
      • GoogleCloudVisionV1p3beta1ImportProductSetsResponse
      • GoogleCloudVisionV1p3beta1InputConfig
      • GoogleCloudVisionV1p3beta1LocalizedObjectAnnotation
      • GoogleCloudVisionV1p3beta1LocationInfo
      • GoogleCloudVisionV1p3beta1NormalizedVertex
      • GoogleCloudVisionV1p3beta1OperationMetadata
      • GoogleCloudVisionV1p3beta1OutputConfig
      • GoogleCloudVisionV1p3beta1Page
      • GoogleCloudVisionV1p3beta1Paragraph
      • GoogleCloudVisionV1p3beta1Position
      • GoogleCloudVisionV1p3beta1Product
      • GoogleCloudVisionV1p3beta1ProductKeyValue
      • GoogleCloudVisionV1p3beta1ProductSearchResults
      • GoogleCloudVisionV1p3beta1ProductSearchResultsGroupedResult
      • GoogleCloudVisionV1p3beta1ProductSearchResultsObjectAnnotation
      • GoogleCloudVisionV1p3beta1ProductSearchResultsResult
      • GoogleCloudVisionV1p3beta1Property
      • GoogleCloudVisionV1p3beta1ReferenceImage
      • GoogleCloudVisionV1p3beta1SafeSearchAnnotation
      • GoogleCloudVisionV1p3beta1Symbol
      • GoogleCloudVisionV1p3beta1TextAnnotation
      • GoogleCloudVisionV1p3beta1TextAnnotationDetectedBreak
      • GoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage
      • GoogleCloudVisionV1p3beta1TextAnnotationTextProperty
      • GoogleCloudVisionV1p3beta1Vertex
      • GoogleCloudVisionV1p3beta1WebDetection
      • GoogleCloudVisionV1p3beta1WebDetectionWebEntity
      • GoogleCloudVisionV1p3beta1WebDetectionWebImage
      • GoogleCloudVisionV1p3beta1WebDetectionWebLabel
      • GoogleCloudVisionV1p3beta1WebDetectionWebPage
      • GoogleCloudVisionV1p3beta1Word
      • GoogleCloudVisionV1p4beta1AnnotateFileResponse
      • GoogleCloudVisionV1p4beta1AnnotateImageResponse
      • GoogleCloudVisionV1p4beta1AsyncAnnotateFileResponse
      • GoogleCloudVisionV1p4beta1AsyncBatchAnnotateFilesResponse
      • GoogleCloudVisionV1p4beta1AsyncBatchAnnotateImagesResponse
      • GoogleCloudVisionV1p4beta1BatchAnnotateFilesResponse
      • GoogleCloudVisionV1p4beta1BatchOperationMetadata
      • GoogleCloudVisionV1p4beta1Block
      • GoogleCloudVisionV1p4beta1BoundingPoly
      • GoogleCloudVisionV1p4beta1Celebrity
      • GoogleCloudVisionV1p4beta1ColorInfo
      • GoogleCloudVisionV1p4beta1CropHint
      • GoogleCloudVisionV1p4beta1CropHintsAnnotation
      • GoogleCloudVisionV1p4beta1DominantColorsAnnotation
      • GoogleCloudVisionV1p4beta1EntityAnnotation
      • GoogleCloudVisionV1p4beta1FaceAnnotation
      • GoogleCloudVisionV1p4beta1FaceAnnotationLandmark
      • GoogleCloudVisionV1p4beta1FaceRecognitionResult
      • GoogleCloudVisionV1p4beta1GcsDestination
      • GoogleCloudVisionV1p4beta1GcsSource
      • GoogleCloudVisionV1p4beta1ImageAnnotationContext
      • GoogleCloudVisionV1p4beta1ImageProperties
      • GoogleCloudVisionV1p4beta1ImportProductSetsResponse
      • GoogleCloudVisionV1p4beta1InputConfig
      • GoogleCloudVisionV1p4beta1LocalizedObjectAnnotation
      • GoogleCloudVisionV1p4beta1LocationInfo
      • GoogleCloudVisionV1p4beta1NormalizedVertex
      • GoogleCloudVisionV1p4beta1OperationMetadata
      • GoogleCloudVisionV1p4beta1OutputConfig
      • GoogleCloudVisionV1p4beta1Page
      • GoogleCloudVisionV1p4beta1Paragraph
      • GoogleCloudVisionV1p4beta1Position
      • GoogleCloudVisionV1p4beta1Product
      • GoogleCloudVisionV1p4beta1ProductKeyValue
      • GoogleCloudVisionV1p4beta1ProductSearchResults
      • GoogleCloudVisionV1p4beta1ProductSearchResultsGroupedResult
      • GoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation
      • GoogleCloudVisionV1p4beta1ProductSearchResultsResult
      • GoogleCloudVisionV1p4beta1Property
      • GoogleCloudVisionV1p4beta1ReferenceImage
      • GoogleCloudVisionV1p4beta1SafeSearchAnnotation
      • GoogleCloudVisionV1p4beta1Symbol
      • GoogleCloudVisionV1p4beta1TextAnnotation
      • GoogleCloudVisionV1p4beta1TextAnnotationDetectedBreak
      • GoogleCloudVisionV1p4beta1TextAnnotationDetectedLanguage
      • GoogleCloudVisionV1p4beta1TextAnnotationTextProperty
      • GoogleCloudVisionV1p4beta1Vertex
      • GoogleCloudVisionV1p4beta1WebDetection
      • GoogleCloudVisionV1p4beta1WebDetectionWebEntity
      • GoogleCloudVisionV1p4beta1WebDetectionWebImage
      • GoogleCloudVisionV1p4beta1WebDetectionWebLabel
      • GoogleCloudVisionV1p4beta1WebDetectionWebPage
      • GoogleCloudVisionV1p4beta1Word
      • GroupedResult
      • ImageAnnotationContext
      • ImageProperties
      • ImportProductSetsResponse
      • InputConfig
      • KeyValue
      • Landmark
      • LatLng
      • LocalizedObjectAnnotation
      • LocationInfo
      • NormalizedVertex
      • ObjectAnnotation
      • Operation
      • OperationMetadata
      • OutputConfig
      • Page
      • Paragraph
      • Position
      • Product
      • ProductSearchResults
      • Property
      • ReferenceImage
      • Result
      • SafeSearchAnnotation
      • Status
      • Symbol
      • TextAnnotation
      • TextProperty
      • Vertex
      • WebDetection
      • WebEntity
      • WebImage
      • WebLabel
      • WebPage
      • Word
  1. projects

/v1p2beta1/{parent}/files:asyncBatchAnnotate

POST
/v1p2beta1/{parent}/files:asyncBatchAnnotate
Run asynchronous image detection and annotation for a list of generic files, such as PDF files, which may contain multiple pages and multiple images per page. Progress and results can be retrieved through the google.longrunning.Operations interface. Operation.metadata contains OperationMetadata (metadata). Operation.response contains AsyncBatchAnnotateFilesResponse (results).

Request

Path Params

Body Params application/json

Examples

Responses

🟢200Successful response
application/json
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://vision.googleapis.com//v1p2beta1//files:asyncBatchAnnotate' \
--header 'Content-Type: application/json' \
--data-raw '{
    "parent": "string",
    "requests": [
        {
            "features": [
                {
                    "maxResults": 0,
                    "model": "string",
                    "type": "TYPE_UNSPECIFIED"
                }
            ],
            "imageContext": {
                "cropHintsParams": {
                    "aspectRatios": [
                        0
                    ]
                },
                "languageHints": [
                    "string"
                ],
                "latLongRect": {
                    "maxLatLng": {
                        "latitude": 0,
                        "longitude": 0
                    },
                    "minLatLng": {
                        "latitude": 0,
                        "longitude": 0
                    }
                },
                "productSearchParams": {
                    "boundingPoly": {
                        "normalizedVertices": [
                            {
                                "x": 0,
                                "y": 0
                            }
                        ],
                        "vertices": [
                            {
                                "x": 0,
                                "y": 0
                            }
                        ]
                    },
                    "filter": "string",
                    "productCategories": [
                        "string"
                    ],
                    "productSet": "string"
                },
                "textDetectionParams": {
                    "advancedOcrOptions": [
                        "string"
                    ],
                    "enableTextDetectionConfidenceScore": true
                },
                "webDetectionParams": {
                    "includeGeoResults": true
                }
            },
            "inputConfig": {
                "content": "string",
                "gcsSource": {
                    "uri": "string"
                },
                "mimeType": "string"
            },
            "outputConfig": {
                "batchSize": 0,
                "gcsDestination": {
                    "uri": "string"
                }
            }
        }
    ]
}'
Response Response Example
{
    "done": true,
    "error": {
        "code": 0,
        "details": [
            {
                "property1": null,
                "property2": null
            }
        ],
        "message": "string"
    },
    "metadata": {
        "property1": null,
        "property2": null
    },
    "name": "string",
    "response": {
        "property1": null,
        "property2": null
    }
}
Modified at 2023-08-15 09:10:12
Previous
/v1p2beta1/{parent}/files:annotate
Next
/v1p2beta1/{parent}/images:annotate
Built with