Cloud service · Azure · Updated

Azure AI Custom Vision - Azure AI Custom Vision is a managed service for training, publishing, and exporting custom image classification and object detection models using labeled images.

In short

Custom Vision uses transfer learning to recognize customer-defined visual categories through a web portal, REST APIs, and SDKs. It supports hosted prediction endpoints and exportable compact models, but it is not a general-purpose OCR or video analytics service. Microsoft has announced retirement on September 25, 2028, with full support for existing customers until that date.

Cloud Services Hub →

8 key features of Azure AI Custom Vision

01
Custom image classification

Train models that assign your own tags to complete images. Choose multiclass classification when one category should apply or multilabel classification when several categories can be present.

02
Object detection with bounding boxes

Train detectors using images annotated with labeled object regions. Predictions return confidence scores and normalized bounding-box coordinates that applications can convert to pixel locations.

03
Portal and programmatic workflows

Use the Custom Vision portal for image labeling, training, and evaluation, or automate these operations through REST APIs and SDKs. Keep dataset versions and annotation exports outside the service to make experiments reproducible and support migration.

04
Transfer learning and domain selection

Start from service-provided base models and select a domain suited to the imagery and deployment target. Train on representative examples instead of assuming that a small prototype dataset will generalize to production.

05
Fast and advanced training

Use fast training for iterative development or advanced training with a specified compute-time budget. Compare resulting iterations on the same independent evaluation dataset before choosing a production candidate.

06
Evaluation and iteration publishing

Review precision, recall, and prediction behavior before publishing a trained iteration. Hosted applications address a published model name, allowing engineers to control which iteration is used for inference.

07
Compact model export

Export models trained with supported compact domains for execution outside the hosted prediction service. Verify target-format support and benchmark accuracy, latency, and memory consumption on the actual device.

08
Data collection for retraining

Prediction images can be retained for review and inclusion in future training iterations, and suggested tags can accelerate labeling. Use explicit retention policies and human verification so incorrect predictions do not become unreviewed training labels.

Where Azure AI Custom Vision is used

  1. 01
    Retail product and shelf inspection

    Detect known products in shelf photographs to support availability checks and assisted stock counting. Evaluate performance on occluded products, packaging changes, and different store layouts before using detections for inventory decisions.

  2. 02
    Visible manufacturing condition checks

    Classify products by clearly visible conditions such as missing components, incorrect assembly, or major surface changes. Route uncertain results to inspectors and validate carefully because subtle cracks and dents are not an optimal fit for the service.

  3. 03
    Image catalog routing

    Assign domain-specific categories to uploaded images, such as equipment types or product families, and route them to the appropriate business workflow. Use multilabel classification when an image can belong to several categories.

  4. 04
    Frame-based visual alerts

    Analyze sampled camera frames for trained categories such as animal presence or visible steam. An external component must capture frames, control sampling rates, and combine detections over time to reduce duplicate or transient alerts.

  5. 05
    Offline field inspection

    Embed an exported compact model in a supported mobile or local application to classify images when connectivity is unreliable. Synchronize reviewed examples later for retraining and distribute model updates through an application-managed release process.

How Azure AI Custom Vision is priced

Free tier (F0)

The free tier provides limited capacity for evaluation, including two projects, up to 5,000 training images per project, and 10,000 predictions per month. Lower transaction-rate limits and other quotas make it unsuitable for most production workloads; confirm availability and current limits before provisioning.

Standard tier (S0)

The standard tier uses consumption-based charges for training compute time, training-image storage, and prediction transactions. Training and prediction resources serve separate roles, so estimate both development activity and production inference volume; published transaction-rate quotas still apply.

Exported-model deployment costs

Running an exported model locally does not invoke the hosted prediction API, so those local inferences do not incur Custom Vision prediction-transaction charges. Training and stored training data remain subject to applicable service charges, while device, container, hosting, monitoring, and model-distribution costs are separate.

Services Azure AI Custom Vision works with

A common architecture stores incoming images in Azure Blob Storage and uses Azure Functions to validate each image before calling a published Custom Vision model. The function translates predictions into application-specific decisions and persists the result separately from the original image. An application-managed queue can absorb bursts, but workers still need bounded concurrency and retry backoff to respect prediction throughput limits. Key Vault holds service credentials, while the worker's managed identity controls access to those secrets.

Keep the training workflow separate from online inference. Engineers can curate reviewed images from storage, upload labeled examples through the training API, and evaluate each iteration before publishing it. Custom Vision storage integration can send training and export notifications to Azure Storage queues, allowing workers to react to completed operations instead of continuously polling. Application Insights can capture caller-side latency, errors, and model identifiers without recording sensitive image payloads.

For retirement planning, preserve original images, annotations, evaluation datasets, and business decision thresholds independently of Custom Vision. Rebuild training in Azure Machine Learning AutoML and compare replacement predictions against the existing implementation before redirecting production traffic. Exported compact models require a separate deployment path for runtime packaging, device updates, and operational monitoring.

Azure Blob Storage

