# aihdproduction/nomivox architecture

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

- Interactive diagram: https://gitdiagram.com/aihdproduction/nomivox
- Repository: https://github.com/aihdproduction/nomivox

## Overview

Nomivox is a local desktop classifier that transfers SAM 3 image detections onto E57 point clouds and exports classified LAS/LAZ. The main workflow runs through the pipeline coordinator: inspect and cache scan data, prepare camera views, determine scene settings, segment objects and special mirror/glass regions, combine spatial votes, and export original points with reports. The graph also shows the GUI, segmentation cache, geometry and persistence layers. Relationships are based on the README and SOURCE INDEX references; unsampled implementation details are not inferred.

Main entry points: [`e57cls/pipeline/run.py`](https://github.com/aihdproduction/nomivox/blob/main/e57cls/pipeline/run.py) (Run coordinator), [`e57cls/output/classify.py`](https://github.com/aihdproduction/nomivox/blob/main/e57cls/output/classify.py) (Point classification), [`e57cls/gui/window.py`](https://github.com/aihdproduction/nomivox/blob/main/e57cls/gui/window.py) (Desktop interface), [`e57cls/mirror/pipeline.py`](https://github.com/aihdproduction/nomivox/blob/main/e57cls/mirror/pipeline.py) (Mirror and glass)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["User interface"]
  node_launcher["Application launcher<br/>[launcher.py]"]
  node_window["Desktop interface<br/>[window.py]"]
  node_config["Run configuration<br/>[config.py]"]
  node_coordinator["Run coordinator<br/>[run.py]"]
end

subgraph group_ingest["E57 ingestion"]
  node_inspector["E57 inspection<br/>[inspector.py]"]
  node_reader["E57 reader<br/>[reader.py]"]
  node_scanstore[("Scan cache<br/>[store.py]")]
end

subgraph group_analysis["Classification"]
  node_camera["Camera geometry<br/>[cameras.py]"]
  node_imageviews["Image preparation<br/>[images.py]"]
  node_scene["Scene detection<br/>[detect.py]"]
  node_presets["Class presets<br/>[presets.py]"]
  node_sam["SAM 3 backend<br/>[backend.py]"]
  node_maskcache[("Mask cache<br/>[cache.py]")]
  node_mirror["Mirror and glass<br/>[pipeline.py]"]
  node_plane["Plane geometry<br/>[planes.py]"]
end

subgraph group_results["Voting and output"]
  node_voting[("Spatial voting<br/>[engine.py]")]
  node_fill["Geometry fill<br/>[fill.py]"]
  node_classification["Point classification<br/>[classify.py]"]
  node_las["LAS and LAZ export<br/>[las.py]"]
  node_e57out["E57 export<br/>[e57.py]"]
  node_reports["Run reports<br/>[reports.py]"]
  node_diagnostics["Geometry diagnostics<br/>[diagnostics.py]"]
end

node_user(("Classifier user"))

node_user -->|"opens"| node_launcher
node_launcher -->|"launches"| node_window
node_window -->|"sets options"| node_config
node_window -->|"starts run"| node_coordinator
node_coordinator -->|"inspects input"| node_inspector
node_coordinator -->|"reads points"| node_reader
node_inspector -->|"reads metadata"| node_reader
node_coordinator -->|"caches scans"| node_scanstore
node_coordinator -->|"projects views"| node_camera
node_coordinator -->|"prepares views"| node_imageviews
node_coordinator -->|"determines scene"| node_scene
node_coordinator -->|"selects classes"| node_presets
node_coordinator -->|"segments prompts"| node_sam
node_coordinator -->|"caches masks"| node_maskcache
node_coordinator -->|"analyzes surfaces"| node_mirror
node_mirror -->|"estimates planes"| node_plane
node_mirror -->|"requests masks"| node_sam
node_coordinator -->|"combines votes"| node_voting
node_coordinator -->|"assigns classes"| node_classification
node_classification -->|"uses decisions"| node_voting
node_classification -->|"projects points"| node_camera
node_classification -->|"applies fill"| node_fill
node_coordinator -->|"exports points"| node_las
node_coordinator -->|"exports E57"| node_e57out
node_coordinator -->|"writes reports"| node_reports
node_coordinator -->|"runs diagnostics"| node_diagnostics

click node_launcher "https://github.com/aihdproduction/nomivox/blob/main/e57cls/launcher.py"
click node_window "https://github.com/aihdproduction/nomivox/blob/main/e57cls/gui/window.py"
click node_config "https://github.com/aihdproduction/nomivox/blob/main/e57cls/pipeline/config.py"
click node_coordinator "https://github.com/aihdproduction/nomivox/blob/main/e57cls/pipeline/run.py"
click node_inspector "https://github.com/aihdproduction/nomivox/blob/main/e57cls/io/inspector.py"
click node_reader "https://github.com/aihdproduction/nomivox/blob/main/e57cls/io/reader.py"
click node_scanstore "https://github.com/aihdproduction/nomivox/blob/main/e57cls/io/store.py"
click node_camera "https://github.com/aihdproduction/nomivox/blob/main/e57cls/geometry/cameras.py"
click node_imageviews "https://github.com/aihdproduction/nomivox/blob/main/e57cls/geometry/images.py"
click node_scene "https://github.com/aihdproduction/nomivox/blob/main/e57cls/scene/detect.py"
click node_presets "https://github.com/aihdproduction/nomivox/blob/main/e57cls/scene/presets.py"
click node_sam "https://github.com/aihdproduction/nomivox/blob/main/e57cls/seg/backend.py"
click node_maskcache "https://github.com/aihdproduction/nomivox/blob/main/e57cls/seg/cache.py"
click node_mirror "https://github.com/aihdproduction/nomivox/blob/main/e57cls/mirror/pipeline.py"
click node_plane "https://github.com/aihdproduction/nomivox/blob/main/e57cls/geometry/planes.py"
click node_voting "https://github.com/aihdproduction/nomivox/blob/main/e57cls/vote/engine.py"
click node_fill "https://github.com/aihdproduction/nomivox/blob/main/e57cls/geometry/fill.py"
click node_classification "https://github.com/aihdproduction/nomivox/blob/main/e57cls/output/classify.py"
click node_las "https://github.com/aihdproduction/nomivox/blob/main/e57cls/output/las.py"
click node_e57out "https://github.com/aihdproduction/nomivox/blob/main/e57cls/output/e57.py"
click node_reports "https://github.com/aihdproduction/nomivox/blob/main/e57cls/output/reports.py"
click node_diagnostics "https://github.com/aihdproduction/nomivox/blob/main/e57cls/geometry/diagnostics.py"

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_launcher,node_window,node_config,node_coordinator,node_user toneBlue
class node_inspector,node_reader,node_scanstore toneAmber
class node_camera,node_imageviews,node_scene,node_presets,node_sam,node_maskcache,node_mirror,node_plane toneMint
class node_voting,node_fill,node_classification,node_las,node_e57out,node_reports,node_diagnostics toneRose
```

## Components

### User interface

- [Application launcher](https://github.com/aihdproduction/nomivox/blob/main/e57cls/launcher.py): `e57cls/launcher.py`
- [Desktop interface](https://github.com/aihdproduction/nomivox/blob/main/e57cls/gui/window.py): `e57cls/gui/window.py`
- [Run configuration](https://github.com/aihdproduction/nomivox/blob/main/e57cls/pipeline/config.py): `e57cls/pipeline/config.py`
- [Run coordinator](https://github.com/aihdproduction/nomivox/blob/main/e57cls/pipeline/run.py): `e57cls/pipeline/run.py`

### E57 ingestion

- [E57 inspection](https://github.com/aihdproduction/nomivox/blob/main/e57cls/io/inspector.py): `e57cls/io/inspector.py`
- [E57 reader](https://github.com/aihdproduction/nomivox/blob/main/e57cls/io/reader.py): `e57cls/io/reader.py`
- [Scan cache](https://github.com/aihdproduction/nomivox/blob/main/e57cls/io/store.py): `e57cls/io/store.py`

### Classification

- [Camera geometry](https://github.com/aihdproduction/nomivox/blob/main/e57cls/geometry/cameras.py): `e57cls/geometry/cameras.py`
- [Image preparation](https://github.com/aihdproduction/nomivox/blob/main/e57cls/geometry/images.py): `e57cls/geometry/images.py`
- [Scene detection](https://github.com/aihdproduction/nomivox/blob/main/e57cls/scene/detect.py): `e57cls/scene/detect.py`
- [Class presets](https://github.com/aihdproduction/nomivox/blob/main/e57cls/scene/presets.py): `e57cls/scene/presets.py`
- [SAM 3 backend](https://github.com/aihdproduction/nomivox/blob/main/e57cls/seg/backend.py): `e57cls/seg/backend.py`
- [Mask cache](https://github.com/aihdproduction/nomivox/blob/main/e57cls/seg/cache.py): `e57cls/seg/cache.py`
- [Mirror and glass](https://github.com/aihdproduction/nomivox/blob/main/e57cls/mirror/pipeline.py): `e57cls/mirror/pipeline.py`
- [Plane geometry](https://github.com/aihdproduction/nomivox/blob/main/e57cls/geometry/planes.py): `e57cls/geometry/planes.py`

### Voting and output

- [Spatial voting](https://github.com/aihdproduction/nomivox/blob/main/e57cls/vote/engine.py): `e57cls/vote/engine.py`
- [Geometry fill](https://github.com/aihdproduction/nomivox/blob/main/e57cls/geometry/fill.py): `e57cls/geometry/fill.py`
- [Point classification](https://github.com/aihdproduction/nomivox/blob/main/e57cls/output/classify.py): `e57cls/output/classify.py`
- [LAS and LAZ export](https://github.com/aihdproduction/nomivox/blob/main/e57cls/output/las.py): `e57cls/output/las.py`
- [E57 export](https://github.com/aihdproduction/nomivox/blob/main/e57cls/output/e57.py): `e57cls/output/e57.py`
- [Run reports](https://github.com/aihdproduction/nomivox/blob/main/e57cls/output/reports.py): `e57cls/output/reports.py`
- [Geometry diagnostics](https://github.com/aihdproduction/nomivox/blob/main/e57cls/geometry/diagnostics.py): `e57cls/geometry/diagnostics.py`

### Other components

- **Classifier user**

## Connections

- Classifier user → Application launcher: opens (evidence: `README.md`)
- Application launcher → Desktop interface: launches (evidence: `e57cls/launcher.py`)
- Desktop interface → Run configuration: sets options (evidence: `e57cls/gui/window.py`)
- Desktop interface → Run coordinator: starts run (evidence: `e57cls/gui/window.py`)
- Run coordinator → E57 inspection: inspects input (evidence: `e57cls/pipeline/run.py`)
- Run coordinator → E57 reader: reads points (evidence: `e57cls/pipeline/run.py`)
- E57 inspection → E57 reader: reads metadata (evidence: `e57cls/io/inspector.py`)
- Run coordinator → Scan cache: caches scans (evidence: `e57cls/pipeline/run.py`)
- Run coordinator → Camera geometry: projects views (evidence: `e57cls/pipeline/run.py`)
- Run coordinator → Image preparation: prepares views (evidence: `e57cls/pipeline/run.py`)
- Run coordinator → Scene detection: determines scene (evidence: `README.md`)
- Run coordinator → Class presets: selects classes (evidence: `e57cls/pipeline/run.py`)
- Run coordinator → SAM 3 backend: segments prompts (evidence: `e57cls/pipeline/run.py`)
- Run coordinator → Mask cache: caches masks (evidence: `e57cls/pipeline/run.py`)
- Run coordinator → Mirror and glass: analyzes surfaces (evidence: `e57cls/pipeline/run.py`)
- Mirror and glass → Plane geometry: estimates planes (evidence: `e57cls/mirror/pipeline.py`)
- Mirror and glass → SAM 3 backend: requests masks (evidence: `e57cls/mirror/pipeline.py`)
- Run coordinator → Spatial voting: combines votes (evidence: `e57cls/pipeline/run.py`)
- Run coordinator → Point classification: assigns classes (evidence: `e57cls/pipeline/run.py`)
- Point classification → Spatial voting: uses decisions (evidence: `e57cls/output/classify.py`)
- Point classification → Camera geometry: projects points (evidence: `e57cls/output/classify.py`)
- Point classification → Geometry fill: applies fill (evidence: `e57cls/output/classify.py`)
- Run coordinator → LAS and LAZ export: exports points (evidence: `e57cls/pipeline/run.py`)
- Run coordinator → E57 export: exports E57 (evidence: `e57cls/pipeline/run.py`)
- Run coordinator → Run reports: writes reports (evidence: `e57cls/pipeline/run.py`)
- Run coordinator → Geometry diagnostics: runs diagnostics (evidence: `e57cls/pipeline/run.py`)
