Spaces:
Runtime error
Runtime error
updated roboflow model to improve accuracy
Browse files
app.py
CHANGED
@@ -144,51 +144,51 @@ def fetchImage():
|
|
144 |
# Define a repair cost dictionary (per part)
|
145 |
repair_costs = {
|
146 |
"Car-Damage-Detection-1KxY": 1000, # General damage assessment cost
|
147 |
-
"Bodypanel-Dent": 200,
|
148 |
"Front-Windscreen-Damage": 400,
|
149 |
-
"Headlight-Damage": 250,
|
150 |
"Rear-windscreen-Damage": 350,
|
151 |
"RunningBoard-Dent": 150,
|
152 |
-
"Sidemirror-Damage": 180,
|
153 |
-
"Signlight-Damage": 120,
|
154 |
-
"Taillight-Damage": 220,
|
155 |
"back-bumper": 500,
|
156 |
"back-glass": 400,
|
157 |
"bonnet-dent": 300,
|
158 |
"boot-dent": 350,
|
159 |
-
"broken_lamp": 100,
|
160 |
-
"crack": 250,
|
161 |
"damaged-door": 600,
|
162 |
"damaged-front-bumper": 550,
|
163 |
-
"damaged-head-light": 270,
|
164 |
"damaged-hood": 500,
|
165 |
"damaged-rear-bumper": 520,
|
166 |
-
"damaged-rear-window": 380,
|
167 |
-
"damaged-tail-light": 230,
|
168 |
"damaged-trunk": 600,
|
169 |
-
"damaged-window": 280,
|
170 |
"damaged-windscreen": 450,
|
171 |
-
"dent": 200,
|
172 |
-
"dent-or-scratch": 180,
|
173 |
"door": 700,
|
174 |
"doorouter-dent": 250,
|
175 |
-
"fender-dent": 220,
|
176 |
-
"flat_tire": 100,
|
177 |
"front-bumper": 500,
|
178 |
"front-bumper-dent": 450,
|
179 |
"front-glass": 400,
|
180 |
-
"headlight": 250,
|
181 |
"hood": 500,
|
182 |
-
"mirror": 180,
|
183 |
-
"pillar-dent": 220,
|
184 |
"quaterpanel-dent": 270,
|
185 |
"rear-bumper-dent": 480,
|
186 |
"roof-dent": 400,
|
187 |
"scratch": 150,
|
188 |
"shattered_glass": 500,
|
189 |
-
"taillight": 220,
|
190 |
"trunk": 600,
|
191 |
-
"wheel": 250,
|
192 |
"window": 300,
|
193 |
}
|
194 |
|
|
|
144 |
# Define a repair cost dictionary (per part)
|
145 |
repair_costs = {
|
146 |
"Car-Damage-Detection-1KxY": 1000, # General damage assessment cost
|
147 |
+
"Bodypanel-Dent": 200*2,
|
148 |
"Front-Windscreen-Damage": 400,
|
149 |
+
"Headlight-Damage": 250*2*2,
|
150 |
"Rear-windscreen-Damage": 350,
|
151 |
"RunningBoard-Dent": 150,
|
152 |
+
"Sidemirror-Damage": 180*2,
|
153 |
+
"Signlight-Damage": 120*2,
|
154 |
+
"Taillight-Damage": 220*2,
|
155 |
"back-bumper": 500,
|
156 |
"back-glass": 400,
|
157 |
"bonnet-dent": 300,
|
158 |
"boot-dent": 350,
|
159 |
+
"broken_lamp": 100*2*2,
|
160 |
+
"crack": 250*2*2,
|
161 |
"damaged-door": 600,
|
162 |
"damaged-front-bumper": 550,
|
163 |
+
"damaged-head-light": 270*2,
|
164 |
"damaged-hood": 500,
|
165 |
"damaged-rear-bumper": 520,
|
166 |
+
"damaged-rear-window": 380*2,
|
167 |
+
"damaged-tail-light": 230*2,
|
168 |
"damaged-trunk": 600,
|
169 |
+
"damaged-window": 280*2*2,
|
170 |
"damaged-windscreen": 450,
|
171 |
+
"dent": 200*2,
|
172 |
+
"dent-or-scratch": 180*2,
|
173 |
"door": 700,
|
174 |
"doorouter-dent": 250,
|
175 |
+
"fender-dent": 220*2,
|
176 |
+
"flat_tire": 100*2*2,
|
177 |
"front-bumper": 500,
|
178 |
"front-bumper-dent": 450,
|
179 |
"front-glass": 400,
|
180 |
+
"headlight": 250*2,
|
181 |
"hood": 500,
|
182 |
+
"mirror": 180*2*2,
|
183 |
+
"pillar-dent": 220*2,
|
184 |
"quaterpanel-dent": 270,
|
185 |
"rear-bumper-dent": 480,
|
186 |
"roof-dent": 400,
|
187 |
"scratch": 150,
|
188 |
"shattered_glass": 500,
|
189 |
+
"taillight": 220*2,
|
190 |
"trunk": 600,
|
191 |
+
"wheel": 250*2,
|
192 |
"window": 300,
|
193 |
}
|
194 |
|