Skip to main content

Azure Cognitive Services Computer Vision - Python SDK Samples

Model Customization

Computer Vision's Model Customization is a custom model training service that allows users like developers to easily train an image classification model (Multiclass only for now) or object detection model, with low-code experience and very little understanding of machine learning or computer vision required.

This is a sample repository demonstrating how to train and predict a custom model with Cognitive Service for Vision, using Python. To get started, check out this tutorial in Python notebook.

Product Recognition

One of the scenarios we would like to introudce as a model customization scenario is Product Recognition. Computer Vision's product recognition service has been designed to be used in retail scenarios, where users would like to detect products, such as Consumer Packaged Goods (CPG), on a shelf. It comes with a set of APIs, a pre-built AI model, and a custom AI model that can be trained following the model customization guide above. You can try these out by following tutorials in Python notebooks:

  • Image Composition: for stitching together the segmented shelf images using Image Stitching API, as well as adjusting any slanted or squished shelf images to a correct orientation using Image Rectification API
  • Product Recognition: for detecting products and gaps on a shelf image using a pre-built model, and individually classifying the detected products using customized model, both using Product Understanding API
  • Planogram Compliance: for assessing the matchings between a planogram schema and the detected products on a shelf using Planogram Compliance API

Existing Custom Vision (customvision.ai) Customers

Refer to export_cvs_data_to_blob_storage.ipynb for instructions or directly run export_cvs_data_to_blob_storage.py to export Custom Vision images and annotations to your own blob storage, which can be later used for model customization training.

Once data is exported, you can use it with Cognitive Service Vision Model Customization.

RESTful API & SDK

If you would like to explore more functionalities offered in Cognitive Service Vision, you can refer to this link for a quick start.

FAQ & Docs

For frequently asked questions or quick troubleshooting, check out FAQ, including things like troubleshooting guides, quota information, etc.

For more documentation, check out:

  • API: Here
  • SDK: Here (note that model customization training and product recognition are not supported in this SDK yet, while prediction is supported.)

Release files for cognitive-service-vision-model-customization-python-samples 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cognitive-service-vision-model-customization-python-samples 0.0.4
File Size Uploaded
cognitive-service-vision-model-customization-python-samples-0.0.4.tar.gz 21.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cognitive-service-vision-model-customization-python-samples 0.0.4
File Interpreter ABI Platform
cognitive_service_vision_model_customization_python_samples-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 55.6 kB

Release files / cognitive-service-vision-model-customization-python-samples-0.0.4.tar.gz

Download URL cognitive-service-vision-model-customization-python-samples-0.0.4.tar.gz
Size 21.6 kB
Tags Source
SHA-256 checksum
How to use checksums
9c32f9820b31b32edca55fd164bca2c82f2436954224a228cb95feab9e57bbd4
BLAKE2b-256 checksum
How to use checksums
dc4bb6436d721e1e1b1e5e2805ff0f134147d82dd4a3738fa6c629f4f3b086d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release files / cognitive_service_vision_model_customization_python_samples-0.0.4-py3-none-any.whl

Download URL cognitive_service_vision_model_customization_python_samples-0.0.4-py3-none-any.whl
Size 34.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
482d27b73630aac3420541e927c652c5d66bc3da5f7eaad4a03e5327c39b1790
BLAKE2b-256 checksum
How to use checksums
9772f56c9d867ae2ecaef6d5570a03de18009489cb1be57d68bbf15c1ed6a1ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release history Release notifications | RSS feed

0.0.6

2 release files

0.0.5

2 release files

This release

0.0.4 This release

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page