# deeparajasabeson/azure-vision-and-foundry-services architecture

> Architecture diagram of the GitHub repository deeparajasabeson/azure-vision-and-foundry-services, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-14). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/deeparajasabeson/azure-vision-and-foundry-services
- Repository: https://github.com/deeparajasabeson/azure-vision-and-foundry-services

## Overview

This repository is a collection of standalone Python examples for Azure Vision and Azure AI Foundry, rather than a single application. The main workflow is a user supplying text or an image to a demo, which calls an Azure service and prints or saves the result. Its capabilities span image analysis and face detection, image generation and editing, and language/text analysis; the README also documents an agent example using uploaded Blob Storage documents. The agent implementation is identified by the tree and README, but its source was not excerpted, so its internal flow is not expanded.

Main entry points: [`image-generator.py`](https://github.com/deeparajasabeson/azure-vision-and-foundry-services/blob/master/image-generator.py) (Image generation), [`image-edit.py`](https://github.com/deeparajasabeson/azure-vision-and-foundry-services/blob/master/image-edit.py) (Image editing), [`foundry-agent-sdk.py`](https://github.com/deeparajasabeson/azure-vision-and-foundry-services/blob/master/foundry-agent-sdk.py) (Foundry agent), [`image-analysis.py`](https://github.com/deeparajasabeson/azure-vision-and-foundry-services/blob/master/image-analysis.py) (Image analysis)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_vision["Image analysis"]
  node_image_analysis_demo["Image analysis<br/>[image-analysis.py]"]
  node_face_analysis["Face analysis<br/>[face-analysis.py]"]
  node_read_text["Image text reading<br/>[read-text.py]"]
end

subgraph group_image_creation["Image creation"]
  node_image_generator["Image generation<br/>[image-generator.py]"]
  node_image_editor["Image editing<br/>[image-edit.py]"]
  node_generated_images["Generated images"]
  node_edited_images["Edited images"]
end

subgraph group_text_ai["Text AI"]
  node_language_detection["Language detection<br/>[detect-language.py]"]
  node_translation["Text translation"]
  node_sentiment["Sentiment analysis"]
  node_entity_extraction["Entity extraction<br/>[named-entity.py]"]
end

subgraph group_foundry["Foundry agent"]
  node_foundry_agent["Foundry agent"]
end

node_user(("User"))
node_vision_service{{"Azure Vision services"}}
node_foundry_service{{"Azure AI Foundry"}}
node_blob_storage[("Blob Storage")]

node_user -->|"prompts"| node_image_analysis_demo
node_image_analysis_demo -->|"analyzes image"| node_vision_service
node_user -->|"starts demo"| node_face_analysis
node_face_analysis -->|"detects faces"| node_vision_service
node_user -->|"starts demo"| node_read_text
node_read_text -->|"reads image"| node_vision_service
node_user -->|"prompts"| node_image_generator
node_image_generator -->|"generates image"| node_foundry_service
node_image_generator -->|"writes image"| node_generated_images
node_user -->|"prompts"| node_image_editor
node_image_editor -->|"edits image"| node_foundry_service
node_image_editor -->|"writes image"| node_edited_images
node_user -->|"starts demo"| node_language_detection
node_language_detection -->|"detects language"| node_foundry_service
node_user -->|"starts demo"| node_translation
node_translation -->|"translates text"| node_foundry_service
node_user -->|"starts demo"| node_sentiment
node_sentiment -->|"analyzes sentiment"| node_foundry_service
node_user -->|"starts demo"| node_entity_extraction
node_entity_extraction -->|"extracts entities"| node_foundry_service
node_user -.->|"submits prompt"| node_foundry_agent
node_foundry_agent -.->|"uses documents"| node_blob_storage
node_foundry_agent -.->|"gets responses"| node_foundry_service

click node_image_analysis_demo "https://github.com/deeparajasabeson/azure-vision-and-foundry-services/blob/master/image-analysis.py"
click node_face_analysis "https://github.com/deeparajasabeson/azure-vision-and-foundry-services/blob/master/face-analysis.py"
click node_read_text "https://github.com/deeparajasabeson/azure-vision-and-foundry-services/blob/master/read-text.py"
click node_image_generator "https://github.com/deeparajasabeson/azure-vision-and-foundry-services/blob/master/image-generator.py"
click node_image_editor "https://github.com/deeparajasabeson/azure-vision-and-foundry-services/blob/master/image-edit.py"
click node_generated_images "https://github.com/deeparajasabeson/azure-vision-and-foundry-services/tree/master/output"
click node_edited_images "https://github.com/deeparajasabeson/azure-vision-and-foundry-services/tree/master/images/edited"
click node_language_detection "https://github.com/deeparajasabeson/azure-vision-and-foundry-services/blob/master/detect-language.py"
click node_translation "https://github.com/deeparajasabeson/azure-vision-and-foundry-services/blob/master/text-translation.py"
click node_sentiment "https://github.com/deeparajasabeson/azure-vision-and-foundry-services/blob/master/sentiment-analysis.py"
click node_entity_extraction "https://github.com/deeparajasabeson/azure-vision-and-foundry-services/blob/master/named-entity.py"
click node_foundry_agent "https://github.com/deeparajasabeson/azure-vision-and-foundry-services/blob/master/foundry-agent-sdk.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_image_analysis_demo,node_face_analysis,node_read_text,node_user toneBlue
class node_image_generator,node_image_editor,node_generated_images,node_edited_images,node_blob_storage toneAmber
class node_language_detection,node_translation,node_sentiment,node_entity_extraction toneMint
class node_foundry_agent toneRose
class node_vision_service,node_foundry_service toneIndigo
```

## Components

### Image analysis

- [Image analysis](https://github.com/deeparajasabeson/azure-vision-and-foundry-services/blob/master/image-analysis.py): `image-analysis.py`
- [Face analysis](https://github.com/deeparajasabeson/azure-vision-and-foundry-services/blob/master/face-analysis.py): `face-analysis.py`
- [Image text reading](https://github.com/deeparajasabeson/azure-vision-and-foundry-services/blob/master/read-text.py): `read-text.py`

### Image creation

- [Image generation](https://github.com/deeparajasabeson/azure-vision-and-foundry-services/blob/master/image-generator.py): `image-generator.py`
- [Image editing](https://github.com/deeparajasabeson/azure-vision-and-foundry-services/blob/master/image-edit.py): `image-edit.py`
- [Generated images](https://github.com/deeparajasabeson/azure-vision-and-foundry-services/tree/master/output): `output`
- [Edited images](https://github.com/deeparajasabeson/azure-vision-and-foundry-services/tree/master/images/edited): `images/edited`

### Text AI

- [Language detection](https://github.com/deeparajasabeson/azure-vision-and-foundry-services/blob/master/detect-language.py): `detect-language.py`
- [Text translation](https://github.com/deeparajasabeson/azure-vision-and-foundry-services/blob/master/text-translation.py): `text-translation.py`
- [Sentiment analysis](https://github.com/deeparajasabeson/azure-vision-and-foundry-services/blob/master/sentiment-analysis.py): `sentiment-analysis.py`
- [Entity extraction](https://github.com/deeparajasabeson/azure-vision-and-foundry-services/blob/master/named-entity.py): `named-entity.py`

### Foundry agent

- [Foundry agent](https://github.com/deeparajasabeson/azure-vision-and-foundry-services/blob/master/foundry-agent-sdk.py): `foundry-agent-sdk.py`

### Other components

- **User**
- **Azure Vision services**
- **Azure AI Foundry**
- **Blob Storage**

## Connections

- User → Image analysis: prompts (evidence: `image-analysis.py`)
- Image analysis → Azure Vision services: analyzes image (evidence: `image-analysis.py`)
- User → Face analysis: starts demo (evidence: `face-analysis.py`)
- Face analysis → Azure Vision services: detects faces (evidence: `face-analysis.py`)
- User → Image text reading: starts demo (evidence: `read-text.py`)
- Image text reading → Azure Vision services: reads image (evidence: `read-text.py`)
- User → Image generation: prompts (evidence: `image-generator.py`)
- Image generation → Azure AI Foundry: generates image (evidence: `image-generator.py`)
- Image generation → Generated images: writes image (evidence: `image-generator.py`)
- User → Image editing: prompts (evidence: `image-edit.py`)
- Image editing → Azure AI Foundry: edits image (evidence: `image-edit.py`)
- Image editing → Edited images: writes image (evidence: `image-edit.py`)
- User → Language detection: starts demo (evidence: `detect-language.py`)
- Language detection → Azure AI Foundry: detects language (evidence: `detect-language.py`)
- User → Text translation: starts demo (evidence: `text-translation.py`)
- Text translation → Azure AI Foundry: translates text (evidence: `text-translation.py`)
- User → Sentiment analysis: starts demo (evidence: `sentiment-analysis.py`)
- Sentiment analysis → Azure AI Foundry: analyzes sentiment (evidence: `sentiment-analysis.py`)
- User → Entity extraction: starts demo (evidence: `named-entity.py`)
- Entity extraction → Azure AI Foundry: extracts entities (evidence: `named-entity.py`)
- User → Foundry agent: submits prompt (evidence: `README.md`)
- Foundry agent → Blob Storage: uses documents (evidence: `README.md`)
- Foundry agent → Azure AI Foundry: gets responses (evidence: `README.md`)
