# prabhavathi11-code/transfer-learning-based-classification-of-poultry-diseases-for-enhanced-health-management architecture

> Architecture diagram of the GitHub repository prabhavathi11-code/transfer-learning-based-classification-of-poultry-diseases-for-enhanced-health-management, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-29). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/prabhavathi11-code/transfer-learning-based-classification-of-poultry-diseases-for-enhanced-health-management
- Repository: https://github.com/prabhavathi11-code/transfer-learning-based-classification-of-poultry-diseases-for-enhanced-health-management

## Overview

This is a Flask poultry-disease image classifier. The main workflow accepts an uploaded image, preprocesses it for a Keras model, maps the predicted class to a disease label, and displays the result. The sampled app.py is the only runtime implementation shown. The model file it loads is not in the tree, and the tree’s Templates/ capitalization differs from Flask’s conventional templates/ lookup; the available evidence does not establish how these are handled. Dataset directories and other templates are present, but no training or additional route wiring is shown.

Main entry points: [`app.py`](https://github.com/prabhavathi11-code/transfer-learning-based-classification-of-poultry-diseases-for-enhanced-health-management/blob/main/app.py) (Upload handler), [`Templates/index.html`](https://github.com/prabhavathi11-code/transfer-learning-based-classification-of-poultry-diseases-for-enhanced-health-management/blob/main/Templates/index.html) (Home page), [`Templates/predict.html`](https://github.com/prabhavathi11-code/transfer-learning-based-classification-of-poultry-diseases-for-enhanced-health-management/blob/main/Templates/predict.html) (Prediction page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web workflow"]
  node_flask["Flask routes<br/>[app.py]"]
  node_home["Home page<br/>[index.html]"]
  node_upload["Upload handler<br/>[app.py]"]
  node_image_store["Uploaded images<br/>[app.py]"]
  node_result["Prediction page<br/>[predict.html]"]
end

subgraph group_inference["Image classification"]
  node_preprocess["Image preprocessing<br/>[app.py]"]
  node_model["Keras model artifact"]
  node_classify["Class mapping<br/>[app.py]"]
end

node_user(("User"))

node_user -->|"visits"| node_flask
node_flask -->|"renders"| node_home
node_user -->|"uploads image"| node_upload
node_flask -->|"dispatches"| node_upload
node_upload -->|"saves image"| node_image_store
node_upload -->|"prepares image"| node_preprocess
node_upload -->|"predicts with"| node_model
node_upload -->|"maps scores"| node_classify
node_upload -->|"renders result"| node_result

click node_flask "https://github.com/prabhavathi11-code/transfer-learning-based-classification-of-poultry-diseases-for-enhanced-health-management/blob/main/app.py"
click node_home "https://github.com/prabhavathi11-code/transfer-learning-based-classification-of-poultry-diseases-for-enhanced-health-management/blob/main/Templates/index.html"
click node_upload "https://github.com/prabhavathi11-code/transfer-learning-based-classification-of-poultry-diseases-for-enhanced-health-management/blob/main/app.py"
click node_image_store "https://github.com/prabhavathi11-code/transfer-learning-based-classification-of-poultry-diseases-for-enhanced-health-management/blob/main/app.py"
click node_preprocess "https://github.com/prabhavathi11-code/transfer-learning-based-classification-of-poultry-diseases-for-enhanced-health-management/blob/main/app.py"
click node_classify "https://github.com/prabhavathi11-code/transfer-learning-based-classification-of-poultry-diseases-for-enhanced-health-management/blob/main/app.py"
click node_result "https://github.com/prabhavathi11-code/transfer-learning-based-classification-of-poultry-diseases-for-enhanced-health-management/blob/main/Templates/predict.html"

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_flask,node_home,node_upload,node_image_store,node_result,node_user toneBlue
class node_preprocess,node_model,node_classify toneAmber
```

## Components

### Web workflow

- [Flask routes](https://github.com/prabhavathi11-code/transfer-learning-based-classification-of-poultry-diseases-for-enhanced-health-management/blob/main/app.py): `app.py`
- [Home page](https://github.com/prabhavathi11-code/transfer-learning-based-classification-of-poultry-diseases-for-enhanced-health-management/blob/main/Templates/index.html): `Templates/index.html`
- [Upload handler](https://github.com/prabhavathi11-code/transfer-learning-based-classification-of-poultry-diseases-for-enhanced-health-management/blob/main/app.py): `app.py`
- [Uploaded images](https://github.com/prabhavathi11-code/transfer-learning-based-classification-of-poultry-diseases-for-enhanced-health-management/blob/main/app.py): `app.py`
- [Prediction page](https://github.com/prabhavathi11-code/transfer-learning-based-classification-of-poultry-diseases-for-enhanced-health-management/blob/main/Templates/predict.html): `Templates/predict.html`

### Image classification

- [Image preprocessing](https://github.com/prabhavathi11-code/transfer-learning-based-classification-of-poultry-diseases-for-enhanced-health-management/blob/main/app.py): `app.py`
- **Keras model artifact**
- [Class mapping](https://github.com/prabhavathi11-code/transfer-learning-based-classification-of-poultry-diseases-for-enhanced-health-management/blob/main/app.py): `app.py`

### Other components

- **User**

## Connections

- User → Flask routes: visits
- Flask routes → Home page: renders
- User → Upload handler: uploads image
- Flask routes → Upload handler: dispatches
- Upload handler → Uploaded images: saves image
- Upload handler → Image preprocessing: prepares image
- Upload handler → Keras model artifact: predicts with
- Upload handler → Class mapping: maps scores
- Upload handler → Prediction page: renders result
