CustomVisionPredictionClientOperationsMixin Class
- Inheritance
-
builtins.objectCustomVisionPredictionClientOperationsMixin
Constructor
CustomVisionPredictionClientOperationsMixin()
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. |
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
Name | Description |
---|---|
project_id
Required
|
The project id. |
published_name
Required
|
Specifies the name of the model to evaluate against. |
image_data
Required
|
Binary image data. Supported formats are JPEG, GIF, PNG, and BMP. Supports images up to 4MB. |
application
|
Optional. Specifies the name of application using the endpoint. Default value: None
|
custom_headers
|
headers that will be added to the request Default value: None
|
raw
|
returns the direct response alongside the deserialized response Default value: False
|
operation_config
Required
|
Operation configuration overrides. |
Returns
Type | Description |
---|---|
<xref:msrest.pipeline.ClientRawResponse>
|
ImagePrediction or ClientRawResponse if raw=true |
Exceptions
Type | Description |
---|---|
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
Name | Description |
---|---|
project_id
Required
|
The project id. |
published_name
Required
|
Specifies the name of the model to evaluate against. |
url
Required
|
Url of the image. |
application
|
Optional. Specifies the name of application using the endpoint. Default value: None
|
custom_headers
|
headers that will be added to the request Default value: None
|
raw
|
returns the direct response alongside the deserialized response Default value: False
|
operation_config
Required
|
Operation configuration overrides. |
Returns
Type | Description |
---|---|
<xref:msrest.pipeline.ClientRawResponse>
|
ImagePrediction or ClientRawResponse if raw=true |
Exceptions
Type | Description |
---|---|
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
Name | Description |
---|---|
project_id
Required
|
The project id. |
published_name
Required
|
Specifies the name of the model to evaluate against. |
url
Required
|
Url of the image. |
application
|
Optional. Specifies the name of application using the endpoint. Default value: None
|
custom_headers
|
headers that will be added to the request Default value: None
|
raw
|
returns the direct response alongside the deserialized response Default value: False
|
operation_config
Required
|
Operation configuration overrides. |
Returns
Type | Description |
---|---|
<xref:msrest.pipeline.ClientRawResponse>
|
ImagePrediction or ClientRawResponse if raw=true |
Exceptions
Type | Description |
---|---|
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
Name | Description |
---|---|
project_id
Required
|
The project id. |
published_name
Required
|
Specifies the name of the model to evaluate against. |
image_data
Required
|
Binary image data. Supported formats are JPEG, GIF, PNG, and BMP. Supports images up to 4MB. |
application
|
Optional. Specifies the name of application using the endpoint. Default value: None
|
custom_headers
|
headers that will be added to the request Default value: None
|
raw
|
returns the direct response alongside the deserialized response Default value: False
|
operation_config
Required
|
Operation configuration overrides. |
Returns
Type | Description |
---|---|
<xref:msrest.pipeline.ClientRawResponse>
|
ImagePrediction or ClientRawResponse if raw=true |
Exceptions
Type | Description |
---|---|
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
Name | Description |
---|---|
project_id
Required
|
The project id. |
published_name
Required
|
Specifies the name of the model to evaluate against. |
image_data
Required
|
Binary image data. Supported formats are JPEG, GIF, PNG, and BMP. Supports images up to 4MB. |
application
|
Optional. Specifies the name of application using the endpoint. Default value: None
|
custom_headers
|
headers that will be added to the request Default value: None
|
raw
|
returns the direct response alongside the deserialized response Default value: False
|
operation_config
Required
|
Operation configuration overrides. |
Returns
Type | Description |
---|---|
<xref:msrest.pipeline.ClientRawResponse>
|
ImagePrediction or ClientRawResponse if raw=true |
Exceptions
Type | Description |
---|---|
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
Name | Description |
---|---|
project_id
Required
|
The project id. |
published_name
Required
|
Specifies the name of the model to evaluate against. |
url
Required
|
Url of the image. |
application
|
Optional. Specifies the name of application using the endpoint. Default value: None
|
custom_headers
|
headers that will be added to the request Default value: None
|
raw
|
returns the direct response alongside the deserialized response Default value: False
|
operation_config
Required
|
Operation configuration overrides. |
Returns
Type | Description |
---|---|
<xref:msrest.pipeline.ClientRawResponse>
|
ImagePrediction or ClientRawResponse if raw=true |
Exceptions
Type | Description |
---|---|
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
Name | Description |
---|---|
project_id
Required
|
The project id. |
published_name
Required
|
Specifies the name of the model to evaluate against. |
url
Required
|
Url of the image. |
application
|
Optional. Specifies the name of application using the endpoint. Default value: None
|
custom_headers
|
headers that will be added to the request Default value: None
|
raw
|
returns the direct response alongside the deserialized response Default value: False
|
operation_config
Required
|
Operation configuration overrides. |
Returns
Type | Description |
---|---|
<xref:msrest.pipeline.ClientRawResponse>
|
ImagePrediction or ClientRawResponse if raw=true |
Exceptions
Type | Description |
---|---|
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
Name | Description |
---|---|
project_id
Required
|
The project id. |
published_name
Required
|
Specifies the name of the model to evaluate against. |
image_data
Required
|
Binary image data. Supported formats are JPEG, GIF, PNG, and BMP. Supports images up to 4MB. |
application
|
Optional. Specifies the name of application using the endpoint. Default value: None
|
custom_headers
|
headers that will be added to the request Default value: None
|
raw
|
returns the direct response alongside the deserialized response Default value: False
|
operation_config
Required
|
Operation configuration overrides. |
Returns
Type | Description |
---|---|
<xref:msrest.pipeline.ClientRawResponse>
|
ImagePrediction or ClientRawResponse if raw=true |
Exceptions
Type | Description |
---|---|
Azure SDK for Python