# wwonigkeit/ocr-workflows architecture

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

- Interactive diagram: https://gitdiagram.com/wwonigkeit/ocr-workflows
- Repository: https://github.com/wwonigkeit/ocr-workflows

## Overview

This repository documents an OCR workflow example rather than a general-purpose application. The principal flow is image upload to Azure Blob Storage, an event triggering the Direktiv workflow, image-to-text analysis, and delivery of the result through Slack, email, and Teams. The README documents these stages and integrations; source excerpts are unavailable, so the graph does not infer internal actions or connections from the uninspected workflow files.

Main entry points: [`ocr-workflow.yaml`](https://github.com/wwonigkeit/ocr-workflows/blob/main/ocr-workflow.yaml) (Image-to-text analysis)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_input["Image input"]
  node_blob[("Azure Blob Storage")]
end

subgraph group_workflow["OCR workflow"]
  node_direktiv["Direktiv instance"]
  node_ocr["Image-to-text analysis<br/>[ocr-workflow.yaml]"]
end

subgraph group_delivery["Result delivery"]
  node_slack["Slack channel"]
  node_email["Email recipients"]
  node_teams["Teams channel"]
end

node_uploader(("Image uploader"))

node_uploader -->|"uploads image"| node_blob
node_blob -->|"fires event"| node_direktiv
node_direktiv -->|"runs workflow"| node_ocr
node_ocr -->|"sends text and image"| node_slack
node_ocr -->|"sends text and URL"| node_email
node_ocr -->|"sends details"| node_teams

click node_ocr "https://github.com/wwonigkeit/ocr-workflows/blob/main/ocr-workflow.yaml"

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_blob toneBlue
class node_direktiv,node_ocr toneAmber
class node_slack,node_email,node_teams toneMint
class node_uploader toneIndigo
```

## Components

### Image input

- **Azure Blob Storage**

### OCR workflow

- **Direktiv instance**
- [Image-to-text analysis](https://github.com/wwonigkeit/ocr-workflows/blob/main/ocr-workflow.yaml): `ocr-workflow.yaml`

### Result delivery

- **Slack channel**
- **Email recipients**
- **Teams channel**

### Other components

- **Image uploader**

## Connections

- Image uploader → Azure Blob Storage: uploads image (evidence: `README.md`)
- Azure Blob Storage → Direktiv instance: fires event (evidence: `README.md`)
- Direktiv instance → Image-to-text analysis: runs workflow (evidence: `README.md`)
- Image-to-text analysis → Slack channel: sends text and image (evidence: `README.md`)
- Image-to-text analysis → Email recipients: sends text and URL (evidence: `README.md`)
- Image-to-text analysis → Teams channel: sends details (evidence: `README.md`)
