# marouane53/geoint architecture

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

- Interactive diagram: https://gitdiagram.com/marouane53/geoint
- Repository: https://github.com/marouane53/geoint

## Overview

GeoInt is an agent skill for geolocating images through expert scene interpretation, web research, and local analysis tools. The intended workflow starts with an image and a written initial assessment, gathers clues and candidate locations, then tests candidates with maps and street-level imagery before recording a report and, once known, a score. The README documents the main tool capabilities and some tool-to-tool relationships; where implementation excerpts were unavailable, the graph avoids inferring internal calls.

Main entry points: [`scripts/recon.py`](https://github.com/marouane53/geoint/blob/main/scripts/recon.py) (Local first pass), [`scripts/board.py`](https://github.com/marouane53/geoint/blob/main/scripts/board.py) (Candidate ledger), [`scripts/pano.py`](https://github.com/marouane53/geoint/blob/main/scripts/pano.py) (Street-level imagery), [`scripts/_net.py`](https://github.com/marouane53/geoint/blob/main/scripts/_net.py) (HTTP helpers)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Investigation workflow"]
  node_image["Photo or frame"]
  node_skill["Investigation method<br/>[SKILL.md]"]
  node_recon["Local first pass<br/>[recon.py]"]
  node_board["Candidate ledger<br/>[board.py]"]
  node_archive[("Photo archive and scoring<br/>[photo_session.py]")]
end

subgraph group_clues["Clue analysis"]
  node_meta["Image metadata<br/>[meta.py]"]
  node_intake["Image intake<br/>[intake.py]"]
  node_ocr["Text extraction<br/>[ocr.py]"]
  node_textgeo["Text to places<br/>[textgeo.py]"]
  node_detect["Object detection<br/>[detect.py]"]
  node_calib["Camera calibration<br/>[calib.py]"]
  node_prior["World location prior<br/>[prior.py]"]
  node_clueslib["Clue library<br/>[clues.py]"]
end

subgraph group_ground["Location verification"]
  node_web["Web research"]
  node_maps["Map and geometry tools<br/>[geo.py]"]
  node_osm["OpenStreetMap queries<br/>[osm.py]"]
  node_satellite["Satellite imagery<br/>[tiles.py]"]
  node_street["Street-level imagery<br/>[pano.py]"]
  node_gsv["Google Street View<br/>[gsv.py]"]
  node_baidu["Baidu panoramas<br/>[baidu_pano.py]"]
  node_terrain["Terrain analysis<br/>[terrain.py]"]
end

subgraph group_runtime["Shared runtime"]
  node_prior_model["StreetCLIP and GeoCLIP<br/>[prior.py]"]
  node_megaloc["MegaLoc embeddings<br/>[_megaloc.py]"]
  node_net["HTTP helpers<br/>[_net.py]"]
end

node_investigator(("Investigator"))

node_investigator -->|"investigates"| node_image
node_investigator -->|"follows method"| node_skill
node_skill -->|"guides research"| node_web
node_skill -->|"uses tools"| node_recon
node_image -->|"analyzed by"| node_recon
node_recon -->|"runs"| node_meta
node_recon -->|"runs"| node_intake
node_recon -->|"runs"| node_ocr
node_recon -->|"runs"| node_textgeo
node_recon -->|"runs"| node_detect
node_recon -->|"runs"| node_calib
node_recon -->|"runs"| node_prior
node_textgeo -->|"uses clues"| node_clueslib
node_textgeo -.->|"adds candidates"| node_board
node_web -.->|"informs candidates"| node_board
node_investigator -->|"records evidence"| node_board
node_board -->|"queries locations"| node_osm
node_board -->|"checks geometry"| node_maps
node_investigator -->|"examines imagery"| node_satellite
node_investigator -->|"checks panoramas"| node_street
node_street -->|"uses provider"| node_gsv
node_street -->|"uses provider"| node_baidu
node_investigator -->|"checks skyline"| node_terrain
node_investigator -->|"starts and finishes"| node_archive
node_archive -->|"reports score"| node_investigator
node_prior -->|"uses models"| node_prior_model
node_recon -.->|"uses HTTP"| node_net
node_osm -->|"uses HTTP"| node_net
node_gsv -->|"uses HTTP"| node_net
node_baidu -->|"uses HTTP"| node_net
node_street -.->|"swept by"| node_megaloc

click node_skill "https://github.com/marouane53/geoint/blob/main/SKILL.md"
click node_recon "https://github.com/marouane53/geoint/blob/main/scripts/recon.py"
click node_meta "https://github.com/marouane53/geoint/blob/main/scripts/meta.py"
click node_intake "https://github.com/marouane53/geoint/blob/main/scripts/intake.py"
click node_ocr "https://github.com/marouane53/geoint/blob/main/scripts/ocr.py"
click node_textgeo "https://github.com/marouane53/geoint/blob/main/scripts/textgeo.py"
click node_detect "https://github.com/marouane53/geoint/blob/main/scripts/detect.py"
click node_calib "https://github.com/marouane53/geoint/blob/main/scripts/calib.py"
click node_prior "https://github.com/marouane53/geoint/blob/main/scripts/prior.py"
click node_clueslib "https://github.com/marouane53/geoint/blob/main/scripts/clues.py"
click node_board "https://github.com/marouane53/geoint/blob/main/scripts/board.py"
click node_archive "https://github.com/marouane53/geoint/blob/main/scripts/photo_session.py"
click node_maps "https://github.com/marouane53/geoint/blob/main/scripts/geo.py"
click node_osm "https://github.com/marouane53/geoint/blob/main/scripts/osm.py"
click node_satellite "https://github.com/marouane53/geoint/blob/main/scripts/tiles.py"
click node_street "https://github.com/marouane53/geoint/blob/main/scripts/pano.py"
click node_gsv "https://github.com/marouane53/geoint/blob/main/scripts/gsv.py"
click node_baidu "https://github.com/marouane53/geoint/blob/main/scripts/baidu_pano.py"
click node_terrain "https://github.com/marouane53/geoint/blob/main/scripts/terrain.py"
click node_prior_model "https://github.com/marouane53/geoint/blob/main/scripts/prior.py"
click node_megaloc "https://github.com/marouane53/geoint/blob/main/scripts/_megaloc.py"
click node_net "https://github.com/marouane53/geoint/blob/main/scripts/_net.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_image,node_skill,node_recon,node_board,node_archive toneBlue
class node_meta,node_intake,node_ocr,node_textgeo,node_detect,node_calib,node_prior,node_clueslib toneAmber
class node_web,node_maps,node_osm,node_satellite,node_street,node_gsv,node_baidu,node_terrain toneMint
class node_prior_model,node_megaloc,node_net toneRose
class node_investigator toneIndigo
```

## Components

### Investigation workflow

- **Photo or frame**
- [Investigation method](https://github.com/marouane53/geoint/blob/main/SKILL.md): `SKILL.md`
- [Local first pass](https://github.com/marouane53/geoint/blob/main/scripts/recon.py): `scripts/recon.py`
- [Candidate ledger](https://github.com/marouane53/geoint/blob/main/scripts/board.py): `scripts/board.py`
- [Photo archive and scoring](https://github.com/marouane53/geoint/blob/main/scripts/photo_session.py): `scripts/photo_session.py`

### Clue analysis

- [Image metadata](https://github.com/marouane53/geoint/blob/main/scripts/meta.py): `scripts/meta.py`
- [Image intake](https://github.com/marouane53/geoint/blob/main/scripts/intake.py): `scripts/intake.py`
- [Text extraction](https://github.com/marouane53/geoint/blob/main/scripts/ocr.py): `scripts/ocr.py`
- [Text to places](https://github.com/marouane53/geoint/blob/main/scripts/textgeo.py): `scripts/textgeo.py`
- [Object detection](https://github.com/marouane53/geoint/blob/main/scripts/detect.py): `scripts/detect.py`
- [Camera calibration](https://github.com/marouane53/geoint/blob/main/scripts/calib.py): `scripts/calib.py`
- [World location prior](https://github.com/marouane53/geoint/blob/main/scripts/prior.py): `scripts/prior.py`
- [Clue library](https://github.com/marouane53/geoint/blob/main/scripts/clues.py): `scripts/clues.py`

### Location verification

- **Web research**
- [Map and geometry tools](https://github.com/marouane53/geoint/blob/main/scripts/geo.py): `scripts/geo.py`
- [OpenStreetMap queries](https://github.com/marouane53/geoint/blob/main/scripts/osm.py): `scripts/osm.py`
- [Satellite imagery](https://github.com/marouane53/geoint/blob/main/scripts/tiles.py): `scripts/tiles.py`
- [Street-level imagery](https://github.com/marouane53/geoint/blob/main/scripts/pano.py): `scripts/pano.py`
- [Google Street View](https://github.com/marouane53/geoint/blob/main/scripts/gsv.py): `scripts/gsv.py`
- [Baidu panoramas](https://github.com/marouane53/geoint/blob/main/scripts/baidu_pano.py): `scripts/baidu_pano.py`
- [Terrain analysis](https://github.com/marouane53/geoint/blob/main/scripts/terrain.py): `scripts/terrain.py`

### Shared runtime

- [StreetCLIP and GeoCLIP](https://github.com/marouane53/geoint/blob/main/scripts/prior.py): `scripts/prior.py`
- [MegaLoc embeddings](https://github.com/marouane53/geoint/blob/main/scripts/_megaloc.py): `scripts/_megaloc.py`
- [HTTP helpers](https://github.com/marouane53/geoint/blob/main/scripts/_net.py): `scripts/_net.py`

### Other components

- **Investigator**

## Connections

- Investigator → Photo or frame: investigates (evidence: `README.md`)
- Investigator → Investigation method: follows method (evidence: `README.md`)
- Investigation method → Web research: guides research (evidence: `README.md`)
- Investigation method → Local first pass: uses tools (evidence: `README.md`)
- Photo or frame → Local first pass: analyzed by (evidence: `README.md`)
- Local first pass → Image metadata: runs (evidence: `README.md`)
- Local first pass → Image intake: runs (evidence: `README.md`)
- Local first pass → Text extraction: runs (evidence: `README.md`)
- Local first pass → Text to places: runs (evidence: `README.md`)
- Local first pass → Object detection: runs (evidence: `README.md`)
- Local first pass → Camera calibration: runs (evidence: `README.md`)
- Local first pass → World location prior: runs (evidence: `README.md`)
- Text to places → Clue library: uses clues (evidence: `README.md`)
- Text to places → Candidate ledger: adds candidates
- Web research → Candidate ledger: informs candidates
- Investigator → Candidate ledger: records evidence (evidence: `README.md`)
- Candidate ledger → OpenStreetMap queries: queries locations (evidence: `README.md`)
- Candidate ledger → Map and geometry tools: checks geometry (evidence: `README.md`)
- Investigator → Satellite imagery: examines imagery (evidence: `README.md`)
- Investigator → Street-level imagery: checks panoramas (evidence: `README.md`)
- Street-level imagery → Google Street View: uses provider (evidence: `README.md`)
- Street-level imagery → Baidu panoramas: uses provider (evidence: `README.md`)
- Investigator → Terrain analysis: checks skyline (evidence: `README.md`)
- Investigator → Photo archive and scoring: starts and finishes (evidence: `README.md`)
- Photo archive and scoring → Investigator: reports score (evidence: `README.md`)
- World location prior → StreetCLIP and GeoCLIP: uses models (evidence: `README.md`)
- Local first pass → HTTP helpers: uses HTTP
- OpenStreetMap queries → HTTP helpers: uses HTTP (evidence: `scripts/osm.py`)
- Google Street View → HTTP helpers: uses HTTP (evidence: `scripts/gsv.py`)
- Baidu panoramas → HTTP helpers: uses HTTP (evidence: `scripts/baidu_pano.py`)
- Street-level imagery → MegaLoc embeddings: swept by
