# rmsofficialsyt/computervision-citimart-stores architecture

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

- Interactive diagram: https://gitdiagram.com/rmsofficialsyt/computervision-citimart-stores
- Repository: https://github.com/rmsofficialsyt/computervision-citimart-stores

## Overview

RetailMind is presented as a physical-retail analytics platform. Its principal workflow turns camera video into customer tracking and behavioral insights, alongside separate inventory, layout, and recommendation capabilities; analytics and visualization present results. The README documents these relationships and capabilities, while the excerpts confirm selected implementations, including video callbacks, inventory detection/storage, recommendation inference, and dataset persistence. Connections between unsampled modules are limited to README-described flows; the tree provides no API or deployment-service implementation to map.

Main entry points: [`core/inventory_manager.py`](https://github.com/rmsofficialsyt/computervision-citimart-stores/blob/main/core/inventory_manager.py) (Inventory intelligence), [`core/customer_tracker.py`](https://github.com/rmsofficialsyt/computervision-citimart-stores/blob/main/core/customer_tracker.py) (Customer tracking), [`core/behavior_analyzer.py`](https://github.com/rmsofficialsyt/computervision-citimart-stores/blob/main/core/behavior_analyzer.py) (Behavior analysis), [`utils/metrics_calculator.py`](https://github.com/rmsofficialsyt/computervision-citimart-stores/blob/main/utils/metrics_calculator.py) (Metrics calculation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ingestion["Data ingestion"]
  node_video["Video processing<br/>[video_processor.py]"]
  node_processor["Data processing<br/>[data_processor.py]"]
  node_datasets[("Dataset storage<br/>[dataset_manager.py]")]
end

subgraph group_intelligence["Retail intelligence"]
  node_tracking["Customer tracking"]
  node_behavior["Behavior analysis"]
  node_inventory["Inventory intelligence"]
  node_layout["Layout optimization"]
  node_recommendations["Recommendations"]
end

subgraph group_models["Model components"]
  node_customer_model["Customer models<br/>[customer_models.py]"]
  node_product_model["Product models<br/>[product_models.py]"]
  node_recommendation_model["Recommendation model"]
end

subgraph group_analytics["Analytics and reporting"]
  node_metrics["Metrics calculation"]
  node_reports["Report generation"]
  node_visualization["Visualization<br/>[visualization.py]"]
  node_config["Configuration<br/>[config_loader.py]"]
end

node_cameras(("Camera feeds"))
node_pos_iot(("POS and IoT"))
node_dashboards["Dashboards and APIs"]

node_cameras -->|"supply frames"| node_video
node_pos_iot -->|"supply data"| node_processor
node_video -->|"process frames"| node_tracking
node_tracking -->|"analyze movement"| node_behavior
node_tracking -->|"detect customers"| node_customer_model
node_behavior -->|"predict behavior"| node_customer_model
node_processor -.->|"persist datasets"| node_datasets
node_inventory -.->|"detect products"| node_product_model
node_inventory -.->|"store shelf data"| node_datasets
node_layout -->|"visualize placements"| node_visualization
node_recommendations -.->|"infer recommendations"| node_recommendation_model
node_behavior -->|"calculate insights"| node_metrics
node_inventory -->|"measure inventory"| node_metrics
node_metrics -.->|"summarize metrics"| node_reports
node_reports -->|"present reports"| node_dashboards
node_visualization -->|"present visualizations"| node_dashboards

click node_video "https://github.com/rmsofficialsyt/computervision-citimart-stores/blob/main/data/video_processor.py"
click node_processor "https://github.com/rmsofficialsyt/computervision-citimart-stores/blob/main/data/data_processor.py"
click node_datasets "https://github.com/rmsofficialsyt/computervision-citimart-stores/blob/main/data/dataset_manager.py"
click node_tracking "https://github.com/rmsofficialsyt/computervision-citimart-stores/blob/main/core/customer_tracker.py"
click node_behavior "https://github.com/rmsofficialsyt/computervision-citimart-stores/blob/main/core/behavior_analyzer.py"
click node_inventory "https://github.com/rmsofficialsyt/computervision-citimart-stores/blob/main/core/inventory_manager.py"
click node_layout "https://github.com/rmsofficialsyt/computervision-citimart-stores/blob/main/core/layout_optimizer.py"
click node_recommendations "https://github.com/rmsofficialsyt/computervision-citimart-stores/blob/main/core/recommendation_engine.py"
click node_customer_model "https://github.com/rmsofficialsyt/computervision-citimart-stores/blob/main/models/customer_models.py"
click node_product_model "https://github.com/rmsofficialsyt/computervision-citimart-stores/blob/main/models/product_models.py"
click node_recommendation_model "https://github.com/rmsofficialsyt/computervision-citimart-stores/blob/main/models/recommendation_models.py"
click node_metrics "https://github.com/rmsofficialsyt/computervision-citimart-stores/blob/main/utils/metrics_calculator.py"
click node_reports "https://github.com/rmsofficialsyt/computervision-citimart-stores/blob/main/utils/report_generator.py"
click node_visualization "https://github.com/rmsofficialsyt/computervision-citimart-stores/blob/main/utils/visualization.py"
click node_config "https://github.com/rmsofficialsyt/computervision-citimart-stores/blob/main/utils/config_loader.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_video,node_processor,node_datasets toneBlue
class node_tracking,node_behavior,node_inventory,node_layout,node_recommendations toneAmber
class node_customer_model,node_product_model,node_recommendation_model,node_dashboards toneMint
class node_metrics,node_reports,node_visualization,node_config toneRose
class node_cameras,node_pos_iot toneIndigo
```

## Components

### Data ingestion

- [Video processing](https://github.com/rmsofficialsyt/computervision-citimart-stores/blob/main/data/video_processor.py): `data/video_processor.py`
- [Data processing](https://github.com/rmsofficialsyt/computervision-citimart-stores/blob/main/data/data_processor.py): `data/data_processor.py`
- [Dataset storage](https://github.com/rmsofficialsyt/computervision-citimart-stores/blob/main/data/dataset_manager.py): `data/dataset_manager.py`

### Retail intelligence

- [Customer tracking](https://github.com/rmsofficialsyt/computervision-citimart-stores/blob/main/core/customer_tracker.py): `core/customer_tracker.py`
- [Behavior analysis](https://github.com/rmsofficialsyt/computervision-citimart-stores/blob/main/core/behavior_analyzer.py): `core/behavior_analyzer.py`
- [Inventory intelligence](https://github.com/rmsofficialsyt/computervision-citimart-stores/blob/main/core/inventory_manager.py): `core/inventory_manager.py`
- [Layout optimization](https://github.com/rmsofficialsyt/computervision-citimart-stores/blob/main/core/layout_optimizer.py): `core/layout_optimizer.py`
- [Recommendations](https://github.com/rmsofficialsyt/computervision-citimart-stores/blob/main/core/recommendation_engine.py): `core/recommendation_engine.py`

### Model components

- [Customer models](https://github.com/rmsofficialsyt/computervision-citimart-stores/blob/main/models/customer_models.py): `models/customer_models.py`
- [Product models](https://github.com/rmsofficialsyt/computervision-citimart-stores/blob/main/models/product_models.py): `models/product_models.py`
- [Recommendation model](https://github.com/rmsofficialsyt/computervision-citimart-stores/blob/main/models/recommendation_models.py): `models/recommendation_models.py`

### Analytics and reporting

- [Metrics calculation](https://github.com/rmsofficialsyt/computervision-citimart-stores/blob/main/utils/metrics_calculator.py): `utils/metrics_calculator.py`
- [Report generation](https://github.com/rmsofficialsyt/computervision-citimart-stores/blob/main/utils/report_generator.py): `utils/report_generator.py`
- [Visualization](https://github.com/rmsofficialsyt/computervision-citimart-stores/blob/main/utils/visualization.py): `utils/visualization.py`
- [Configuration](https://github.com/rmsofficialsyt/computervision-citimart-stores/blob/main/utils/config_loader.py): `utils/config_loader.py`

### Other components

- **Camera feeds**
- **POS and IoT**
- **Dashboards and APIs**

## Connections

- Camera feeds → Video processing: supply frames (evidence: `README.md`)
- POS and IoT → Data processing: supply data (evidence: `README.md`)
- Video processing → Customer tracking: process frames (evidence: `README.md`)
- Customer tracking → Behavior analysis: analyze movement (evidence: `README.md`)
- Customer tracking → Customer models: detect customers (evidence: `README.md`)
- Behavior analysis → Customer models: predict behavior (evidence: `README.md`)
- Data processing → Dataset storage: persist datasets
- Inventory intelligence → Product models: detect products
- Inventory intelligence → Dataset storage: store shelf data
- Layout optimization → Visualization: visualize placements (evidence: `README.md`)
- Recommendations → Recommendation model: infer recommendations
- Behavior analysis → Metrics calculation: calculate insights (evidence: `README.md`)
- Inventory intelligence → Metrics calculation: measure inventory (evidence: `README.md`)
- Metrics calculation → Report generation: summarize metrics
- Report generation → Dashboards and APIs: present reports (evidence: `README.md`)
- Visualization → Dashboards and APIs: present visualizations (evidence: `README.md`)
