02 Urban Elements Spatial Database
Urban_Image_Spatial_Database
1. Urban video input layer: Urban Image Source
2. YOLO detection layer: Object Detection
05_label_translation_dictionary.csv
04_design_trigger_database.csv
3. Spatial Grid Layer: 20 × 12 Video-Frame Grid
Each cell represents a spatial location within the video frame.
When YOLO detects an object, the code calculates the centre point of the bounding box:
It then determines which grid cell this centre point falls within.
4. Grid Cell Data Aggregation Layer: Spatial Evidence Aggregation
12_interactive_cell_spatial_database_METAPHOR_EN.html
Dominant category: Buildings
Across all video frames, there are 389 objects detected by YOLO within this cell; these detections are distributed across 318 frames; the most frequent and consistent category is ‘Buildings’.
5. Database Semantic Scoring Layer: Database Scoring
Correlates the YOLO results for each cell with the database.
database_score = object_density × class_to_theme_weight × semantic_similarity × spatial_context_weight
Theology / Threshold: 0.4856
Language / Metaphor: 0.0673
Law / Order Reference: 0.1394
Social / Gathering: 0.0024
6. Spatial Module Translation Layer: Spatial Module Translation
Converts each cell into a spatial module based on its dominant category and dominant database.
7. Blender Parameter Generation Layer: Geometry Parameters
Rows / Columns→ X / Y positions
Module Type→ Geometric Type
Number of Objects→ Scale / Dimensions
Database Strength→ Height / Thickness / Elevation
Dominant Force→ Morphological Behaviour
Adjacent Cells→ Rotation / Continuity / Direction