Dev & Engineering ✓ Microsoft · Official azure-ai-visionjava-sdkimage-captioningocrobject-detectionsmart-cropping

Azure AI Vision Image Analysis for Java

A practical Java SDK guide for captions, OCR, object detection, tagging, and smart image cropping.

FollowSkills review · FSRS-2.0
Not recommended
51/ 100 5-point scale 2.6 / 5
Trust15 / 25 · 3.0/5

The skill exposes API-key environment variables, DefaultAzureCredential, and managed identity, and recommends managed identity for production. However, it does not disclose that images and OCR data are sent to Azure, data retention, sensitive-content handling, least-privilege requirements, user confirmation, network boundaries, or rollback. No malware, credential theft, or destructive default is evident, but these omissions warrant deductions.

Reliability7 / 20 · 1.8/5

The main path covers installation, synchronous and asynchronous clients, major visual features, and HTTP error handling. However, the beta dependency is unexplained; several examples rely on undefined imageUrl, endpoint, or imports; input validation, empty-result handling, timeout configuration, and implemented retry behavior are missing. Some SDK calls are not statically verified as compilable. Static calibration therefore keeps this below 10.

Adaptability10 / 15 · 3.3/5

The audience, capability scope, and trigger phrases are reasonably clear, covering captions, OCR, objects, tags, people, and cropping, with regional limits and a language option noted. Boundaries for unsuitable use, privacy-sensitive images, cost and quotas, deployment prerequisites, and mainland-China network reachability are not addressed, so points are deducted.

Convention9 / 15 · 3.0/5

SKILL.md provides metadata, installation, client setup, a feature table, examples, error handling, environment variables, limitations, and trigger phrases, with an additional examples reference. However, it lacks a changelog, stable-version policy, explicit maintenance/update path, and explanation of the beta dependency. Repeated examples contain hidden assumptions. MIT licensing and Microsoft authorship are clear.

Effectiveness6 / 15 · 2.0/5

The material can directly inform code generation for common Java image-analysis tasks and includes broad feature coverage plus a report example. However, examples are not shown to compile or execute, outputs are mostly console-oriented, and production integration guidance for configuration, testing, retries, and privacy is incomplete. Static evidence supports only limited effectiveness.

Verifiability4 / 10 · 2.0/5

The versioned skill file, reference examples, MIT license, and repository CI/evaluation material provide some auditability. There is no skill-specific test suite, real execution evidence, or independent corroboration for the documented SDK paths; external documentation is only linked, so static reproducibility is limited.

Evidence confidence:Low Reviewed Jul 20, 2026 Reviewed revision 9ccaf7c3704a
Before you use it
  • Do not hard-code or commit API keys; prefer managed identity and verify minimal RBAC permissions for the Azure resource.
  • Treat images, OCR text, and remote URLs as potentially sensitive; confirm data flow, region, retention, and user authorization before deployment.
  • Compile and validate version 1.1.0-beta.1 and the examples in the target project; add missing variables/imports, empty-result handling, timeouts, and exponential-backoff retries.
  • Separately verify regional availability and mainland-China network/service reachability for Caption and Dense Captions.
See the full review method →

What it does & when to use it

This skill helps Java developers build applications with the Azure AI Vision Image Analysis SDK. It provides Maven installation, API-key and Azure identity authentication, and synchronous or asynchronous client examples. The covered features include captions, dense captions, OCR, tags, objects, people, and smart crops. It fits applications that can provide an Azure Vision endpoint and credentials, with regional constraints for caption features.

It shows how to add the com.azure:azure-ai-vision-imageanalysis Maven dependency, create synchronous or asynchronous clients, and analyze local image files or image URLs through an Azure Vision endpoint. The examples generate captions, extract text with confidence and bounding polygons, return tags, detect objects and people with bounding boxes, produce smart-crop regions, and combine multiple visual features. It also demonstrates gender-neutral captions, language selection, environment variables, and HttpResponseException handling.

  1. A Java developer needs human-readable descriptions for uploaded images and uses CAPTION or DENSE_CAPTIONS.
  2. A document-processing application needs OCR text, lines, words, confidence values, and locations from images and uses READ.
  3. An image catalog or moderation workflow needs detected objects and bounding boxes and uses OBJECTS.
  4. An application needs content tags or person locations from images and uses TAGS or PEOPLE.
  5. A thumbnail service needs salient regions for selected aspect ratios and uses SMART_CROPS.

Pros & cons

Pros
  • Covers captions, OCR, tags, objects, people, and smart cropping in one Java-focused guide.
  • Includes API-key and DefaultAzureCredential authentication, plus synchronous and asynchronous clients.
  • Provides concrete examples for local files and URLs, confidence values, bounding boxes, and error details.
