Skip to main content

Microsoft Azure Custom Vision Client Library for Python

Project description

Microsoft Azure SDK for Python

This is the Microsoft Azure Custom Vision Client Library. This package has been tested with Python 2.7, 3.5, 3.6, 3.7 and 3.8. For a more complete view of Azure libraries, see the Github repo

Usage

For code examples, see Custom Vision on docs.microsoft.com.

Provide Feedback

If you encounter any bugs or have suggestions, please file an issue in the Issues section of the project.

Impressions

Release History

2.0.0 (2020-05-14)

Features

  • Model Iteration has a new parameter training_time_in_minutes
  • Model ProjectSettings has a new parameter image_processing_settings
  • Model ProjectSettings has a new parameter detection_parameters
  • Model ProjectSettings has a new parameter use_negative_set
  • Model Project has a new parameter status
  • Added operation CustomVisionPredictionClientOperationsMixin.detect_image_with_no_store
  • Added operation CustomVisionPredictionClientOperationsMixin.detect_image_url
  • Added operation CustomVisionPredictionClientOperationsMixin.classify_image_url
  • Added operation CustomVisionPredictionClientOperationsMixin.detect_image_url_with_no_store
  • Added operation CustomVisionPredictionClientOperationsMixin.classify_image_url_with_no_store
  • Added operation CustomVisionPredictionClientOperationsMixin.classify_image_with_no_store
  • Added operation CustomVisionPredictionClientOperationsMixin.classify_image
  • Added operation CustomVisionPredictionClientOperationsMixin.detect_image
  • Added operation group CustomVisionTrainingClientOperationsMixin

General Breaking changes

This version uses a next-generation code generator that might introduce breaking changes if from some import. In summary, some modules were incorrectly visible/importable and have been renamed. This fixed several issues caused by usage of classes that were not supposed to be used in the first place.

  • CustomVisionPredictionClient cannot be imported from azure.cognitiveservices.vision.customvision.prediction anymore (import from azure.cognitiveservices.vision.customvision works like before)
  • CustomVisionPredictionClientConfiguration import has been moved from azure.cognitiveservices.vision.customvision.prediction to azure.cognitiveservices.vision.customvision.prediction
  • A model MyClass from a "models" sub-module cannot be imported anymore using azure.cognitiveservices.vision.customvision.prediction.models.my_class (import from azure.cognitiveservices.vision.customvision.prediction.models works like before)
  • An operation class MyClassOperations from an operations sub-module cannot be imported anymore using azure.cognitiveservices.vision.customvision.operations.prediction.my_class_operations (import from azure.cognitiveservices.vision.customvision.prediction.operations works like before)
  • CustomVisionTrainingClient cannot be imported from azure.cognitiveservices.vision.customvision.training anymore (import from azure.cognitiveservices.vision.customvision works like before)
  • CustomVisionTrainingClientConfiguration import has been moved from azure.cognitiveservices.vision.customvision.training to azure.cognitiveservices.vision.customvision.training
  • A model MyClass from a "models" sub-module cannot be imported anymore using azure.cognitiveservices.vision.customvision.training.models.my_class (import from azure.cognitiveservices.vision.customvision.training.models works like before)
  • An operation class MyClassOperations from an operations sub-module cannot be imported anymore using azure.cognitiveservices.vision.customvision.operations.training.my_class_operations (import from azure.cognitiveservices.vision.customvision.training.operations works like before)

Last but not least, HTTP connection pooling is now enabled by default. You should always use a client as a context manager, or call close(), or use no more than one client per process.

1.0.0 (2019-03-22)

This is a stable release of the Cognitive Services Custom Vision SDK.

Training

  • Added an advanced training option to set a budget to train longer for improved iteration performance.
  • Added additional export options targetting Vision AI Dev Kit and Docker ARM for Raspberry Pi.

Prediction

  • PredictImage and PredictImageUrl have been replaced with project type specific calls. ClassifyImage and ClassifyImageUrl for image classification projects. DetectImage and DetectImageUrl for object detection projects .
  • Prediction methods now take a name to designate which published iteration to use. Iterations can be published using the Custom Vision Training SDK.

0.4.0 (2018-11-13)

  • The API client name was changed from TrainingAPI to CustomVisionTrainingClient, in keeping with other Azure SDKs.
  • The way the Azure region is specfied has changed. Specifically, the AzureRegion property was dropped in favor of an Endpoint property. If you were previously specifying an AzureRegion value, you should now specify Endpoint='https://{AzureRegion}.api.cognitive.microsoft.com' instead. This change ensures better global coverage.
  • Added ONNX 1.2 as an export option
  • Added negative tag support.

0.3.0 (2018-07-12)

Features

  • Added ability to create Multilabel or Multiclass image classification projects
  • Fixes and improvements to Docker container export and export pipeline to know when a newer version is available

0.2.0 (2018-05-07)

Breaking changes

Features

  • Adding support for object detection projects and expanded export functionality for image classification projects
  • Client class can be used as a context manager to keep the underlying HTTP session open for performance

Bugfixes

  • Compatibility of the sdist with wheel 0.31.0

Internal API version moved from 1.2 to 2.0

0.1.0 (2018-04-05)

  • Initial Release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

File details

Details for the file azure-cognitiveservices-vision-customvision-2.0.0.zip.

File metadata

  • Download URL: azure-cognitiveservices-vision-customvision-2.0.0.zip
  • Upload date:
  • Size: 68.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for azure-cognitiveservices-vision-customvision-2.0.0.zip
Algorithm Hash digest
SHA256 a6b552308d2189af4202497567e06f9db4e58933c548a38261af3f8cd81797e3
MD5 43901072b20c642a571b280152c8296f
BLAKE2b-256 41b0e2f5a28f029a37effba6f36ef431caba77a54a16ff14b1f3c19bab531a7f

See more details on using hashes here.

File details

Details for the file azure_cognitiveservices_vision_customvision-2.0.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for azure_cognitiveservices_vision_customvision-2.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d0b9787c8eacb025795f01333b4ad2402b1d78f2a3a6ad4d4b495f9f2084d8d1
MD5 650342afdfdbc798e4e9981c9282698d
BLAKE2b-256 ed13aa71e198c0287ecbfb70e55e0835133ee06e7133d2cdcc8a88dfb97672f6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page