/v1p2beta1/files:annotate
POST
/v1p2beta1/files:annotate
files
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://vision.googleapis.com//v1p2beta1/files:annotate' \
--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"
},
"pages": [
0
]
}
]
}'
Response Response Example
{
"responses": [
{
"error": {
"code": 0,
"details": [
{
"property1": null,
"property2": null
}
],
"message": "string"
},
"inputConfig": {
"content": "string",
"gcsSource": {
"uri": "string"
},
"mimeType": "string"
},
"responses": [
{
"context": {
"pageNumber": 0,
"uri": "string"
},
"cropHintsAnnotation": {
"cropHints": [
{
"boundingPoly": {
"normalizedVertices": [
{
"x": 0,
"y": 0
}
],
"vertices": [
{
"x": 0,
"y": 0
}
]
},
"confidence": 0,
"importanceFraction": 0
}
]
},
"error": {
"code": 0,
"details": [
{
"property1": null,
"property2": null
}
],
"message": "string"
},
"faceAnnotations": [
{
"angerLikelihood": "UNKNOWN",
"blurredLikelihood": "UNKNOWN",
"boundingPoly": {
"normalizedVertices": [
{
"x": 0,
"y": 0
}
],
"vertices": [
{
"x": 0,
"y": 0
}
]
},
"detectionConfidence": 0,
"fdBoundingPoly": {
"normalizedVertices": [
{
"x": 0,
"y": 0
}
],
"vertices": [
{
"x": 0,
"y": 0
}
]
},
"headwearLikelihood": "UNKNOWN",
"joyLikelihood": "UNKNOWN",
"landmarkingConfidence": 0,
"landmarks": [
{
"position": {
"x": 0,
"y": 0,
"z": 0
},
"type": "UNKNOWN_LANDMARK"
}
],
"panAngle": 0,
"rollAngle": 0,
"sorrowLikelihood": "UNKNOWN",
"surpriseLikelihood": "UNKNOWN",
"tiltAngle": 0,
"underExposedLikelihood": "UNKNOWN"
}
],
"fullTextAnnotation": {
"pages": [
{
"blocks": [
{
"blockType": "UNKNOWN",
"boundingBox": {
"normalizedVertices": [
{
"x": 0,
"y": 0
}
],
"vertices": [
{
"x": 0,
"y": 0
}
]
},
"confidence": 0,
"paragraphs": [
{
"boundingBox": {
"normalizedVertices": [
{}
],
"vertices": [
{}
]
},
"confidence": 0,
"property": {
"detectedBreak": {
"isPrefix": true,
"type": "UNKNOWN"
},
"detectedLanguages": [
{}
]
},
"words": [
{
"boundingBox": {
"normalizedVertices": [],
"vertices": []
},
"confidence": 0,
"property": {
"detectedLanguages": []
},
"symbols": [
null
]
}
]
}
],
"property": {
"detectedBreak": {
"isPrefix": true,
"type": "UNKNOWN"
},
"detectedLanguages": [
{
"confidence": 0,
"languageCode": "string"
}
]
}
}
],
"confidence": 0,
"height": 0,
"property": {
"detectedBreak": {
"isPrefix": true,
"type": "UNKNOWN"
},
"detectedLanguages": [
{
"confidence": 0,
"languageCode": "string"
}
]
},
"width": 0
}
],
"text": "string"
},
"imagePropertiesAnnotation": {
"dominantColors": {
"colors": [
{
"color": {},
"pixelFraction": 0,
"score": 0
}
]
}
},
"labelAnnotations": [
{
"boundingPoly": {
"normalizedVertices": [
{
"x": 0,
"y": 0
}
],
"vertices": [
{
"x": 0,
"y": 0
}
]
},
"confidence": 0,
"description": "string",
"locale": "string",
"locations": [
{
"latLng": {
"latitude": 0,
"longitude": 0
}
}
],
"mid": "string",
"properties": [
{
"name": "string",
"uint64Value": "string",
"value": "string"
}
],
"score": 0,
"topicality": 0
}
],
"landmarkAnnotations": [
{
"boundingPoly": {
"normalizedVertices": [
{
"x": 0,
"y": 0
}
],
"vertices": [
{
"x": 0,
"y": 0
}
]
},
"confidence": 0,
"description": "string",
"locale": "string",
"locations": [
{
"latLng": {
"latitude": 0,
"longitude": 0
}
}
],
"mid": "string",
"properties": [
{
"name": "string",
"uint64Value": "string",
"value": "string"
}
],
"score": 0,
"topicality": 0
}
],
"localizedObjectAnnotations": [
{
"boundingPoly": {
"normalizedVertices": [
{
"x": 0,
"y": 0
}
],
"vertices": [
{
"x": 0,
"y": 0
}
]
},
"languageCode": "string",
"mid": "string",
"name": "string",
"score": 0
}
],
"logoAnnotations": [
{
"boundingPoly": {
"normalizedVertices": [
{
"x": 0,
"y": 0
}
],
"vertices": [
{
"x": 0,
"y": 0
}
]
},
"confidence": 0,
"description": "string",
"locale": "string",
"locations": [
{
"latLng": {
"latitude": 0,
"longitude": 0
}
}
],
"mid": "string",
"properties": [
{
"name": "string",
"uint64Value": "string",
"value": "string"
}
],
"score": 0,
"topicality": 0
}
],
"productSearchResults": {
"indexTime": "string",
"productGroupedResults": [
{
"boundingPoly": {
"normalizedVertices": [
{
"x": 0,
"y": 0
}
],
"vertices": [
{
"x": 0,
"y": 0
}
]
},
"objectAnnotations": [
{
"languageCode": "string",
"mid": "string",
"name": "string",
"score": 0
}
],
"results": [
{
"image": "string",
"product": {
"description": "string",
"displayName": "string",
"name": "string",
"productCategory": "string",
"productLabels": [
{
"key": "string",
"value": "string"
}
]
},
"score": 0
}
]
}
],
"results": [
{
"image": "string",
"product": {
"description": "string",
"displayName": "string",
"name": "string",
"productCategory": "string",
"productLabels": [
{
"key": "string",
"value": "string"
}
]
},
"score": 0
}
]
},
"safeSearchAnnotation": {
"adult": "UNKNOWN",
"medical": "UNKNOWN",
"racy": "UNKNOWN",
"spoof": "UNKNOWN",
"violence": "UNKNOWN"
},
"textAnnotations": [
{
"boundingPoly": {
"normalizedVertices": [
{
"x": 0,
"y": 0
}
],
"vertices": [
{
"x": 0,
"y": 0
}
]
},
"confidence": 0,
"description": "string",
"locale": "string",
"locations": [
{
"latLng": {
"latitude": 0,
"longitude": 0
}
}
],
"mid": "string",
"properties": [
{
"name": "string",
"uint64Value": "string",
"value": "string"
}
],
"score": 0,
"topicality": 0
}
],
"webDetection": {
"bestGuessLabels": [
{
"label": "string",
"languageCode": "string"
}
],
"fullMatchingImages": [
{
"score": 0,
"url": "string"
}
],
"pagesWithMatchingImages": [
{
"fullMatchingImages": [
{
"score": 0,
"url": "string"
}
],
"pageTitle": "string",
"partialMatchingImages": [
{
"score": 0,
"url": "string"
}
],
"score": 0,
"url": "string"
}
],
"partialMatchingImages": [
{
"score": 0,
"url": "string"
}
],
"visuallySimilarImages": [
{
"score": 0,
"url": "string"
}
],
"webEntities": [
{
"description": "string",
"entityId": "string",
"score": 0
}
]
}
}
],
"totalPages": 0
}
]
}
Request
Body Params application/json
Responses
Modified at 2023-08-15 09:10:12