CustomVisionPredictionClient Class
- Inheritance
-
azure.cognitiveservices.vision.customvision.prediction.operations._custom_vision_prediction_client_operations.CustomVisionPredictionClientOperationsMixinCustomVisionPredictionClientCustomVisionPredictionClient
Constructor
CustomVisionPredictionClient(endpoint, credentials)
Parameters
Variables
Configuration for client.
Methods
classify_image |
Classify an image and saves the result. |
classify_image_url |
Classify an image url and saves the result. |
classify_image_url_with_no_store |
Classify an image url without saving the result. |
classify_image_with_no_store |
Classify an image without saving the result. |
close |
Close the client if keep_alive is True. |
detect_image |
Detect objects in an image and saves the result. |
detect_image_url |
Detect objects in an image url and saves the result. |
detect_image_url_with_no_store |
Detect objects in an image url without saving the result. |
detect_image_with_no_store |
Detect objects in an image without saving the result. |
classify_image
Classify an image and saves the result.
classify_image(project_id, published_name, image_data, application=None, custom_headers=None, raw=False, **operation_config)
Parameters
- image_data
- Generator
Binary image data. Supported formats are JPEG, GIF, PNG, and BMP. Supports images up to 4MB.
- operation_config
Operation configuration overrides.
Returns
ImagePrediction or ClientRawResponse if raw=true
Return type
Exceptions
classify_image_url
Classify an image url and saves the result.
classify_image_url(project_id, published_name, url, application=None, custom_headers=None, raw=False, **operation_config)
Parameters
- operation_config
Operation configuration overrides.
Returns
ImagePrediction or ClientRawResponse if raw=true
Return type
Exceptions
classify_image_url_with_no_store
Classify an image url without saving the result.
classify_image_url_with_no_store(project_id, published_name, url, application=None, custom_headers=None, raw=False, **operation_config)
Parameters
- operation_config
Operation configuration overrides.
Returns
ImagePrediction or ClientRawResponse if raw=true
Return type
Exceptions
classify_image_with_no_store
Classify an image without saving the result.
classify_image_with_no_store(project_id, published_name, image_data, application=None, custom_headers=None, raw=False, **operation_config)
Parameters
- image_data
- Generator
Binary image data. Supported formats are JPEG, GIF, PNG, and BMP. Supports images up to 4MB.
- operation_config
Operation configuration overrides.
Returns
ImagePrediction or ClientRawResponse if raw=true
Return type
Exceptions
close
detect_image
Detect objects in an image and saves the result.
detect_image(project_id, published_name, image_data, application=None, custom_headers=None, raw=False, **operation_config)
Parameters
- image_data
- Generator
Binary image data. Supported formats are JPEG, GIF, PNG, and BMP. Supports images up to 4MB.
- operation_config
Operation configuration overrides.
Returns
ImagePrediction or ClientRawResponse if raw=true
Return type
Exceptions
detect_image_url
Detect objects in an image url and saves the result.
detect_image_url(project_id, published_name, url, application=None, custom_headers=None, raw=False, **operation_config)
Parameters
- operation_config
Operation configuration overrides.
Returns
ImagePrediction or ClientRawResponse if raw=true
Return type
Exceptions
detect_image_url_with_no_store
Detect objects in an image url without saving the result.
detect_image_url_with_no_store(project_id, published_name, url, application=None, custom_headers=None, raw=False, **operation_config)
Parameters
- operation_config
Operation configuration overrides.
Returns
ImagePrediction or ClientRawResponse if raw=true
Return type
Exceptions
detect_image_with_no_store
Detect objects in an image without saving the result.
detect_image_with_no_store(project_id, published_name, image_data, application=None, custom_headers=None, raw=False, **operation_config)
Parameters
- image_data
- Generator
Binary image data. Supported formats are JPEG, GIF, PNG, and BMP. Supports images up to 4MB.
- operation_config
Operation configuration overrides.
Returns
ImagePrediction or ClientRawResponse if raw=true
Return type
Exceptions
Feedback
Submit and view feedback for