# juancardona05/clasificador-conejos-aves architecture

> Architecture diagram of the GitHub repository juancardona05/clasificador-conejos-aves, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/juancardona05/clasificador-conejos-aves
- Repository: https://github.com/juancardona05/clasificador-conejos-aves

## Overview

This is a small browser-based classifier, not a backend application. The documented workflow starts with a user-selected image or camera frames, prepares pixels in the browser, runs a TensorFlow.js model, and displays the predicted class and confidence percentages. All implementation responsibilities map to index.html because the README identifies it as containing the interface and prediction logic; the model architecture and weights are separate files. Relationships below are based on README documentation only; no source excerpts were available.

Main entry points: [`index.html`](https://github.com/juancardona05/clasificador-conejos-aves/blob/main/index.html) (TensorFlow.js runtime), [`model.json`](https://github.com/juancardona05/clasificador-conejos-aves/blob/main/model.json) (Model architecture), [`group1-shard1of1.bin`](https://github.com/juancardona05/clasificador-conejos-aves/blob/main/group1-shard1of1.bin) (Trained weights)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_input["Image input"]
  node_image_input["Image selection<br/>[index.html]"]
  node_camera_input["Camera capture<br/>[index.html]"]
  node_preview["Canvas preview<br/>[index.html]"]
end

subgraph group_inference["Prediction"]
  node_preprocess["Pixel preprocessing<br/>[index.html]"]
  node_model_runtime["TensorFlow.js runtime<br/>[index.html]"]
  node_model_architecture["Model architecture<br/>[model.json]"]
  node_model_weights["Trained weights"]
end

subgraph group_results["Results"]
  node_interpret["Class interpretation<br/>[index.html]"]
  node_display["Prediction display<br/>[index.html]"]
end

node_user(("User"))
node_camera(("Device camera"))

node_user -->|"selects or drops"| node_image_input
node_user -->|"starts camera"| node_camera_input
node_camera -->|"provides frames"| node_camera_input
node_image_input -->|"previews image"| node_preview
node_camera_input -->|"previews frames"| node_preview
node_preview -->|"supplies pixels"| node_preprocess
node_preprocess -->|"provides tensor"| node_model_runtime
node_model_runtime -->|"loads model"| node_model_architecture
node_model_architecture -->|"references weights"| node_model_weights
node_model_runtime -->|"returns output"| node_interpret
node_interpret -->|"updates result"| node_display

click node_image_input "https://github.com/juancardona05/clasificador-conejos-aves/blob/main/index.html"
click node_camera_input "https://github.com/juancardona05/clasificador-conejos-aves/blob/main/index.html"
click node_preview "https://github.com/juancardona05/clasificador-conejos-aves/blob/main/index.html"
click node_preprocess "https://github.com/juancardona05/clasificador-conejos-aves/blob/main/index.html"
click node_model_runtime "https://github.com/juancardona05/clasificador-conejos-aves/blob/main/index.html"
click node_model_architecture "https://github.com/juancardona05/clasificador-conejos-aves/blob/main/model.json"
click node_model_weights "https://github.com/juancardona05/clasificador-conejos-aves/blob/main/group1-shard1of1.bin"
click node_interpret "https://github.com/juancardona05/clasificador-conejos-aves/blob/main/index.html"
click node_display "https://github.com/juancardona05/clasificador-conejos-aves/blob/main/index.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_image_input,node_camera_input,node_preview,node_user toneBlue
class node_preprocess,node_model_runtime,node_model_architecture,node_model_weights toneAmber
class node_interpret,node_display toneMint
class node_camera toneIndigo
```

## Components

### Image input

- [Image selection](https://github.com/juancardona05/clasificador-conejos-aves/blob/main/index.html): `index.html`
- [Camera capture](https://github.com/juancardona05/clasificador-conejos-aves/blob/main/index.html): `index.html`
- [Canvas preview](https://github.com/juancardona05/clasificador-conejos-aves/blob/main/index.html): `index.html`

### Prediction

- [Pixel preprocessing](https://github.com/juancardona05/clasificador-conejos-aves/blob/main/index.html): `index.html`
- [TensorFlow.js runtime](https://github.com/juancardona05/clasificador-conejos-aves/blob/main/index.html): `index.html`
- [Model architecture](https://github.com/juancardona05/clasificador-conejos-aves/blob/main/model.json): `model.json`
- [Trained weights](https://github.com/juancardona05/clasificador-conejos-aves/blob/main/group1-shard1of1.bin): `group1-shard1of1.bin`

### Results

- [Class interpretation](https://github.com/juancardona05/clasificador-conejos-aves/blob/main/index.html): `index.html`
- [Prediction display](https://github.com/juancardona05/clasificador-conejos-aves/blob/main/index.html): `index.html`

### Other components

- **User**
- **Device camera**

## Connections

- User → Image selection: selects or drops (evidence: `README.md`)
- User → Camera capture: starts camera (evidence: `README.md`)
- Device camera → Camera capture: provides frames (evidence: `README.md`)
- Image selection → Canvas preview: previews image (evidence: `README.md`)
- Camera capture → Canvas preview: previews frames (evidence: `README.md`)
- Canvas preview → Pixel preprocessing: supplies pixels (evidence: `README.md`)
- Pixel preprocessing → TensorFlow.js runtime: provides tensor (evidence: `README.md`)
- TensorFlow.js runtime → Model architecture: loads model (evidence: `README.md`)
- Model architecture → Trained weights: references weights (evidence: `README.md`)
- TensorFlow.js runtime → Class interpretation: returns output (evidence: `README.md`)
- Class interpretation → Prediction display: updates result (evidence: `README.md`)
