-
Notifications
You must be signed in to change notification settings - Fork 192
Expand file tree
/
Copy pathdamagedcarimage.json
More file actions
617 lines (617 loc) · 17.4 KB
/
damagedcarimage.json
File metadata and controls
617 lines (617 loc) · 17.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
{
"$defs": {
"CameraViewpoint": {
"description": "Camera perspective relative to the vehicle.\n\nAttributes:\n spatial_reasoning: Chain-of-thought scratchpad for determining view angle.\n view_angle: Computed camera angle label.\n description: Free-text summary of the camera position.",
"properties": {
"spatial_reasoning": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "MANDATORY chain-of-thought reasoning about camera position. Must answer IN ORDER: (1) Can I see the FRONT (grille/headlights) or REAR (tail lights/trunk) of the vehicle? (2) Which side of the IMAGE does the body flank extend toward? (3) Apply the mirror rule: viewing the FRONT \u2014 image-right = vehicle LEFT, image-left = vehicle RIGHT. Viewing the REAR \u2014 image-right = vehicle RIGHT, image-left = vehicle LEFT. (4) Therefore view_angle = ? (5) FALLBACK only if neither front nor rear is visible (pure side view): use steering wheel position to determine driver side (LHD: left, RHD: right).",
"title": "Spatial Reasoning"
},
"view_angle": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Primary camera viewing angle relative to the vehicle. Must be one of: front, front-left, front-right, left-side, right-side, rear-left, rear-right, rear, top, underneath, interior, unknown. Left/right = VEHICLE's own left/right (driver-perspective facing forward).",
"title": "View Angle"
},
"description": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Free-text description of the camera position and angle relative to the vehicle, e.g. 'Slightly elevated front-left view showing hood, front bumper, and left fender.'",
"title": "Description"
}
},
"required": [
"spatial_reasoning",
"view_angle",
"description"
],
"title": "CameraViewpoint",
"type": "object"
},
"DamageBoundingBox": {
"description": "Bounding box in normalized image coordinates [0..1].",
"properties": {
"x_min": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"description": "Left edge in [0..1]",
"title": "X Min"
},
"y_min": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"description": "Top edge in [0..1]",
"title": "Y Min"
},
"x_max": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"description": "Right edge in [0..1]",
"title": "X Max"
},
"y_max": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"description": "Bottom edge in [0..1]",
"title": "Y Max"
}
},
"required": [
"x_min",
"y_min",
"x_max",
"y_max"
],
"title": "DamageBoundingBox",
"type": "object"
},
"DamageRegion": {
"description": "A detected region of damage on the vehicle.",
"properties": {
"location_on_vehicle": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Location on the vehicle using the VEHICLE's own left/right (driver-perspective facing forward). The side MUST match camera_viewpoint.view_angle. Examples: 'front-left fender', 'rear-right quarter panel'.",
"title": "Location On Vehicle"
},
"damage_types": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"description": "Damage types, e.g. ['scratch','dent','crack','paint-transfer']",
"title": "Damage Types"
},
"severity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Severity label, e.g. minor, moderate, severe",
"title": "Severity"
},
"description": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Free-text description of the damage",
"title": "Description"
},
"bounding_box": {
"anyOf": [
{
"$ref": "#/$defs/DamageBoundingBox"
},
{
"type": "null"
}
],
"description": "Approx bounding box of the damage area (normalized coordinates)"
},
"confidence": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"description": "Confidence score in [0..1] for this damage region",
"title": "Confidence"
}
},
"required": [
"location_on_vehicle",
"damage_types",
"severity",
"description",
"bounding_box",
"confidence"
],
"title": "DamageRegion",
"type": "object"
},
"ImageInfo": {
"description": "Metadata about an input image.\n\nNote: Most fields may be unknown unless provided by the caller or extracted from EXIF.",
"properties": {
"filename": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Analyzed filename of the image",
"title": "Filename"
},
"content_type": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "MIME type, e.g. image/jpeg",
"title": "Content Type"
},
"width": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"description": "Analyzed image width in pixels",
"title": "Width"
},
"height": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"description": "Analyzed image height in pixels",
"title": "Height"
},
"capture_datetime": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Capture datetime if available, e.g. 2025-11-28T14:15:00 original EXIF string if unprocessed",
"title": "Capture Datetime"
}
},
"required": [
"filename",
"content_type",
"width",
"height",
"capture_datetime"
],
"title": "ImageInfo",
"type": "object"
},
"OverallDamageAssessment": {
"description": "Overall assessment across the full image.",
"properties": {
"has_visible_damage": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"description": "Whether any damage is visible",
"title": "Has Visible Damage"
},
"overall_severity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Overall severity label, e.g. minor, moderate, severe",
"title": "Overall Severity"
},
"affected_parts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"description": "Affected parts/panels using the VEHICLE's own left/right. Side labels MUST match camera_viewpoint.view_angle.",
"title": "Affected Parts"
},
"estimated_repair_complexity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Rough complexity, e.g. cosmetic_only, panel_repair, replacement_likely",
"title": "Estimated Repair Complexity"
},
"notes": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Notes or caveats, e.g. lighting/angle limitations",
"title": "Notes"
}
},
"required": [
"has_visible_damage",
"overall_severity",
"affected_parts",
"estimated_repair_complexity",
"notes"
],
"title": "OverallDamageAssessment",
"type": "object"
},
"VehicleAppearance": {
"description": "Visible vehicle identification extracted from the image.\n\nGuidance:\n- Prefer fields that can be seen. If uncertain, leave null.\n- Do not guess VIN from images.",
"properties": {
"vehicle_type": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Vehicle type, e.g. sedan, SUV",
"title": "Vehicle Type"
},
"make": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Vehicle make, e.g. Toyota",
"title": "Make"
},
"model": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Vehicle model, e.g. Camry",
"title": "Model"
},
"trim": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Vehicle trim, e.g. SE",
"title": "Trim"
},
"model_year": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"description": "Vehicle model year, e.g. 2022",
"title": "Model Year"
},
"color": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Vehicle color, e.g. silver",
"title": "Color"
},
"license_plate_visible": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"description": "Whether the license plate is visible in the image",
"title": "License Plate Visible"
},
"license_plate_text": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "License plate text if clearly readable; otherwise null",
"title": "License Plate Text"
},
"visible_vehicle_parts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"description": "List of vehicle parts/panels actually visible in this image given the camera angle, e.g. ['hood', 'front bumper', 'front-left fender', 'front-left headlight']. Only parts that can be seen should be listed. Left/right MUST use the VEHICLE's own frame of reference and MUST match the side in camera_viewpoint.view_angle.",
"title": "Visible Vehicle Parts"
}
},
"required": [
"vehicle_type",
"make",
"model",
"trim",
"model_year",
"color",
"license_plate_visible",
"license_plate_text",
"visible_vehicle_parts"
],
"title": "VehicleAppearance",
"type": "object"
},
"VehicleAssessment": {
"description": "Per-vehicle damage assessment extracted from an image.\n\nGroups appearance, damage regions, and overall assessment for a single\nvehicle detected in the photograph.\n\nAttributes:\n vehicle_id: Human-readable identifier distinguishing this vehicle.\n vehicle_appearance: Visible vehicle identification.\n damage_regions: Detected damage regions for this vehicle.\n overall_assessment: Overall damage assessment for this vehicle.",
"properties": {
"vehicle_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "A short human-readable identifier for this vehicle, e.g. 'Vehicle 1 - silver sedan (front-left)'. Use color, type, and position to distinguish vehicles.",
"title": "Vehicle Id"
},
"vehicle_appearance": {
"anyOf": [
{
"$ref": "#/$defs/VehicleAppearance"
},
{
"type": "null"
}
],
"description": "Visible vehicle identification for this vehicle"
},
"damage_regions": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/DamageRegion"
},
"type": "array"
},
{
"type": "null"
}
],
"description": "List of detected damage regions for this vehicle",
"title": "Damage Regions"
},
"overall_assessment": {
"anyOf": [
{
"$ref": "#/$defs/OverallDamageAssessment"
},
{
"type": "null"
}
],
"description": "Overall damage assessment for this vehicle"
}
},
"required": [
"vehicle_id",
"vehicle_appearance",
"damage_regions",
"overall_assessment"
],
"title": "VehicleAssessment",
"type": "object"
}
},
"description": "Schema for extracting damaged vehicle information from an image.\n\nSupports single- and multi-vehicle images. Each vehicle detected in the\nphotograph gets its own entry in the ``vehicles`` list.\n\nAttributes:\n image_info: Image metadata (shared across all vehicles).\n camera_viewpoint: Camera perspective relative to the scene.\n vehicle_count: Number of distinct vehicles detected in the image.\n vehicles: Per-vehicle assessment list.",
"properties": {
"image_info": {
"anyOf": [
{
"$ref": "#/$defs/ImageInfo"
},
{
"type": "null"
}
],
"description": "Image metadata"
},
"camera_viewpoint": {
"anyOf": [
{
"$ref": "#/$defs/CameraViewpoint"
},
{
"type": "null"
}
],
"description": "Camera perspective relative to the scene. MUST be determined BEFORE labelling any damage locations so that left/right orientation is anchored to each vehicle's own frame of reference."
},
"vehicle_count": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"description": "Number of distinct vehicles detected in the image. Must equal the length of the vehicles list.",
"title": "Vehicle Count"
},
"vehicles": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/VehicleAssessment"
},
"type": "array"
},
{
"type": "null"
}
],
"description": "Per-vehicle damage assessments. One entry per vehicle detected in the image. For single-vehicle images this list contains exactly one item.",
"title": "Vehicles"
},
"consistency_check": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "MANDATORY self-verification. State the side from view_angle, then list every left/right label used in visible_vehicle_parts, damage_regions, and affected_parts. Confirm they ALL match the side in view_angle. If any mismatch was found and corrected, describe what was fixed.",
"title": "Consistency Check"
}
},
"required": [
"image_info",
"camera_viewpoint",
"vehicle_count",
"vehicles",
"consistency_check"
],
"title": "DamagedVehicleImageAssessment",
"type": "object"
}