# maryaylla/arandukaa-cearacien architecture

> Architecture diagram of the GitHub repository maryaylla/arandukaa-cearacien, 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/maryaylla/arandukaa-cearacien
- Repository: https://github.com/maryaylla/arandukaa-cearacien

## Overview

Aranduka is a plant-identification and plant-information website. Visitors can browse an encyclopedia and plant detail pages, or select an image for recognition. The Flask app serves the pages and has a local image-classification path; the sampled browser recognizer instead sends images to a hosted Gradio service and renders its response. The tree also includes camera capture and informational pages. The README is empty, and template wiring and unsampled files were not inspected, so the graph limits relationships to those shown in the supplied source or documented by route handlers.

Main entry points: [`app.py`](https://github.com/maryaylla/arandukaa-cearacien/blob/main/app.py) (Flask Routes), [`static/js/reconhecer.js`](https://github.com/maryaylla/arandukaa-cearacien/blob/main/static/js/reconhecer.js) (Browser Recognizer), [`static/js/camera.js`](https://github.com/maryaylla/arandukaa-cearacien/blob/main/static/js/camera.js) (Camera Capture), [`templates/index.html`](https://github.com/maryaylla/arandukaa-cearacien/blob/main/templates/index.html) (Home Page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Website"]
  node_flask["Flask Routes<br/>[app.py]"]
  node_home["Home Page<br/>[index.html]"]
end

subgraph group_recognition["Plant Recognition"]
  node_recognizer_page["Recognizer Page<br/>[reconhecedor.html]"]
  node_browser_recognizer["Browser Recognizer<br/>[reconhecer.js]"]
  node_camera_capture["Camera Capture<br/>[camera.js]"]
  node_hosted_ai["Hosted Gradio AI"]
  node_result_page["Result Page<br/>[resultado.html]"]
  node_local_classifier["Local Classifier<br/>[app.py]"]
  node_keras_model[("Keras Model<br/>[keras_model.h5]")]
  node_class_labels["Class Labels<br/>[labels.txt]"]
end

subgraph group_catalog["Plant Catalog"]
  node_plant_catalog[("Plant Catalog<br/>[plantas.json]")]
  node_encyclopedia["Encyclopedia Page<br/>[enciclopedia.html]"]
  node_plant_detail["Plant Detail Page"]
end

subgraph group_information["Information Pages"]
  node_about["About Page<br/>[sobre.html]"]
  node_impact["Impact Page<br/>[impacto.html]"]
end

node_visitor(("Visitor"))

node_visitor -->|"requests pages"| node_flask
node_flask -->|"renders"| node_home
node_flask -->|"renders"| node_recognizer_page
node_flask -->|"renders"| node_encyclopedia
node_flask -->|"renders"| node_plant_detail
node_flask -->|"renders"| node_about
node_flask -->|"renders"| node_impact
node_flask -->|"renders"| node_result_page
node_flask -->|"loads catalog"| node_plant_catalog
node_flask -->|"calls classifier"| node_local_classifier
node_local_classifier -->|"predicts with"| node_keras_model
node_local_classifier -->|"reads labels"| node_class_labels
node_visitor -->|"selects image"| node_browser_recognizer
node_browser_recognizer -->|"sends image"| node_hosted_ai
node_hosted_ai -->|"returns prediction"| node_browser_recognizer
node_visitor -->|"captures photo"| node_camera_capture
node_camera_capture -.->|"submits image"| node_flask

click node_flask "https://github.com/maryaylla/arandukaa-cearacien/blob/main/app.py"
click node_home "https://github.com/maryaylla/arandukaa-cearacien/blob/main/templates/index.html"
click node_recognizer_page "https://github.com/maryaylla/arandukaa-cearacien/blob/main/templates/reconhecedor.html"
click node_browser_recognizer "https://github.com/maryaylla/arandukaa-cearacien/blob/main/static/js/reconhecer.js"
click node_camera_capture "https://github.com/maryaylla/arandukaa-cearacien/blob/main/static/js/camera.js"
click node_result_page "https://github.com/maryaylla/arandukaa-cearacien/blob/main/templates/resultado.html"
click node_local_classifier "https://github.com/maryaylla/arandukaa-cearacien/blob/main/app.py"
click node_keras_model "https://github.com/maryaylla/arandukaa-cearacien/blob/main/ia-models/keras_model.h5"
click node_class_labels "https://github.com/maryaylla/arandukaa-cearacien/blob/main/ia-models/labels.txt"
click node_plant_catalog "https://github.com/maryaylla/arandukaa-cearacien/blob/main/plantas.json"
click node_encyclopedia "https://github.com/maryaylla/arandukaa-cearacien/blob/main/templates/enciclopedia.html"
click node_plant_detail "https://github.com/maryaylla/arandukaa-cearacien/blob/main/templates/planta_detalhe.html"
click node_about "https://github.com/maryaylla/arandukaa-cearacien/blob/main/templates/sobre.html"
click node_impact "https://github.com/maryaylla/arandukaa-cearacien/blob/main/templates/impacto.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 toneBlue
class node_recognizer_page,node_browser_recognizer,node_camera_capture,node_hosted_ai,node_result_page,node_local_classifier,node_keras_model,node_class_labels toneAmber
class node_plant_catalog,node_encyclopedia,node_plant_detail toneMint
class node_about,node_impact toneRose
class node_visitor toneIndigo
```

## Components

### Website

- [Flask Routes](https://github.com/maryaylla/arandukaa-cearacien/blob/main/app.py): `app.py`
- [Home Page](https://github.com/maryaylla/arandukaa-cearacien/blob/main/templates/index.html): `templates/index.html`

### Plant Recognition

- [Recognizer Page](https://github.com/maryaylla/arandukaa-cearacien/blob/main/templates/reconhecedor.html): `templates/reconhecedor.html`
- [Browser Recognizer](https://github.com/maryaylla/arandukaa-cearacien/blob/main/static/js/reconhecer.js): `static/js/reconhecer.js`
- [Camera Capture](https://github.com/maryaylla/arandukaa-cearacien/blob/main/static/js/camera.js): `static/js/camera.js`
- **Hosted Gradio AI**
- [Result Page](https://github.com/maryaylla/arandukaa-cearacien/blob/main/templates/resultado.html): `templates/resultado.html`
- [Local Classifier](https://github.com/maryaylla/arandukaa-cearacien/blob/main/app.py): `app.py`
- [Keras Model](https://github.com/maryaylla/arandukaa-cearacien/blob/main/ia-models/keras_model.h5): `ia-models/keras_model.h5`
- [Class Labels](https://github.com/maryaylla/arandukaa-cearacien/blob/main/ia-models/labels.txt): `ia-models/labels.txt`

### Plant Catalog

- [Plant Catalog](https://github.com/maryaylla/arandukaa-cearacien/blob/main/plantas.json): `plantas.json`
- [Encyclopedia Page](https://github.com/maryaylla/arandukaa-cearacien/blob/main/templates/enciclopedia.html): `templates/enciclopedia.html`
- [Plant Detail Page](https://github.com/maryaylla/arandukaa-cearacien/blob/main/templates/planta_detalhe.html): `templates/planta_detalhe.html`

### Information Pages

- [About Page](https://github.com/maryaylla/arandukaa-cearacien/blob/main/templates/sobre.html): `templates/sobre.html`
- [Impact Page](https://github.com/maryaylla/arandukaa-cearacien/blob/main/templates/impacto.html): `templates/impacto.html`

### Other components

- **Visitor**

## Connections

- Visitor → Flask Routes: requests pages
- Flask Routes → Home Page: renders (evidence: `app.py`)
- Flask Routes → Recognizer Page: renders (evidence: `app.py`)
- Flask Routes → Encyclopedia Page: renders (evidence: `app.py`)
- Flask Routes → Plant Detail Page: renders (evidence: `app.py`)
- Flask Routes → About Page: renders (evidence: `app.py`)
- Flask Routes → Impact Page: renders (evidence: `app.py`)
- Flask Routes → Result Page: renders (evidence: `app.py`)
- Flask Routes → Plant Catalog: loads catalog (evidence: `app.py`)
- Flask Routes → Local Classifier: calls classifier (evidence: `app.py`)
- Local Classifier → Keras Model: predicts with (evidence: `app.py`)
- Local Classifier → Class Labels: reads labels (evidence: `app.py`)
- Visitor → Browser Recognizer: selects image (evidence: `static/js/reconhecer.js`)
- Browser Recognizer → Hosted Gradio AI: sends image (evidence: `static/js/reconhecer.js`)
- Hosted Gradio AI → Browser Recognizer: returns prediction (evidence: `static/js/reconhecer.js`)
- Visitor → Camera Capture: captures photo (evidence: `static/js/camera.js`)
- Camera Capture → Flask Routes: submits image