Limitations
  • The Maven example uses the beta version `1.1.0-beta.1`.
  • CAPTION and DENSE_CAPTIONS require GPU-supported regions, so regional availability must be checked before deployment.
  • The application requires an Azure Vision endpoint and credentials; the source does not document pricing, quotas, or a complete deployment workflow.

How to install

Install the collection with npx skills add microsoft/skills, then select this skill in the wizard. Skills are installed to the selected agent directory, such as .github/skills/ for GitHub Copilot. Add the Maven dependency com.azure:azure-ai-vision-imageanalysis:1.1.0-beta.1 to the Java project.

How to use

Example triggers include image analysis Java, Azure Vision SDK, image captioning, and OCR image text extraction. Set VISION_ENDPOINT; also set VISION_KEY for API-key authentication, or AZURE_TOKEN_CREDENTIALS=prod when using DefaultAzureCredential in production. Use the provided Java patterns with analyze or analyzeFromUrl and select the required VisualFeatures.

FAQ

Does this skill include the Azure Vision service itself?
No. It provides implementation guidance for the Java SDK. Running the application still requires an Azure Vision endpoint and API-key or token credentials.
What image limits are documented?
Supported formats are JPEG, PNG, GIF, BMP, WEBP, ICO, TIFF, and MPO. Images must be under 20 MB and between 50×50 and 16000×16000 pixels.
What information is available when analysis fails?
The example catches `HttpResponseException` and reads the HTTP status code and error message.

More skills from this repository

All from microsoft/agent-skills

Dev & Engineering ✓ Microsoft · Official

Azure Identity for Python

A practical skill for securing Python Azure applications with Microsoft Entra ID credentials.

Dev & Engineering ✓ Microsoft · Official

Azure Event Hubs Java Skill

Build production-oriented Java event streaming applications on Azure Event Hubs.

Dev & Engineering ✓ Microsoft · Official

Azure Tables for Python

A practical guide to building authenticated Azure Tables applications with Python entity CRUD, queries, and partition-scoped batch operations.

Dev & Engineering ✓ Microsoft · Official

Azure Identity for TypeScript

Configure secure, flexible Microsoft Entra ID authentication for TypeScript Azure applications.

Automation & Ops ✓ Microsoft · Official

Azure Reliability Advisor

Assess and improve reliability for Azure Functions and App Service.

Dev & Engineering ✓ Microsoft · Official

Azure Cloud Architect

Guides coding agents through production-grade Azure architecture design and review using Azure Architecture Center practices.

Dev & Engineering ✓ Microsoft · Official

Azure AI Text Analytics for Python

Guides Python developers through Azure-powered text analysis and NLP workflows.

Automation & Ops ✓ Microsoft · Official

Azure Resource Architecture Visualizer

Analyze Azure resource groups and turn their dependencies into detailed Mermaid architecture diagrams.

Dev & Engineering ✓ Microsoft · Official

Azure Maps for .NET

Build .NET location features for search, routing, maps, geolocation, and weather.

Dev & Engineering ✓ Microsoft · Official

Azure AI Vision Image Analysis

Guides Python coding agents in implementing Azure AI Vision image understanding.

Dev & Engineering ✓ Microsoft · Official

Azure Blob Storage for Python

Guides secure, production-minded Blob Storage operations in Python.

Dev & Engineering ✓ Microsoft · Official

Azure Queue Storage for Python

Gives coding agents reliable Python patterns for secure Azure Queue Storage messaging and asynchronous task processing.

Automation & Ops ✓ Microsoft · Official

Azure AI Gateway Governance

Use Azure API Management to govern traffic across AI models, MCP tools, and agents.

Automation & Ops ✓ Microsoft · Official

AKS Automatic Readiness

Assess Kubernetes workloads for AKS Automatic compatibility and identify migration blockers before you switch.

Dev & Engineering ✓ Microsoft · Official

Azure Cosmos DB ARM for .NET

Provision and manage Azure Cosmos DB resources from .NET through ARM.

Dev & Engineering ✓ Microsoft · Official

Azure Playwright Workspace Manager

Provision and manage Microsoft Playwright Testing workspaces with .NET and Azure Resource Manager.

Dev & Engineering ✓ Microsoft · Official

Azure Cosmos DB for Python

A practical guide for building reliable Python applications on Azure Cosmos DB’s NoSQL API.

Dev & Engineering ✓ Microsoft · Official

Azure Key Vault SDK for Python

Gives Python coding agents practical guidance for securely managing Azure Key Vault secrets, keys, and certificates.

Dev & Engineering ✓ Microsoft · Official

Azure API Management for Python

Gives coding agents practical Python SDK patterns for managing Azure API Management services, APIs, products, subscriptions, and policies.

Dev & Engineering ✓ Microsoft · Official

Azure Monitor Query for Python

Generate Python code for querying Azure Monitor logs and metrics.

Related skills