Method: files.asyncBatchAnnotate
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
針對一般檔案清單 (例如 PDF 檔案) 執行非同步圖片偵測和註解,這些檔案可能包含多個頁面,且每個頁面可能包含多個圖片。您可以透過 google.longrunning.Operations
介面擷取進度和結果。Operation.metadata
包含 OperationMetadata
(中繼資料)。Operation.response
包含 AsyncBatchAnnotateFilesResponse
(結果)。
HTTP 要求
POST https://vision.googleapis.com/v1/files:asyncBatchAnnotate
這個網址使用 gRPC 轉碼語法。
要求主體
要求主體包含下列結構的資料:
欄位 |
requests[] |
object (AsyncAnnotateFileRequest )
這是必要旗標,此批次的個別非同步檔案註解要求。
|
parent |
string
(非必要) 要呼叫的目標專案和位置。 格式:projects/{project-id}/locations/{location-id} 。 如果未指定父項,系統會自動選擇區域。 支援的位置 ID:us :僅限美國,asia :日本、臺灣等東亞地區,eu :歐盟。 範例:projects/project-A/locations/eu 。
|
回應主體
如果成功,回應主體會包含 Operation
的執行個體。
授權範圍
需要下列其中一種 OAuth 範圍:
https://www.googleapis.com/auth/cloud-platform
https://www.googleapis.com/auth/cloud-vision
詳情請參閱驗證總覽一文。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-30 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-07-30 (世界標準時間)。"],[],[],null,["# Method: files.asyncBatchAnnotate\n\n- [HTTP request](#body.HTTP_TEMPLATE)\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/files:asyncBatchAnnotate`\n\nThe URL uses [gRPC Transcoding](https://github.com/googleapis/googleapis/blob/master/google/api/http.proto) syntax.\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/)."]]