By Fatskills Exam Guides Team — the exam nerds behind 28,500+ quizzes and 2.1M practice questions across 500+ global exams.
Azure Custom Vision is a no-code/low-code computer vision service that lets you train, deploy, and export custom image classification and object detection models. It’s critical in ML pipelines where pre-built models (like Azure Computer Vision) don’t fit domain-specific needs—e.g., identifying defective parts on a manufacturing line, classifying retail products by brand, or detecting safety gear in construction sites. Unlike training from scratch (which requires deep ML expertise), Custom Vision abstracts away infrastructure, hyperparameter tuning, and model optimization, letting engineers focus on data and business logic.
Custom Vision Service (Azure): Azure’s managed service for training image classification (labeling entire images) and object detection (finding and labeling objects within images) models. Best for quick prototyping and edge deployment (via ONNX, TensorFlow, or Docker containers).
Image Classification: Assigns a single label to an entire image (e.g., "cat" or "dog"). Used when the whole image represents one concept (e.g., medical X-ray diagnosis, product categorization).
Object Detection: Identifies multiple objects in an image, drawing bounding boxes around them and labeling each (e.g., detecting helmets, vests, and tools in a construction photo). Used when spatial location matters (e.g., autonomous vehicles, retail shelf audits).
Training vs. Prediction (Inference) Resources:
Prediction Resource: Used to deploy a model for inference (billed per API call or container runtime).
ONNX (Open Neural Network Exchange): An open format for model interoperability. Custom Vision exports models in ONNX for edge deployment (e.g., IoT devices, mobile apps).
TensorFlow Lite: A lightweight version of TensorFlow for mobile/embedded devices. Custom Vision exports object detection models in this format for Android/iOS apps.
Docker Container Export: Custom Vision provides pre-built Docker images for deploying models on Azure Container Instances (ACI), Azure Kubernetes Service (AKS), or on-premises servers.
Precision/Recall/F1 Score:
F1 Score: Harmonic mean of precision and recall (best for imbalanced datasets).
Active Learning: Custom Vision suggests images to label next based on model uncertainty, improving training efficiency.
Domain-Specific Models: Pre-trained models optimized for specific scenarios (e.g., "Retail," "Landmarks," "Food"). Use these to reduce training data needs.
Azure IoT Edge: Deploys Custom Vision models to edge devices (e.g., cameras, drones) for low-latency inference without cloud dependency.
Azure Machine Learning (Azure ML): While Custom Vision is no-code, Azure ML is used for advanced scenarios (e.g., custom training loops, hyperparameter tuning, or multi-modal models).
python from azure.cognitiveservices.vision.customvision.prediction import CustomVisionPredictionClient predictor = CustomVisionPredictionClient("<Prediction-Key>", "<Prediction-Endpoint>") with open("test.jpg", "rb") as image: results = predictor.classify_image("<Project-ID>", "<Published-Model-Name>", image.read()) print(results.predictions)
bash docker run -p 80:80 -e PredictionEndpoint=<Endpoint> -e PredictionKey=<Key> <CustomVision-Container-Image>
Custom Vision vs. Azure ML:
Key Constraints:
Export Limits: Free tier allows 1 export/month; Standard tier allows unlimited exports.
Tricky Scenario:
Distractor: Azure Computer Vision (doesn’t support custom labels).
Edge Deployment Gotchas:
Why? Azure Computer Vision doesn’t support custom labels, and Azure ML is overkill for this use case.
A construction company wants to detect safety gear (helmets, vests) in real-time from camera feeds. They need bounding box coordinates for each item. Which Custom Vision feature should they use?
Why? Classification only labels the whole image, not individual objects.
A mobile app team wants to deploy a Custom Vision model to an Android app. Which export format should they use?
Join 4M+ learners. Unlock unlimited quizzes, wrong-answer tracking, flashcards + reminders, study guides, and 1-on-1 challenges.