Spaces:
Running
Running
speed & pcu shift to /artifacts
Browse files- frontend/vehicles.html +31 -26
frontend/vehicles.html
CHANGED
|
@@ -722,32 +722,6 @@
|
|
| 722 |
</div>
|
| 723 |
</div>
|
| 724 |
|
| 725 |
-
<!-- Speed Distribution -->
|
| 726 |
-
<div
|
| 727 |
-
class="col-span-6 xl:col-span-3 bg-white rounded-xl p-5 border border-slate-200 shadow-sm flex flex-col min-h-0">
|
| 728 |
-
<div class="flex justify-between items-center mb-2 relative">
|
| 729 |
-
<h3 class="font-bold text-slate-900 text-sm flex items-center">Speed Profile
|
| 730 |
-
<span class="info-wrap"><span class="info-btn"><i class="fa-solid fa-info"></i></span>
|
| 731 |
-
<span class="info-tip">Relative speed categories based on pixel displacement between frames. Slow/Normal/Fast are percentile-based within this video — not km/h.</span></span>
|
| 732 |
-
</h3>
|
| 733 |
-
</div>
|
| 734 |
-
<div class="flex-1 flex items-center justify-center" id="speed-stats-card">
|
| 735 |
-
<div class="text-center text-slate-300 text-xs"><i class="fa-solid fa-gauge-high text-2xl mb-2"></i><br>Available after processing</div>
|
| 736 |
-
</div>
|
| 737 |
-
</div>
|
| 738 |
-
|
| 739 |
-
<!-- PCU Summary -->
|
| 740 |
-
<div
|
| 741 |
-
class="col-span-6 xl:col-span-3 bg-white rounded-xl p-5 border border-slate-200 shadow-sm flex flex-col min-h-0">
|
| 742 |
-
<div class="flex justify-between items-center mb-2 relative">
|
| 743 |
-
<h3 class="font-bold text-slate-900 text-sm flex items-center">PCU Analysis
|
| 744 |
-
<span class="info-wrap"><span class="info-btn"><i class="fa-solid fa-info"></i></span>
|
| 745 |
-
<span class="info-tip">Passenger Car Units (IRC:106-1990). Converts heterogeneous Indian traffic into standardized units for road capacity analysis.</span></span>
|
| 746 |
-
</h3>
|
| 747 |
-
</div>
|
| 748 |
-
<div class="flex-1 flex items-center justify-center" id="pcu-stats-card">
|
| 749 |
-
<div class="text-center text-slate-300 text-xs"><i class="fa-solid fa-car text-2xl mb-2"></i><br>Available after processing</div>
|
| 750 |
-
</div>
|
| 751 |
</div>
|
| 752 |
|
| 753 |
</div>
|
|
@@ -878,6 +852,36 @@
|
|
| 878 |
</div>
|
| 879 |
</div>
|
| 880 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 881 |
<div id="reports-grid" class="hidden grid grid-cols-2 xl:grid-cols-3 gap-4"></div>
|
| 882 |
</div>
|
| 883 |
|
|
@@ -2001,6 +2005,7 @@
|
|
| 2001 |
if (!data.files || !data.files.length) return null;
|
| 2002 |
|
| 2003 |
document.getElementById('reports-pending').classList.add('hidden');
|
|
|
|
| 2004 |
const grid = document.getElementById('reports-grid');
|
| 2005 |
grid.classList.remove('hidden');
|
| 2006 |
grid.innerHTML = '';
|
|
|
|
| 722 |
</div>
|
| 723 |
</div>
|
| 724 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 725 |
</div>
|
| 726 |
|
| 727 |
</div>
|
|
|
|
| 852 |
</div>
|
| 853 |
</div>
|
| 854 |
</div>
|
| 855 |
+
|
| 856 |
+
<!-- Post-Processing Insights (Populated after completion) -->
|
| 857 |
+
<div id="post-process-cards" class="hidden grid grid-cols-2 gap-4 mb-4">
|
| 858 |
+
<!-- Speed Distribution -->
|
| 859 |
+
<div class="bg-black rounded-xl p-6 border border-slate-800 shadow-sm flex flex-col min-h-[140px]">
|
| 860 |
+
<div class="flex justify-between items-center mb-4 relative">
|
| 861 |
+
<h3 class="font-bold text-white text-sm flex items-center">Speed Profile
|
| 862 |
+
<span class="info-wrap"><span class="info-btn" style="background:#222;color:#888"><i class="fa-solid fa-info"></i></span>
|
| 863 |
+
<span class="info-tip">Relative speed categories based on pixel displacement between frames. Slow/Normal/Fast are percentile-based within this video — not km/h.</span></span>
|
| 864 |
+
</h3>
|
| 865 |
+
</div>
|
| 866 |
+
<div class="flex-1 flex items-center justify-center" id="speed-stats-card">
|
| 867 |
+
<div class="text-center text-slate-600 text-xs"><i class="fa-solid fa-gauge-high text-2xl mb-2"></i><br>Available after processing</div>
|
| 868 |
+
</div>
|
| 869 |
+
</div>
|
| 870 |
+
|
| 871 |
+
<!-- PCU Summary -->
|
| 872 |
+
<div class="bg-black rounded-xl p-6 border border-slate-800 shadow-sm flex flex-col min-h-[140px]">
|
| 873 |
+
<div class="flex justify-between items-center mb-4 relative">
|
| 874 |
+
<h3 class="font-bold text-white text-sm flex items-center">PCU Analysis
|
| 875 |
+
<span class="info-wrap"><span class="info-btn" style="background:#222;color:#888"><i class="fa-solid fa-info"></i></span>
|
| 876 |
+
<span class="info-tip">Passenger Car Units (IRC:106-1990). Converts heterogeneous Indian traffic into standardized units for road capacity analysis.</span></span>
|
| 877 |
+
</h3>
|
| 878 |
+
</div>
|
| 879 |
+
<div class="flex-1 flex items-center justify-center" id="pcu-stats-card">
|
| 880 |
+
<div class="text-center text-slate-600 text-xs"><i class="fa-solid fa-car text-2xl mb-2"></i><br>Available after processing</div>
|
| 881 |
+
</div>
|
| 882 |
+
</div>
|
| 883 |
+
</div>
|
| 884 |
+
|
| 885 |
<div id="reports-grid" class="hidden grid grid-cols-2 xl:grid-cols-3 gap-4"></div>
|
| 886 |
</div>
|
| 887 |
|
|
|
|
| 2005 |
if (!data.files || !data.files.length) return null;
|
| 2006 |
|
| 2007 |
document.getElementById('reports-pending').classList.add('hidden');
|
| 2008 |
+
document.getElementById('post-process-cards').classList.remove('hidden');
|
| 2009 |
const grid = document.getElementById('reports-grid');
|
| 2010 |
grid.classList.remove('hidden');
|
| 2011 |
grid.innerHTML = '';
|