Method: projects.files.asyncBatchAnnotate
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Führen Sie die asynchrone Bilderkennung und -annotation für eine Liste allgemeiner Dateien aus, z. B. PDF-Dateien, die mehrere Seiten und mehrere Bilder pro Seite enthalten können. Fortschritt und Ergebnisse können über die google.longrunning.Operations
-Schnittstelle abgerufen werden. Operation.metadata
enthält OperationMetadata
(Metadaten). Operation.response
enthält AsyncBatchAnnotateFilesResponse
(Ergebnisse).
HTTP-Anfrage
POST https://vision.googleapis.com/v1/{parent=projects/*}/files:asyncBatchAnnotate
Die URL verwendet die Syntax der gRPC-Transcodierung.
Pfadparameter
Parameter |
parent |
string
Optional. Zielprojekt und Standort zum Anrufen festlegen. Format: projects/{project-id}/locations/{location-id} Wenn kein übergeordnetes Element angegeben ist, wird automatisch eine Region ausgewählt. Unterstützte Standort-IDs: us : nur USA, asia : Regionen in Ostasien, z. B. Japan und Taiwan, eu : Europäische Union. Beispiel: projects/project-A/locations/eu .
|
Anfragetext
Der Anfragetext enthält Daten mit folgender Struktur:
Felder |
requests[] |
object (AsyncAnnotateFileRequest )
Erforderlich. Individuelle asynchrone Dateiannotationsanfragen für diesen Batch.
|
Antworttext
Wenn der Vorgang erfolgreich abgeschlossen wurde, enthält der Antworttext eine Instanz von Operation
.
Autorisierungsbereiche
Erfordert einen der folgenden OAuth-Bereiche:
https://www.googleapis.com/auth/cloud-platform
https://www.googleapis.com/auth/cloud-vision
Weitere Informationen finden Sie in der Authentifizierungsübersicht.
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2025-07-30 (UTC).
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-07-30 (UTC)."],[],[],null,["# Method: projects.files.asyncBatchAnnotate\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n- [Authorization Scopes](#body.aspect)\n\nRun 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).\n\n### HTTP request\n\n`POST https://vision.googleapis.com/v1/{parent=projects/*}/files:asyncBatchAnnotate`\n\nThe URL uses [gRPC Transcoding](https://github.com/googleapis/googleapis/blob/master/google/api/http.proto) syntax.\n\n### Path parameters\n\n### Request body\n\nThe request body contains data with the following structure:\n\n### Response body\n\nIf successful, the response body contains an instance of [Operation](/vision/product-search/docs/reference/rest/v1/locations.operations#Operation).\n\n### Authorization Scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n- `https://www.googleapis.com/auth/cloud-vision`\n\nFor more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/)."]]