Spaces:
Running
Running
Add 3 files
Browse files- README.md +6 -4
- index.html +400 -19
- prompts.txt +1 -0
README.md
CHANGED
@@ -1,10 +1,12 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
-
emoji:
|
4 |
colorFrom: blue
|
5 |
-
colorTo:
|
6 |
sdk: static
|
7 |
pinned: false
|
|
|
|
|
8 |
---
|
9 |
|
10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
1 |
---
|
2 |
+
title: safe-commmute-ai
|
3 |
+
emoji: 🐳
|
4 |
colorFrom: blue
|
5 |
+
colorTo: yellow
|
6 |
sdk: static
|
7 |
pinned: false
|
8 |
+
tags:
|
9 |
+
- deepsite
|
10 |
---
|
11 |
|
12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
@@ -1,19 +1,400 @@
|
|
1 |
-
<!
|
2 |
-
<html>
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en">
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8">
|
5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<title>SafeCommute AI | Smart Traffic Safety Assistant</title>
|
7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
9 |
+
<style>
|
10 |
+
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
|
11 |
+
|
12 |
+
body {
|
13 |
+
font-family: 'Poppins', sans-serif;
|
14 |
+
background-color: #f8fafc;
|
15 |
+
}
|
16 |
+
|
17 |
+
.gradient-bg {
|
18 |
+
background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
|
19 |
+
}
|
20 |
+
|
21 |
+
.safety-card {
|
22 |
+
transition: all 0.3s ease;
|
23 |
+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
|
24 |
+
}
|
25 |
+
|
26 |
+
.safety-card:hover {
|
27 |
+
transform: translateY(-5px);
|
28 |
+
box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
|
29 |
+
}
|
30 |
+
|
31 |
+
.map-container {
|
32 |
+
height: 400px;
|
33 |
+
border-radius: 12px;
|
34 |
+
overflow: hidden;
|
35 |
+
background: linear-gradient(145deg, #e2e8f0, #cbd5e1);
|
36 |
+
position: relative;
|
37 |
+
}
|
38 |
+
|
39 |
+
.map-placeholder {
|
40 |
+
position: absolute;
|
41 |
+
top: 0;
|
42 |
+
left: 0;
|
43 |
+
width: 100%;
|
44 |
+
height: 100%;
|
45 |
+
display: flex;
|
46 |
+
align-items: center;
|
47 |
+
justify-content: center;
|
48 |
+
flex-direction: column;
|
49 |
+
color: #64748b;
|
50 |
+
}
|
51 |
+
|
52 |
+
.notification-badge {
|
53 |
+
position: absolute;
|
54 |
+
top: -8px;
|
55 |
+
right: -8px;
|
56 |
+
width: 20px;
|
57 |
+
height: 20px;
|
58 |
+
border-radius: 50%;
|
59 |
+
background-color: #ef4444;
|
60 |
+
color: white;
|
61 |
+
display: flex;
|
62 |
+
align-items: center;
|
63 |
+
justify-content: center;
|
64 |
+
font-size: 10px;
|
65 |
+
font-weight: bold;
|
66 |
+
}
|
67 |
+
|
68 |
+
.progress-ring {
|
69 |
+
transform: rotate(-90deg);
|
70 |
+
}
|
71 |
+
|
72 |
+
.progress-ring__circle {
|
73 |
+
transition: stroke-dashoffset 0.5s;
|
74 |
+
transform-origin: 50% 50%;
|
75 |
+
}
|
76 |
+
|
77 |
+
.route-option {
|
78 |
+
border-left: 4px solid transparent;
|
79 |
+
transition: all 0.2s ease;
|
80 |
+
}
|
81 |
+
|
82 |
+
.route-option:hover {
|
83 |
+
background-color: #f1f5f9;
|
84 |
+
border-left-color: #3b82f6;
|
85 |
+
}
|
86 |
+
|
87 |
+
.route-option.selected {
|
88 |
+
background-color: #eff6ff;
|
89 |
+
border-left-color: #3b82f6;
|
90 |
+
}
|
91 |
+
|
92 |
+
.detection-box {
|
93 |
+
position: absolute;
|
94 |
+
border: 2px solid;
|
95 |
+
border-radius: 4px;
|
96 |
+
}
|
97 |
+
|
98 |
+
.helmet-detected {
|
99 |
+
border-color: #10b981;
|
100 |
+
background-color: rgba(16, 185, 129, 0.1);
|
101 |
+
}
|
102 |
+
|
103 |
+
.no-helmet {
|
104 |
+
border-color: #ef4444;
|
105 |
+
background-color: rgba(239, 68, 68, 0.1);
|
106 |
+
}
|
107 |
+
|
108 |
+
.seatbelt-detected {
|
109 |
+
border-color: #10b981;
|
110 |
+
background-color: rgba(16, 185, 129, 0.1);
|
111 |
+
}
|
112 |
+
|
113 |
+
.no-seatbelt {
|
114 |
+
border-color: #ef4444;
|
115 |
+
background-color: rgba(239, 68, 68, 0.1);
|
116 |
+
}
|
117 |
+
|
118 |
+
@keyframes pulse {
|
119 |
+
0% { transform: scale(1); }
|
120 |
+
50% { transform: scale(1.05); }
|
121 |
+
100% { transform: scale(1); }
|
122 |
+
}
|
123 |
+
|
124 |
+
.pulse-animation {
|
125 |
+
animation: pulse 2s infinite;
|
126 |
+
}
|
127 |
+
</style>
|
128 |
+
</head>
|
129 |
+
<body>
|
130 |
+
<!-- Navigation -->
|
131 |
+
<nav class="gradient-bg text-white shadow-lg">
|
132 |
+
<div class="container mx-auto px-4 py-3">
|
133 |
+
<div class="flex justify-between items-center">
|
134 |
+
<div class="flex items-center space-x-2">
|
135 |
+
<i class="fas fa-traffic-light text-2xl"></i>
|
136 |
+
<span class="text-xl font-bold">SafeCommute AI</span>
|
137 |
+
</div>
|
138 |
+
<div class="hidden md:flex items-center space-x-6">
|
139 |
+
<a href="#" class="hover:text-blue-200 transition">Home</a>
|
140 |
+
<a href="#" class="hover:text-blue-200 transition">Features</a>
|
141 |
+
<a href="#" class="hover:text-blue-200 transition">Safety</a>
|
142 |
+
<a href="#" class="hover:text-blue-200 transition">Dashboard</a>
|
143 |
+
<a href="#" class="hover:text-blue-200 transition">About</a>
|
144 |
+
</div>
|
145 |
+
<div class="flex items-center space-x-4">
|
146 |
+
<button class="relative">
|
147 |
+
<i class="fas fa-bell text-xl"></i>
|
148 |
+
<span class="notification-badge">3</span>
|
149 |
+
</button>
|
150 |
+
<button class="md:hidden">
|
151 |
+
<i class="fas fa-bars text-xl"></i>
|
152 |
+
</button>
|
153 |
+
<button class="hidden md:block bg-white text-blue-600 px-4 py-2 rounded-full font-medium hover:bg-blue-50 transition">
|
154 |
+
Sign In
|
155 |
+
</button>
|
156 |
+
</div>
|
157 |
+
</div>
|
158 |
+
</div>
|
159 |
+
</nav>
|
160 |
+
|
161 |
+
<!-- Hero Section -->
|
162 |
+
<section class="gradient-bg text-white py-16">
|
163 |
+
<div class="container mx-auto px-4">
|
164 |
+
<div class="flex flex-col md:flex-row items-center">
|
165 |
+
<div class="md:w-1/2 mb-10 md:mb-0">
|
166 |
+
<h1 class="text-4xl md:text-5xl font-bold mb-4">Smarter, Safer Commutes with AI</h1>
|
167 |
+
<p class="text-xl mb-8 text-blue-100">Real-time traffic optimization and safety compliance detection for all road users.</p>
|
168 |
+
<div class="flex flex-col sm:flex-row space-y-3 sm:space-y-0 sm:space-x-4">
|
169 |
+
<button class="bg-white text-blue-600 px-6 py-3 rounded-full font-bold hover:bg-blue-50 transition flex items-center justify-center">
|
170 |
+
<i class="fab fa-google-play mr-2"></i> Get on Play Store
|
171 |
+
</button>
|
172 |
+
<button class="bg-black text-white px-6 py-3 rounded-full font-bold hover:bg-gray-800 transition flex items-center justify-center">
|
173 |
+
<i class="fab fa-apple mr-2"></i> Download on App Store
|
174 |
+
</button>
|
175 |
+
</div>
|
176 |
+
</div>
|
177 |
+
<div class="md:w-1/2 flex justify-center">
|
178 |
+
<div class="relative">
|
179 |
+
<div class="w-72 h-96 bg-white rounded-2xl shadow-2xl overflow-hidden relative">
|
180 |
+
<div class="absolute inset-0 bg-gradient-to-br from-blue-500 to-blue-600 opacity-90"></div>
|
181 |
+
<div class="absolute inset-0 p-4 flex flex-col">
|
182 |
+
<div class="flex justify-between items-center mb-4">
|
183 |
+
<div class="text-white font-bold">SafeCommute AI</div>
|
184 |
+
<div class="text-white">
|
185 |
+
<i class="fas fa-battery-three-quarters"></i>
|
186 |
+
</div>
|
187 |
+
</div>
|
188 |
+
|
189 |
+
<div class="flex-1 bg-white rounded-lg overflow-hidden relative">
|
190 |
+
<div class="map-placeholder">
|
191 |
+
<i class="fas fa-map-marked-alt text-4xl mb-2 text-blue-500"></i>
|
192 |
+
<p class="text-sm text-center px-4">Real-time traffic analysis and optimized routing</p>
|
193 |
+
</div>
|
194 |
+
</div>
|
195 |
+
|
196 |
+
<div class="mt-4 bg-white rounded-lg p-3 shadow">
|
197 |
+
<div class="flex items-center">
|
198 |
+
<div class="w-10 h-10 rounded-full bg-blue-100 flex items-center justify-center text-blue-600 mr-3">
|
199 |
+
<i class="fas fa-user"></i>
|
200 |
+
</div>
|
201 |
+
<div class="flex-1">
|
202 |
+
<div class="font-medium">Safety Check</div>
|
203 |
+
<div class="text-xs text-gray-500">Helmet detection active</div>
|
204 |
+
</div>
|
205 |
+
<div class="w-8 h-8 rounded-full bg-green-100 flex items-center justify-center text-green-600">
|
206 |
+
<i class="fas fa-check"></i>
|
207 |
+
</div>
|
208 |
+
</div>
|
209 |
+
</div>
|
210 |
+
</div>
|
211 |
+
</div>
|
212 |
+
<div class="absolute -bottom-6 -left-6 w-32 h-32 bg-yellow-400 rounded-full flex items-center justify-center shadow-lg">
|
213 |
+
<div class="text-center">
|
214 |
+
<div class="text-3xl font-bold">92%</div>
|
215 |
+
<div class="text-xs font-medium">Safety Score</div>
|
216 |
+
</div>
|
217 |
+
</div>
|
218 |
+
</div>
|
219 |
+
</div>
|
220 |
+
</div>
|
221 |
+
</div>
|
222 |
+
</section>
|
223 |
+
|
224 |
+
<!-- Features Section -->
|
225 |
+
<section class="py-16 bg-white">
|
226 |
+
<div class="container mx-auto px-4">
|
227 |
+
<div class="text-center mb-16">
|
228 |
+
<h2 class="text-3xl font-bold text-gray-800 mb-4">Key Features</h2>
|
229 |
+
<p class="text-gray-600 max-w-2xl mx-auto">SafeCommute AI combines advanced AI technologies to make your daily commute safer and more efficient.</p>
|
230 |
+
</div>
|
231 |
+
|
232 |
+
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
|
233 |
+
<!-- Feature 1 -->
|
234 |
+
<div class="safety-card bg-white p-6 rounded-xl border border-gray-100">
|
235 |
+
<div class="w-14 h-14 rounded-full bg-blue-100 flex items-center justify-center text-blue-600 mb-4">
|
236 |
+
<i class="fas fa-route text-2xl"></i>
|
237 |
+
</div>
|
238 |
+
<h3 class="text-xl font-bold text-gray-800 mb-2">Smart Routing</h3>
|
239 |
+
<p class="text-gray-600 mb-4">AI-powered real-time traffic analysis suggests the fastest and safest routes based on current conditions.</p>
|
240 |
+
<div class="flex items-center text-blue-600 font-medium">
|
241 |
+
<span>Learn more</span>
|
242 |
+
<i class="fas fa-arrow-right ml-2"></i>
|
243 |
+
</div>
|
244 |
+
</div>
|
245 |
+
|
246 |
+
<!-- Feature 2 -->
|
247 |
+
<div class="safety-card bg-white p-6 rounded-xl border border-gray-100">
|
248 |
+
<div class="w-14 h-14 rounded-full bg-green-100 flex items-center justify-center text-green-600 mb-4">
|
249 |
+
<i class="fas fa-helmet-safety text-2xl"></i>
|
250 |
+
</div>
|
251 |
+
<h3 class="text-xl font-bold text-gray-800 mb-2">Helmet Detection</h3>
|
252 |
+
<p class="text-gray-600 mb-4">Computer vision detects helmet usage for two-wheeler riders and provides real-time alerts.</p>
|
253 |
+
<div class="flex items-center text-blue-600 font-medium">
|
254 |
+
<span>Learn more</span>
|
255 |
+
<i class="fas fa-arrow-right ml-2"></i>
|
256 |
+
</div>
|
257 |
+
</div>
|
258 |
+
|
259 |
+
<!-- Feature 3 -->
|
260 |
+
<div class="safety-card bg-white p-6 rounded-xl border border-gray-100">
|
261 |
+
<div class="w-14 h-14 rounded-full bg-purple-100 flex items-center justify-center text-purple-600 mb-4">
|
262 |
+
<i class="fas fa-user-shield text-2xl"></i>
|
263 |
+
</div>
|
264 |
+
<h3 class="text-xl font-bold text-gray-800 mb-2">Seatbelt Monitoring</h3>
|
265 |
+
<p class="text-gray-600 mb-4">Detects seatbelt compliance for drivers and passengers, ideal for fleet management.</p>
|
266 |
+
<div class="flex items-center text-blue-600 font-medium">
|
267 |
+
<span>Learn more</span>
|
268 |
+
<i class="fas fa-arrow-right ml-2"></i>
|
269 |
+
</div>
|
270 |
+
</div>
|
271 |
+
|
272 |
+
<!-- Feature 4 -->
|
273 |
+
<div class="safety-card bg-white p-6 rounded-xl border border-gray-100">
|
274 |
+
<div class="w-14 h-14 rounded-full bg-yellow-100 flex items-center justify-center text-yellow-600 mb-4">
|
275 |
+
<i class="fas fa-chart-line text-2xl"></i>
|
276 |
+
</div>
|
277 |
+
<h3 class="text-xl font-bold text-gray-800 mb-2">Safety Analytics</h3>
|
278 |
+
<p class="text-gray-600 mb-4">Comprehensive dashboard with safety compliance metrics and accident risk zone identification.</p>
|
279 |
+
<div class="flex items-center text-blue-600 font-medium">
|
280 |
+
<span>Learn more</span>
|
281 |
+
<i class="fas fa-arrow-right ml-2"></i>
|
282 |
+
</div>
|
283 |
+
</div>
|
284 |
+
|
285 |
+
<!-- Feature 5 -->
|
286 |
+
<div class="safety-card bg-white p-6 rounded-xl border border-gray-100">
|
287 |
+
<div class="w-14 h-14 rounded-full bg-red-100 flex items-center justify-center text-red-600 mb-4">
|
288 |
+
<i class="fas fa-bell text-2xl"></i>
|
289 |
+
</div>
|
290 |
+
<h3 class="text-xl font-bold text-gray-800 mb-2">Real-time Alerts</h3>
|
291 |
+
<p class="text-gray-600 mb-4">Instant notifications for safety violations, traffic incidents, and alternative route suggestions.</p>
|
292 |
+
<div class="flex items-center text-blue-600 font-medium">
|
293 |
+
<span>Learn more</span>
|
294 |
+
<i class="fas fa-arrow-right ml-2"></i>
|
295 |
+
</div>
|
296 |
+
</div>
|
297 |
+
|
298 |
+
<!-- Feature 6 -->
|
299 |
+
<div class="safety-card bg-white p-6 rounded-xl border border-gray-100">
|
300 |
+
<div class="w-14 h-14 rounded-full bg-indigo-100 flex items-center justify-center text-indigo-600 mb-4">
|
301 |
+
<i class="fas fa-trophy text-2xl"></i>
|
302 |
+
</div>
|
303 |
+
<h3 class="text-xl font-bold text-gray-800 mb-2">Rewards System</h3>
|
304 |
+
<p class="text-gray-600 mb-4">Earn points for safe commuting behavior redeemable with partner stores and services.</p>
|
305 |
+
<div class="flex items-center text-blue-600 font-medium">
|
306 |
+
<span>Learn more</span>
|
307 |
+
<i class="fas fa-arrow-right ml-2"></i>
|
308 |
+
</div>
|
309 |
+
</div>
|
310 |
+
</div>
|
311 |
+
</div>
|
312 |
+
</section>
|
313 |
+
|
314 |
+
<!-- Demo Section -->
|
315 |
+
<section class="py-16 bg-gray-50">
|
316 |
+
<div class="container mx-auto px-4">
|
317 |
+
<div class="flex flex-col lg:flex-row items-center">
|
318 |
+
<div class="lg:w-1/2 mb-10 lg:mb-0 lg:pr-10">
|
319 |
+
<h2 class="text-3xl font-bold text-gray-800 mb-4">How It Works</h2>
|
320 |
+
<p class="text-gray-600 mb-6">SafeCommute AI uses advanced computer vision and machine learning to analyze traffic patterns and detect safety compliance in real-time.</p>
|
321 |
+
|
322 |
+
<div class="space-y-6">
|
323 |
+
<div class="flex">
|
324 |
+
<div class="flex-shrink-0 mr-4">
|
325 |
+
<div class="flex items-center justify-center w-12 h-12 rounded-full bg-blue-100 text-blue-600">
|
326 |
+
<span class="font-bold">1</span>
|
327 |
+
</div>
|
328 |
+
</div>
|
329 |
+
<div>
|
330 |
+
<h3 class="text-lg font-semibold text-gray-800">Route Optimization</h3>
|
331 |
+
<p class="text-gray-600">Our AI analyzes multiple data sources to suggest the fastest and safest route based on current conditions.</p>
|
332 |
+
</div>
|
333 |
+
</div>
|
334 |
+
|
335 |
+
<div class="flex">
|
336 |
+
<div class="flex-shrink-0 mr-4">
|
337 |
+
<div class="flex items-center justify-center w-12 h-12 rounded-full bg-green-100 text-green-600">
|
338 |
+
<span class="font-bold">2</span>
|
339 |
+
</div>
|
340 |
+
</div>
|
341 |
+
<div>
|
342 |
+
<h3 class="text-lg font-semibold text-gray-800">Safety Detection</h3>
|
343 |
+
<p class="text-gray-600">Using your device's camera or roadside cameras, we detect helmet and seatbelt usage with 98% accuracy.</p>
|
344 |
+
</div>
|
345 |
+
</div>
|
346 |
+
|
347 |
+
<div class="flex">
|
348 |
+
<div class="flex-shrink-0 mr-4">
|
349 |
+
<div class="flex items-center justify-center w-12 h-12 rounded-full bg-purple-100 text-purple-600">
|
350 |
+
<span class="font-bold">3</span>
|
351 |
+
</div>
|
352 |
+
</div>
|
353 |
+
<div>
|
354 |
+
<h3 class="text-lg font-semibold text-gray-800">Real-time Feedback</h3>
|
355 |
+
<p class="text-gray-600">Get instant alerts and suggestions to improve your safety compliance and route efficiency.</p>
|
356 |
+
</div>
|
357 |
+
</div>
|
358 |
+
</div>
|
359 |
+
</div>
|
360 |
+
|
361 |
+
<div class="lg:w-1/2">
|
362 |
+
<div class="bg-white p-6 rounded-xl shadow-lg">
|
363 |
+
<div class="flex justify-between items-center mb-4">
|
364 |
+
<h3 class="font-bold text-gray-800">Live Safety Detection</h3>
|
365 |
+
<div class="flex space-x-2">
|
366 |
+
<button class="px-3 py-1 bg-blue-100 text-blue-600 rounded-full text-sm font-medium">Helmet</button>
|
367 |
+
<button class="px-3 py-1 bg-blue-100 text-blue-600 rounded-full text-sm font-medium">Seatbelt</button>
|
368 |
+
</div>
|
369 |
+
</div>
|
370 |
+
|
371 |
+
<div class="relative bg-gray-200 rounded-lg overflow-hidden" style="height: 300px;">
|
372 |
+
<div id="detection-feed" class="absolute inset-0 flex items-center justify-center">
|
373 |
+
<img src="https://images.unsplash.com/photo-1558981806-ec527fa14c08?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=60" alt="Detection feed" class="w-full h-full object-cover">
|
374 |
+
|
375 |
+
<!-- Detection boxes will be added here by JavaScript -->
|
376 |
+
<div class="detection-box helmet-detected" style="top: 30%; left: 50%; width: 100px; height: 100px;">
|
377 |
+
<div class="absolute -top-5 left-0 bg-green-500 text-white text-xs px-2 py-1 rounded">Helmet Detected</div>
|
378 |
+
</div>
|
379 |
+
|
380 |
+
<div class="detection-box no-helmet" style="top: 60%; left: 30%; width: 100px; height: 100px;">
|
381 |
+
<div class="absolute -top-5 left-0 bg-red-500 text-white text-xs px-2 py-1 rounded">No Helmet</div>
|
382 |
+
</div>
|
383 |
+
</div>
|
384 |
+
|
385 |
+
<div class="absolute bottom-4 left-0 right-0 flex justify-center">
|
386 |
+
<button id="toggle-detection" class="px-6 py-2 bg-blue-600 text-white rounded-full font-medium hover:bg-blue-700 transition flex items-center">
|
387 |
+
<i class="fas fa-play mr-2"></i> Start Detection
|
388 |
+
</button>
|
389 |
+
</div>
|
390 |
+
</div>
|
391 |
+
|
392 |
+
<div class="mt-4 grid grid-cols-2 gap-4">
|
393 |
+
<div class="bg-blue-50 p-3 rounded-lg">
|
394 |
+
<div class="flex items-center">
|
395 |
+
<div class="w-8 h-8 rounded-full bg-green-100 flex items-center justify-center text-green-600 mr-2">
|
396 |
+
<i class="fas fa-check"></i>
|
397 |
+
</div>
|
398 |
+
<div>
|
399 |
+
<div class="text-sm font-medium text-gray-700">
|
400 |
+
</html>
|
prompts.txt
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Awesome — this idea expands nicely into a Smart Traffic Safety & Navigation Assistant that combines AI-based traffic monitoring with real-time safety compliance detection. --- Project Name (Example): SafeCommute AI --- Problem Statement: Traffic congestion changes dynamically; navigation apps often provide generic routes. Many two-wheeler riders don’t wear helmets; car occupants skip seat belts — leading to injuries. Authorities and users lack real-time, personalized data on unsafe travel behavior. --- Solution: A Smart, AI-Powered Platform for Personalized Traffic & Safety Monitoring SafeCommute AI uses AI and computer vision to: Monitor live traffic and suggest the best personalized route. Detect helmet and seatbelt usage via onboard or roadside cameras. Give feedback/warnings to users or notify authorities (based on use case). --- Core Features: 1. AI-Powered Traffic Monitoring & Route Optimization: Real-time traffic prediction using: User history Location trends Live congestion data Personalized route suggestion (based on time, safety, preferences like avoiding narrow lanes). 2. Helmet Detection for Two-Wheeler Riders: Computer vision model to detect: Presence or absence of a helmet Properly strapped helmet or not Deployable via: Roadside CCTV Rider’s mobile camera Police body cams 3. Seatbelt Detection in Cars: Detect driver and passenger seatbelt usage. Alerts via car dashboard (IoT) or app. Ideal for fleet management, rental cars, and smart cities. 4. Real-Time Alerts & Reporting: App notifies users if they're riding/commuting unsafely. Optional integration with local enforcement systems for fines or education. 5. Data Dashboard: For city planners or fleet managers: Safety compliance analytics Accident risk zones Commute trends over time --- Advanced Possibilities: Voice Assistant: “Put on your helmet before starting.” AR HUD integration in helmets or windshields. Rewards System: Give points for daily safe commute behavior (redeemable in partner stores). Anonymized Data Sharing: For urban planning or insurance premium optimization. --- Target Users: Daily commuters (2W and 4W) Corporates with employee transport Governments & smart city projects Bike taxi, carpool, delivery apps Fleet operators --- Revenue Model: SaaS licensing for enterprises and governments Freemium user app White-label solution for fleet managers or ride-sharing companies Ads/partner ecosystem for safe driving gear --- Would you like help creating: A system architecture (edge + cloud CV)? App flow or UI/UX sketch? A pitch deck or investor brief? Let me know which direction you want to explore next!
|