Send feedback
Class AnnotateFileRequest (2.4.4)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.4.4 keyboard_arrow_down
AnnotateFileRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)
A request to annotate one single file, e.g. a PDF, TIFF or
GIF file.
Attributes Name Description input_config
google.cloud.vision_v1.types.InputConfig
Required. Information about the input file.
features
Sequence[google.cloud.vision_v1.types.Feature ]
Required. Requested features.
image_context
google.cloud.vision_v1.types.ImageContext
Additional context that may accompany the
image(s) in the file.
pages
Sequence[int]
Pages of the file to perform image
annotation.
Pages starts from 1, we assume the first page of
the file is page 1. At most 5 pages are
supported per request. Pages can be negative.
Page 1 means the first page.
Page 2 means the second page.
Page -1 means the last page.
Page -2 means the second to the last page.
If the file is GIF instead of PDF or TIFF, page
refers to GIF frames.
If this field is empty, by default the service
performs image annotation for the first 5 pages
of the file.
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-08-30 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?
{
"lastModified": "Last updated 2024-08-30 UTC.",
"confidential": False
}