cyberai-1 commited on
Commit
55e6596
Β·
1 Parent(s): bb4e560
Files changed (1) hide show
  1. index.html +7 -1
index.html CHANGED
@@ -804,13 +804,19 @@ header {
804
  // ══ CLASS COLORS ════════════════════════════════════════════════════════════
805
  const COLORS = {
806
  car: '#ffb830',
 
807
  person: '#00dde0',
808
  bus: '#3d9eff',
809
  truck: '#b57bff',
810
  motorbike: '#ff4d6d',
 
811
  bicycle: '#1dffa0',
 
812
  };
813
- function clsColor(cls) { return COLORS[cls] || '#aaa'; }
 
 
 
814
 
815
  // ══ STATE ═══════════════════════════════════════════════════════════════════
816
  let allRows = []; // parsed CSV rows (all files merged)
 
804
  // ══ CLASS COLORS ════════════════════════════════════════════════════════════
805
  const COLORS = {
806
  car: '#ffb830',
807
+ vehicle: '#ffb830',
808
  person: '#00dde0',
809
  bus: '#3d9eff',
810
  truck: '#b57bff',
811
  motorbike: '#ff4d6d',
812
+ motorcycle:'#ff4d6d',
813
  bicycle: '#1dffa0',
814
+ 'traffic light': '#1dffa0',
815
  };
816
+ function classKey(cls) {
817
+ return String(cls || 'unknown').trim().toLowerCase();
818
+ }
819
+ function clsColor(cls) { return COLORS[classKey(cls)] || '#aaa'; }
820
 
821
  // ══ STATE ═══════════════════════════════════════════════════════════════════
822
  let allRows = []; // parsed CSV rows (all files merged)