CustomVisionPredictionClient 類別
- 繼承
-
azure.cognitiveservices.vision.customvision.prediction.operations._custom_vision_prediction_client_operations.CustomVisionPredictionClientOperationsMixinCustomVisionPredictionClientCustomVisionPredictionClient
建構函式
CustomVisionPredictionClient(endpoint, credentials)
參數
變數
用戶端的組態。
方法
classify_image |
分類影像並儲存結果。 |
classify_image_url |
分類影像 URL 並儲存結果。 |
classify_image_url_with_no_store |
分類影像 URL 而不儲存結果。 |
classify_image_with_no_store |
分類影像而不儲存結果。 |
close |
如果keep_alive為 True,請關閉用戶端。 |
detect_image |
偵測影像中的物件並儲存結果。 |
detect_image_url |
偵測影像 URL 中的物件,並儲存結果。 |
detect_image_url_with_no_store |
偵測影像 URL 中的物件,而不儲存結果。 |
detect_image_with_no_store |
偵測影像中的物件,而不儲存結果。 |
classify_image
分類影像並儲存結果。
classify_image(project_id, published_name, image_data, application=None, custom_headers=None, raw=False, **operation_config)
參數
- operation_config
作業組態覆寫。
傳回
ImagePrediction 或 ClientRawResponse if raw=true
傳回類型
例外狀況
classify_image_url
分類影像 URL 並儲存結果。
classify_image_url(project_id, published_name, url, application=None, custom_headers=None, raw=False, **operation_config)
參數
- operation_config
作業組態覆寫。
傳回
ImagePrediction 或 ClientRawResponse if raw=true
傳回類型
例外狀況
classify_image_url_with_no_store
分類影像 URL 而不儲存結果。
classify_image_url_with_no_store(project_id, published_name, url, application=None, custom_headers=None, raw=False, **operation_config)
參數
- operation_config
作業組態覆寫。
傳回
ImagePrediction 或 ClientRawResponse if raw=true
傳回類型
例外狀況
classify_image_with_no_store
分類影像而不儲存結果。
classify_image_with_no_store(project_id, published_name, image_data, application=None, custom_headers=None, raw=False, **operation_config)
參數
- operation_config
作業組態覆寫。
傳回
ImagePrediction 或 ClientRawResponse if raw=true
傳回類型
例外狀況
close
detect_image
偵測影像中的物件並儲存結果。
detect_image(project_id, published_name, image_data, application=None, custom_headers=None, raw=False, **operation_config)
參數
- operation_config
作業組態覆寫。
傳回
ImagePrediction 或 ClientRawResponse if raw=true
傳回類型
例外狀況
detect_image_url
偵測影像 URL 中的物件,並儲存結果。
detect_image_url(project_id, published_name, url, application=None, custom_headers=None, raw=False, **operation_config)
參數
- operation_config
作業組態覆寫。
傳回
ImagePrediction 或 ClientRawResponse if raw=true
傳回類型
例外狀況
detect_image_url_with_no_store
偵測影像 URL 中的物件,而不儲存結果。
detect_image_url_with_no_store(project_id, published_name, url, application=None, custom_headers=None, raw=False, **operation_config)
參數
- operation_config
作業組態覆寫。
傳回
ImagePrediction 或 ClientRawResponse if raw=true
傳回類型
例外狀況
detect_image_with_no_store
偵測影像中的物件,而不儲存結果。
detect_image_with_no_store(project_id, published_name, image_data, application=None, custom_headers=None, raw=False, **operation_config)
參數
- operation_config
作業組態覆寫。
傳回
ImagePrediction 或 ClientRawResponse if raw=true
傳回類型
例外狀況
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應