Cloud Vision API

可將 Google Vision 功能整合至應用程式,包括為圖片加上標籤、偵測臉部/標誌和地標、光學字元辨識 (OCR),以及情色露骨內容偵測。

服務:vision.googleapis.com

建議使用 Google 提供的用戶端程式庫呼叫這項服務。如果應用程式需要使用您自己的資料庫,才能呼叫這項服務,請在發出 API 請求時使用下列資訊。

探索文件

探索文件是一種機器可解讀的規格,用於說明和使用 REST API。此文件會用於建構用戶端程式庫、IDE 外掛程式,以及與 Google API 互動的其他工具。一項服務可能會提供多個探索文件。這項服務提供下列探索文件:

服務端點

服務端點是能指定 API 服務網路位址的基本網址。一項服務可能有多個服務端點。這項服務有下列服務端點,以及和該服務端點相關的所有 URI:

  • https://vision.googleapis.com

REST 資源:v1.files

方法
annotate POST /v1/files:annotate
為批次檔案執行圖片偵測和註解的服務。
asyncBatchAnnotate POST /v1/files:asyncBatchAnnotate
針對一般檔案清單 (例如 PDF 檔案) 執行非同步圖片偵測和註解,這些檔案可能包含多個頁面,且每個頁面可能包含多個圖片。

REST 資源:v1.images

方法
annotate POST /v1/images:annotate
針對一批圖片執行圖片偵測和註解。
asyncBatchAnnotate POST /v1/images:asyncBatchAnnotate
針對圖片清單執行非同步圖片偵測和標註作業。

REST 資源:v1.locations.operations

方法
get GET /v1/{name=locations/*/operations/*}
取得長時間執行作業的最新狀態。

REST 資源:v1.operations

方法
get GET /v1/{name=operations/*}
取得長時間執行作業的最新狀態。

REST 資源:v1.projects.files

方法
annotate POST /v1/{parent=projects/*}/files:annotate
為批次檔案執行圖片偵測和註解的服務。
asyncBatchAnnotate POST /v1/{parent=projects/*}/files:asyncBatchAnnotate
針對一般檔案清單 (例如 PDF 檔案) 執行非同步圖片偵測和註解,這些檔案可能包含多個頁面,且每個頁面可能包含多個圖片。

REST 資源:v1.projects.images

方法
annotate POST /v1/{parent=projects/*}/images:annotate
對一批圖片執行圖片偵測和註解。
asyncBatchAnnotate POST /v1/{parent=projects/*}/images:asyncBatchAnnotate
針對圖片清單執行非同步圖片偵測和標註作業。

REST 資源:v1.projects.locations.files

方法
annotate POST /v1/{parent=projects/*/locations/*}/files:annotate
為批次檔案執行圖片偵測和註解的服務。
asyncBatchAnnotate POST /v1/{parent=projects/*/locations/*}/files:asyncBatchAnnotate
針對一般檔案清單 (例如 PDF 檔案) 執行非同步圖片偵測和註解,這些檔案可能包含多個頁面,且每個頁面可能包含多個圖片。

REST 資源:v1.projects.locations.images

方法
annotate POST /v1/{parent=projects/*/locations/*}/images:annotate
為一批圖片執行圖片偵測和註解。
asyncBatchAnnotate POST /v1/{parent=projects/*/locations/*}/images:asyncBatchAnnotate
針對圖片清單執行非同步圖片偵測和加註作業。

REST 資源:v1.projects.locations.operations

方法
get GET /v1/{name=projects/*/locations/*/operations/*}
取得長時間執行作業的最新狀態。

REST 資源:v1.projects.locations.productSets

方法
addProduct POST /v1/{name=projects/*/locations/*/productSets/*}:addProduct
將產品新增至指定的 ProductSet。
create POST /v1/{parent=projects/*/locations/*}/productSets
建立並傳回新的 ProductSet 資源。
delete DELETE /v1/{name=projects/*/locations/*/productSets/*}
永久刪除 ProductSet。
get GET /v1/{name=projects/*/locations/*/productSets/*}
取得與 ProductSet 相關聯的資訊。
import POST /v1/{parent=projects/*/locations/*}/productSets:import
非同步 API,可根據圖片資訊清單,將參考圖片清單匯入指定的產品集。
list GET /v1/{parent=projects/*/locations/*}/productSets
以未指定的順序列出 ProductSet。
patch PATCH /v1/{productSet.name=projects/*/locations/*/productSets/*}
變更 ProductSet 資源。
removeProduct POST /v1/{name=projects/*/locations/*/productSets/*}:removeProduct
從指定的 ProductSet 中移除產品。

REST 資源:v1.projects.locations.productSets.products

方法
list GET /v1/{name=projects/*/locations/*/productSets/*}/products
以未指定的順序列出 ProductSet 中的產品。

REST 資源:v1.projects.locations.products

方法
create POST /v1/{parent=projects/*/locations/*}/products
建立並傳回新的產品資源。
delete DELETE /v1/{name=projects/*/locations/*/products/*}
永久刪除產品及其參考圖片。
get GET /v1/{name=projects/*/locations/*/products/*}
取得與產品相關聯的資訊。
list GET /v1/{parent=projects/*/locations/*}/products
以未指定的順序列出產品。
patch PATCH /v1/{product.name=projects/*/locations/*/products/*}
變更產品資源。
purge POST /v1/{parent=projects/*/locations/*}/products:purge
非同步 API,用於刪除 ProductSet 中的所有產品,或不屬於任何 ProductSet 的所有產品。

REST 資源:v1.projects.locations.products.referenceImages

方法
create POST /v1/{parent=projects/*/locations/*/products/*}/referenceImages
建立並傳回新的 ReferenceImage 資源。
delete DELETE /v1/{name=projects/*/locations/*/products/*/referenceImages/*}
永久刪除參考圖像。
get GET /v1/{name=projects/*/locations/*/products/*/referenceImages/*}
取得與 ReferenceImage 相關聯的資訊。
list GET /v1/{parent=projects/*/locations/*/products/*}/referenceImages
列出參考圖片。

REST 資源:v1.projects.operations

方法
get GET /v1/{name=projects/*/operations/*}
取得長時間執行作業的最新狀態。