# charlesfeng0314/jev_sees architecture

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

- Interactive diagram: https://gitdiagram.com/charlesfeng0314/jev_sees
- Repository: https://github.com/charlesfeng0314/jev_sees

## Overview

JEV Sees turns image, video, or RGB-D input into per-object answers from JEV. The main workflow is local perception, stable object tracking, contextualized questions, and structured answers, with optional annotated media and file exports. The graph includes the documented RGB-D, model, and answer-type capabilities. Some internal call details and output wiring are not shown in the excerpts, so those links are omitted or marked unverified rather than inferred.

Main entry points: [`jev_sees/session.py`](https://github.com/charlesfeng0314/jev_sees/blob/main/jev_sees/session.py) (Sees session), [`jev_sees/perceive.py`](https://github.com/charlesfeng0314/jev_sees/blob/main/jev_sees/perceive.py) (Perception builder), [`jev_sees/runtime.py`](https://github.com/charlesfeng0314/jev_sees/blob/main/jev_sees/runtime.py) (Florence and CLIP), [`jev_sees/geometry.py`](https://github.com/charlesfeng0314/jev_sees/blob/main/jev_sees/geometry.py) (RGB-D geometry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_api["Session API"]
  node_session["Sees session<br/>[session.py]"]
end

subgraph group_vision["Local Vision"]
  node_perceive["Perception builder<br/>[perceive.py]"]
  node_geometry["RGB-D geometry<br/>[geometry.py]"]
  node_runtime["Florence and CLIP<br/>[runtime.py]"]
  node_color["Color evidence<br/>[color.py]"]
  node_paths["Model weight lookup<br/>[paths.py]"]
end

subgraph group_context["Object Context"]
  node_tracking["Stable object tracking<br/>[tracking.py]"]
  node_memory["Object memory<br/>[memory.py]"]
  node_given["JEV scene context<br/>[given_that.py]"]
end

subgraph group_answers["Answers and Output"]
  node_result["Result structure<br/>[result.py]"]
  node_report["Tables and exports<br/>[report.py]"]
  node_render["Annotated media<br/>[render.py]"]
  node_io["Media I/O<br/>[io.py]"]
end

node_user(("Application user"))
node_jev["TypeSafe JEV API"]

node_user -->|"asks about media"| node_session
node_session -->|"discovers objects"| node_perceive
node_perceive -->|"uses local models"| node_runtime
node_perceive -->|"builds RGB-D objects"| node_geometry
node_perceive -.->|"adds color evidence"| node_color
node_runtime -.->|"locates weights"| node_paths
node_session -->|"keeps IDs stable"| node_tracking
node_session -.->|"maintains object state"| node_memory
node_session -.->|"builds question context"| node_given
node_session -->|"sends JEV questions"| node_jev
node_jev -->|"returns answers"| node_session
node_session -->|"returns structured results"| node_result
node_session -->|"exports answers"| node_report
node_session -->|"annotates media"| node_render
node_session -.->|"reads media"| node_io

click node_session "https://github.com/charlesfeng0314/jev_sees/blob/main/jev_sees/session.py"
click node_perceive "https://github.com/charlesfeng0314/jev_sees/blob/main/jev_sees/perceive.py"
click node_geometry "https://github.com/charlesfeng0314/jev_sees/blob/main/jev_sees/geometry.py"
click node_runtime "https://github.com/charlesfeng0314/jev_sees/blob/main/jev_sees/runtime.py"
click node_color "https://github.com/charlesfeng0314/jev_sees/blob/main/jev_sees/color.py"
click node_paths "https://github.com/charlesfeng0314/jev_sees/blob/main/jev_sees/paths.py"
click node_tracking "https://github.com/charlesfeng0314/jev_sees/blob/main/jev_sees/tracking.py"
click node_memory "https://github.com/charlesfeng0314/jev_sees/blob/main/jev_sees/memory.py"
click node_given "https://github.com/charlesfeng0314/jev_sees/blob/main/jev_sees/given_that.py"
click node_result "https://github.com/charlesfeng0314/jev_sees/blob/main/jev_sees/result.py"
click node_report "https://github.com/charlesfeng0314/jev_sees/blob/main/jev_sees/report.py"
click node_render "https://github.com/charlesfeng0314/jev_sees/blob/main/jev_sees/render.py"
click node_io "https://github.com/charlesfeng0314/jev_sees/blob/main/jev_sees/io.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_session,node_user toneBlue
class node_perceive,node_geometry,node_runtime,node_color,node_paths toneAmber
class node_tracking,node_memory,node_given,node_jev toneMint
class node_result,node_report,node_render,node_io toneRose
```

## Components

### Session API

- [Sees session](https://github.com/charlesfeng0314/jev_sees/blob/main/jev_sees/session.py): `jev_sees/session.py`

### Local Vision

- [Perception builder](https://github.com/charlesfeng0314/jev_sees/blob/main/jev_sees/perceive.py): `jev_sees/perceive.py`
- [RGB-D geometry](https://github.com/charlesfeng0314/jev_sees/blob/main/jev_sees/geometry.py): `jev_sees/geometry.py`
- [Florence and CLIP](https://github.com/charlesfeng0314/jev_sees/blob/main/jev_sees/runtime.py): `jev_sees/runtime.py`
- [Color evidence](https://github.com/charlesfeng0314/jev_sees/blob/main/jev_sees/color.py): `jev_sees/color.py`
- [Model weight lookup](https://github.com/charlesfeng0314/jev_sees/blob/main/jev_sees/paths.py): `jev_sees/paths.py`

### Object Context

- [Stable object tracking](https://github.com/charlesfeng0314/jev_sees/blob/main/jev_sees/tracking.py): `jev_sees/tracking.py`
- [Object memory](https://github.com/charlesfeng0314/jev_sees/blob/main/jev_sees/memory.py): `jev_sees/memory.py`
- [JEV scene context](https://github.com/charlesfeng0314/jev_sees/blob/main/jev_sees/given_that.py): `jev_sees/given_that.py`

### Answers and Output

- [Result structure](https://github.com/charlesfeng0314/jev_sees/blob/main/jev_sees/result.py): `jev_sees/result.py`
- [Tables and exports](https://github.com/charlesfeng0314/jev_sees/blob/main/jev_sees/report.py): `jev_sees/report.py`
- [Annotated media](https://github.com/charlesfeng0314/jev_sees/blob/main/jev_sees/render.py): `jev_sees/render.py`
- [Media I/O](https://github.com/charlesfeng0314/jev_sees/blob/main/jev_sees/io.py): `jev_sees/io.py`

### Other components

- **Application user**
- **TypeSafe JEV API**

## Connections

- Application user → Sees session: asks about media (evidence: `README.md`)
- Sees session → Perception builder: discovers objects (evidence: `README.md`)
- Perception builder → Florence and CLIP: uses local models (evidence: `README.md`)
- Perception builder → RGB-D geometry: builds RGB-D objects (evidence: `README.md`)
- Perception builder → Color evidence: adds color evidence (evidence: `jev_sees/perceive.py`)
- Florence and CLIP → Model weight lookup: locates weights (evidence: `jev_sees/runtime.py`)
- Sees session → Stable object tracking: keeps IDs stable (evidence: `README.md`)
- Sees session → Object memory: maintains object state (evidence: `jev_sees/session.py`)
- Sees session → JEV scene context: builds question context (evidence: `jev_sees/session.py`)
- Sees session → TypeSafe JEV API: sends JEV questions (evidence: `README.md`)
- TypeSafe JEV API → Sees session: returns answers (evidence: `README.md`)
- Sees session → Result structure: returns structured results (evidence: `README.md`)
- Sees session → Tables and exports: exports answers (evidence: `README.md`)
- Sees session → Annotated media: annotates media (evidence: `README.md`)
- Sees session → Media I/O: reads media (evidence: `jev_sees/session.py`)