Use Blob Storage as an application-managed repository for original images, reviewed annotations, and exported model artifacts. For example, retain versioned inspection images in a private container and have a training job upload selected images to Custom Vision through its training API. Storage is not automatically synchronized with a project; the application must implement ingestion, labeling, and retention.

Azure Functions

Use Functions to validate images, call a published prediction endpoint, and route results to downstream workflows. For example, a blob-triggered function can classify a newly uploaded product image and write its predicted category to an application database. Bound concurrency and implement retry backoff so scale-out does not exceed Custom Vision prediction quotas.

Queue Storage

Custom Vision storage integration can emit training and export activity notifications to Azure Storage queues, reducing the need for continuous status polling. For example, a worker can consume a training-completion notification, inspect the iteration's metrics, and request an approved model export. Make consumers idempotent because queue messages can be delivered more than once.

Azure Key Vault

Store Custom Vision training and prediction keys in Key Vault instead of embedding them in source code or client applications. For example, a backend hosted in Azure Functions can use its managed identity to retrieve the prediction key and then call Custom Vision. Keep training secrets available only to authorized training jobs and define a key-rotation procedure.

Azure Monitor

Instrument the calling application with Application Insights to track prediction latency, failures, throttling, and the published model name used for each request. For example, alert when HTTP 429 responses increase after a camera fleet expands. Record reviewed outcomes separately to measure model quality, and avoid putting raw images, credentials, or sensitive image URLs in telemetry.

Azure Machine Learning

Use Azure Machine Learning AutoML as a migration destination for custom image classification and object detection before Custom Vision retires. For example, export images and annotations, convert them to the required training schema, train a replacement model, and compare it against the existing service on a fixed test set. Rebuild deployment and prediction-response handling explicitly rather than assuming Custom Vision projects or published endpoints transfer directly.

Azure AI Video Indexer

In the animated-character recognition workflow, Custom Vision trains an object detector from labeled character images so Azure AI Video Indexer can identify those characters in video footage.

Azure Container Registry

A model exported from a compact Custom Vision project can be packaged as a Docker image and published to Azure Container Registry. Azure IoT Edge devices can then pull the image to run predictions locally.

Azure DNS

A Custom Vision account that uses a private endpoint can use an Azure Private DNS zone to resolve its endpoint hostname to a private IP address from linked virtual networks.

Azure IoT Edge

Custom Vision can export a compact model for deployment as a container on Azure IoT Edge. An edge module can classify camera images locally without sending each image to the cloud.

What is Azure AI Custom Vision

2 min read

Azure AI Custom Vision lets engineers build image recognition models without implementing a training framework or managing training infrastructure. A project contains labeled images, a task configuration, and trained model iterations. Image classification assigns labels to an entire image, while object detection identifies individual objects and returns their labels, confidence scores, and bounding boxes. Classification projects can use multiclass classification for mutually exclusive categories or multilabel classification when multiple categories can apply to one image.

Microsoft has announced that Custom Vision will retire on September 25, 2028, and will provide full support for existing customers until that date. Existing deployments should include a migration plan covering training data, annotations, prediction interfaces, and model evaluation. Azure Machine Learning AutoML is a recommended alternative for custom image classification and object detection. Migration requires rebuilding and validating the training and serving workflow; it should not be treated as a simple endpoint replacement.

The normal development workflow is to create training and prediction resources, create a project, choose an appropriate domain, and upload labeled images through the Custom Vision portal or training API. Classification requires image-level tags; object detection requires labeled bounding boxes. Around 50 images per label is a useful starting point, not a guarantee of production quality. Include representative lighting, viewpoints, backgrounds, and negative examples, and maintain a separate evaluation dataset that reflects deployment conditions.

Training creates an iteration that can be evaluated before publication. Fast training supports short development cycles, while advanced training allows a compute-time budget for exploring training configurations. Review precision and recall at thresholds appropriate to the application rather than relying on a single aggregate score. Confidence scores are not guarantees of correctness, so applications should define behavior for uncertain predictions, unexpected inputs, and human review.

For hosted inference, publish a selected iteration to a prediction resource and call it using the project identifier, published model name, endpoint, and appropriate credentials. Keep training credentials out of client applications. Validate image formats and payload sizes before sending requests; documented limits include 6 MB for training uploads and 4 MB for prediction images. Apply bounded concurrency and retry throttled requests with backoff, because paid prediction capacity still has transaction-rate limits.

Compact domains support exporting models for local execution in supported formats. Export availability depends on the selected domain and target, and compact models can trade accuracy for smaller size and lower resource requirements. Local inference is useful for intermittent connectivity or latency-sensitive applications, but engineers must manage runtime compatibility, packaging, updates, and device monitoring. Custom Vision processes individual images rather than providing a video ingestion pipeline, so video applications must extract and schedule frames themselves. It is optimized for visible differences and should be evaluated carefully before use for subtle defects such as small cracks or dents.

Azure architecture icons are the property of Microsoft. BlowStack is not affiliated with or endorsed by Microsoft.