/v1p2beta1/{parent}/images:asyncBatchAnnotate
POST
/v1p2beta1/{parent}/images:asyncBatchAnnotate
projects
google.longrunning.Operations
interface. Operation.metadata
contains OperationMetadata
(metadata). Operation.response
contains AsyncBatchAnnotateImagesResponse
(results). This service will write image annotation outputs to json files in customer GCS bucket, each json file containing BatchAnnotateImagesResponse proto.Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://vision.googleapis.com//v1p2beta1//images:asyncBatchAnnotate' \
--header 'Content-Type: application/json' \
--data-raw '{
"outputConfig": {
"batchSize": 0,
"gcsDestination": {
"uri": "string"
}
},
"parent": "string",
"requests": [
{
"features": [
{
"maxResults": 0,
"model": "string",
"type": "TYPE_UNSPECIFIED"
}
],
"image": {
"content": "string",
"source": {
"gcsImageUri": "string",
"imageUri": "string"
}
},
"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
}
}
}
]
}'
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
}
}
Request
Path Params
parent
string
required
projects/{project-id}/locations/{location-id}
. If no parent is specified, a region will be chosen automatically. Supported location-ids: us
: USA country only, asia
: East asia areas, like Japan, Taiwan, eu
: The European Union. Example: projects/project-A/locations/eu
.Body Params application/json
Responses
Modified at 2023-08-15 09:10:12