# soummo19/majorproject architecture

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

- Interactive diagram: https://gitdiagram.com/soummo19/majorproject
- Repository: https://github.com/soummo19/majorproject

## Overview

Krishi4 appears to be an Android plant-disease classifier: its app contains a TensorFlow Lite model and labels for four disease classes. The likely user-to-result path is through the Android app and on-device inference. MainActivity and the model assets were not excerpted, and the README documents no workflow, so their connections are shown as unverified rather than asserted. Training artifacts and model-conversion tooling are not part of the runtime map.

Main entry points: [`krishi4/app/src/main/java/com/example/krishi4/MainActivity.kt`](https://github.com/soummo19/majorproject/blob/main/krishi4/app/src/main/java/com/example/krishi4/MainActivity.kt) (App screen), [`krishi4/app/src/main/ml/lite_mode.tflite`](https://github.com/soummo19/majorproject/blob/main/krishi4/app/src/main/ml/lite_mode.tflite) (Disease classifier), [`krishi4/app/src/main/assets/labels.txt`](https://github.com/soummo19/majorproject/blob/main/krishi4/app/src/main/assets/labels.txt) (Class labels)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_android["Android app"]
  node_app["App screen<br/>[MainActivity.kt]"]
end

subgraph group_inference["On-device classification"]
  node_classifier{{"Disease classifier<br/>[lite_mode.tflite]"}}
  node_labels["Class labels<br/>[labels.txt]"]
end

node_farmer(("App user"))

node_farmer -.->|"uses"| node_app
node_app -.->|"runs inference"| node_classifier
node_app -.->|"reads labels"| node_labels

click node_app "https://github.com/soummo19/majorproject/blob/main/krishi4/app/src/main/java/com/example/krishi4/MainActivity.kt"
click node_classifier "https://github.com/soummo19/majorproject/blob/main/krishi4/app/src/main/ml/lite_mode.tflite"
click node_labels "https://github.com/soummo19/majorproject/blob/main/krishi4/app/src/main/assets/labels.txt"

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_app,node_farmer toneBlue
class node_classifier,node_labels toneAmber
```

## Components

### Android app

- [App screen](https://github.com/soummo19/majorproject/blob/main/krishi4/app/src/main/java/com/example/krishi4/MainActivity.kt): `krishi4/app/src/main/java/com/example/krishi4/MainActivity.kt`

### On-device classification

- [Disease classifier](https://github.com/soummo19/majorproject/blob/main/krishi4/app/src/main/ml/lite_mode.tflite): `krishi4/app/src/main/ml/lite_mode.tflite`
- [Class labels](https://github.com/soummo19/majorproject/blob/main/krishi4/app/src/main/assets/labels.txt): `krishi4/app/src/main/assets/labels.txt`

### Other components

- **App user**

## Connections

- App user → App screen: uses
- App screen → Disease classifier: runs inference
- App screen → Class labels: reads labels
