Tri1 commited on
Commit
040fbbd
·
verified ·
1 Parent(s): 307c6a5

Add files using upload-large-folder tool

Browse files
Files changed (50) hide show
  1. Quang Trung/weekend/07_45-07_50/counts.json +21 -0
  2. Quang Trung/weekend/10_00-10_05/counts.json +21 -0
  3. Quang Trung/weekend/10_30-10_35/counts.json +21 -0
  4. Quang Trung/weekend/10_45-10_50/counts.json +21 -0
  5. Quang Trung/weekend/12_00-12_05/counts.json +21 -0
  6. Quang Trung/weekend/12_15-12_20/counts.json +21 -0
  7. Quang Trung/weekend/15_15-15_20/counts.json +21 -0
  8. Quang Trung/weekend/15_45-15_50/counts.json +21 -0
  9. Quang Trung/weekend/16_00-16_05/counts.json +21 -0
  10. Quang Trung/weekend/17_00-17_05/counts.json +21 -0
  11. Quang Trung/weekend/17_15-17_20/counts.json +21 -0
  12. Quang Trung/weekend/17_15-17_20/frame_0016.jpg +3 -0
  13. Quang Trung/weekend/17_15-17_20/frame_0024.jpg +3 -0
  14. Quang Trung/weekend/17_15-17_20/frame_0029.jpg +3 -0
  15. Quang Trung/weekend/17_15-17_20/frame_0032.jpg +3 -0
  16. Quang Trung/weekend/17_15-17_20/frame_0035.jpg +3 -0
  17. Quang Trung/weekend/17_15-17_20/frame_0052.jpg +3 -0
  18. Quang Trung/weekend/17_15-17_20/frame_0078.jpg +3 -0
  19. Quang Trung/weekend/17_15-17_20/frame_0086.jpg +3 -0
  20. Quang Trung/weekend/17_15-17_20/frame_0088.jpg +3 -0
  21. Quang Trung/weekend/17_15-17_20/frame_0100.jpg +3 -0
  22. Quang Trung/weekend/17_15-17_20/frame_0101.jpg +3 -0
  23. Quang Trung/weekend/17_15-17_20/frame_0119.jpg +3 -0
  24. Quang Trung/weekend/17_15-17_20/frame_0123.jpg +3 -0
  25. Quang Trung/weekend/17_15-17_20/frame_0143.jpg +3 -0
  26. Quang Trung/weekend/17_15-17_20/frame_0150.jpg +3 -0
  27. Quang Trung/weekend/17_15-17_20/frame_0155.jpg +3 -0
  28. Quang Trung/weekend/17_15-17_20/frame_0161.jpg +3 -0
  29. Quang Trung/weekend/17_15-17_20/frame_0162.jpg +3 -0
  30. Quang Trung/weekend/17_15-17_20/frame_0180.jpg +3 -0
  31. Quang Trung/weekend/17_15-17_20/frame_0185.jpg +3 -0
  32. Quang Trung/weekend/17_15-17_20/frame_0186.jpg +3 -0
  33. Quang Trung/weekend/17_15-17_20/frame_0187.jpg +3 -0
  34. Quang Trung/weekend/17_15-17_20/frame_0188.jpg +3 -0
  35. Quang Trung/weekend/17_15-17_20/frame_0194.jpg +3 -0
  36. Quang Trung/weekend/17_15-17_20/frame_0209.jpg +3 -0
  37. Quang Trung/weekend/17_15-17_20/frame_0210.jpg +3 -0
  38. Quang Trung/weekend/17_15-17_20/frame_0224.jpg +3 -0
  39. Quang Trung/weekend/17_15-17_20/frame_0235.jpg +3 -0
  40. Quang Trung/weekend/17_15-17_20/frame_0237.jpg +3 -0
  41. Quang Trung/weekend/17_15-17_20/frame_0246.jpg +3 -0
  42. Quang Trung/weekend/17_15-17_20/frame_0267.jpg +3 -0
  43. Quang Trung/weekend/17_15-17_20/frame_0269.jpg +3 -0
  44. Quang Trung/weekend/17_15-17_20/frame_0275.jpg +3 -0
  45. Quang Trung/weekend/17_15-17_20/frame_0286.jpg +3 -0
  46. Quang Trung/weekend/17_15-17_20/frame_0288.jpg +3 -0
  47. Quang Trung/weekend/17_30-17_35/counts.json +21 -0
  48. counts_summary.csv +8 -0
  49. counts_summary.json +9 -0
  50. scripts/count_vehicle_types.py +120 -0
Quang Trung/weekend/07_45-07_50/counts.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "sheet": "Quang Trung",
3
+ "location_num": 6,
4
+ "period": "weekend",
5
+ "session": "AM",
6
+ "time_window": "07:45-07:50",
7
+ "source_video": "/mnt/disk2/aiotlab/tritd/traffic-videos/data/6. Palm Café - Số 35, Quang Trung, Trần Hưng Đạo, Hoàn Kiếm, HN/cuối tuần/06_2025_06_08_0740_Quang Trung.mp4",
8
+ "offset_in_video_sec": 300,
9
+ "extract_duration_sec": 300.0,
10
+ "fps": 1,
11
+ "vehicle_counts": {
12
+ "motorcycle": 121,
13
+ "car_i_4_7_seat": 18,
14
+ "car_ii_9_seat": 1,
15
+ "bus_i_le_40_seat": 0,
16
+ "bus_ii": 0,
17
+ "light_truck": 0,
18
+ "heavy_truck": 0
19
+ },
20
+ "total_vehicles": 140
21
+ }
Quang Trung/weekend/10_00-10_05/counts.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "sheet": "Quang Trung",
3
+ "location_num": 6,
4
+ "period": "weekend",
5
+ "session": "AM",
6
+ "time_window": "10:00-10:05",
7
+ "source_video": "/mnt/disk2/aiotlab/tritd/traffic-videos/data/6. Palm Café - Số 35, Quang Trung, Trần Hưng Đạo, Hoàn Kiếm, HN/cuối tuần/06_2025_06_08_1001_Quang Trung.mp4",
8
+ "offset_in_video_sec": 0.0,
9
+ "extract_duration_sec": 300.0,
10
+ "fps": 1,
11
+ "vehicle_counts": {
12
+ "motorcycle": 183,
13
+ "car_i_4_7_seat": 43,
14
+ "car_ii_9_seat": 1,
15
+ "bus_i_le_40_seat": 0,
16
+ "bus_ii": 0,
17
+ "light_truck": 0,
18
+ "heavy_truck": 0
19
+ },
20
+ "total_vehicles": 227
21
+ }
Quang Trung/weekend/10_30-10_35/counts.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "sheet": "Quang Trung",
3
+ "location_num": 6,
4
+ "period": "weekend",
5
+ "session": "AM",
6
+ "time_window": "10:30-10:35",
7
+ "source_video": "/mnt/disk2/aiotlab/tritd/traffic-videos/data/6. Palm Café - Số 35, Quang Trung, Trần Hưng Đạo, Hoàn Kiếm, HN/cuối tuần/06_2025_06_08_1001_Quang Trung.mp4",
8
+ "offset_in_video_sec": 1740,
9
+ "extract_duration_sec": 300.0,
10
+ "fps": 1,
11
+ "vehicle_counts": {
12
+ "motorcycle": 194,
13
+ "car_i_4_7_seat": 33,
14
+ "car_ii_9_seat": 1,
15
+ "bus_i_le_40_seat": 0,
16
+ "bus_ii": 0,
17
+ "light_truck": 0,
18
+ "heavy_truck": 0
19
+ },
20
+ "total_vehicles": 228
21
+ }
Quang Trung/weekend/10_45-10_50/counts.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "sheet": "Quang Trung",
3
+ "location_num": 6,
4
+ "period": "weekend",
5
+ "session": "AM",
6
+ "time_window": "10:45-10:50",
7
+ "source_video": "/mnt/disk2/aiotlab/tritd/traffic-videos/data/6. Palm Café - Số 35, Quang Trung, Trần Hưng Đạo, Hoàn Kiếm, HN/cuối tuần/06_2025_06_08_1001_Quang Trung.mp4",
8
+ "offset_in_video_sec": 2640,
9
+ "extract_duration_sec": 300.0,
10
+ "fps": 1,
11
+ "vehicle_counts": {
12
+ "motorcycle": 154,
13
+ "car_i_4_7_seat": 30,
14
+ "car_ii_9_seat": 0,
15
+ "bus_i_le_40_seat": 0,
16
+ "bus_ii": 0,
17
+ "light_truck": 0,
18
+ "heavy_truck": 0
19
+ },
20
+ "total_vehicles": 184
21
+ }
Quang Trung/weekend/12_00-12_05/counts.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "sheet": "Quang Trung",
3
+ "location_num": 6,
4
+ "period": "weekend",
5
+ "session": "AM",
6
+ "time_window": "12:00-12:05",
7
+ "source_video": "/mnt/disk2/aiotlab/tritd/traffic-videos/data/6. Palm Café - Số 35, Quang Trung, Trần Hưng Đạo, Hoàn Kiếm, HN/cuối tuần/06_2025_06_08_1201_Quang Trung.mp4",
8
+ "offset_in_video_sec": 0.0,
9
+ "extract_duration_sec": 300.0,
10
+ "fps": 1,
11
+ "vehicle_counts": {
12
+ "motorcycle": 162,
13
+ "car_i_4_7_seat": 25,
14
+ "car_ii_9_seat": 1,
15
+ "bus_i_le_40_seat": 0,
16
+ "bus_ii": 3,
17
+ "light_truck": 0,
18
+ "heavy_truck": 0
19
+ },
20
+ "total_vehicles": 191
21
+ }
Quang Trung/weekend/12_15-12_20/counts.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "sheet": "Quang Trung",
3
+ "location_num": 6,
4
+ "period": "weekend",
5
+ "session": "AM",
6
+ "time_window": "12:15-12:20",
7
+ "source_video": "/mnt/disk2/aiotlab/tritd/traffic-videos/data/6. Palm Café - Số 35, Quang Trung, Trần Hưng Đạo, Hoàn Kiếm, HN/cuối tuần/06_2025_06_08_1201_Quang Trung.mp4",
8
+ "offset_in_video_sec": 840,
9
+ "extract_duration_sec": 300.0,
10
+ "fps": 1,
11
+ "vehicle_counts": {
12
+ "motorcycle": 160,
13
+ "car_i_4_7_seat": 32,
14
+ "car_ii_9_seat": 1,
15
+ "bus_i_le_40_seat": 0,
16
+ "bus_ii": 3,
17
+ "light_truck": 0,
18
+ "heavy_truck": 0
19
+ },
20
+ "total_vehicles": 196
21
+ }
Quang Trung/weekend/15_15-15_20/counts.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "sheet": "Quang Trung",
3
+ "location_num": 6,
4
+ "period": "weekend",
5
+ "session": "PM",
6
+ "time_window": "15:15-15:20",
7
+ "source_video": "/mnt/disk2/aiotlab/tritd/traffic-videos/data/6. Palm Café - Số 35, Quang Trung, Trần Hưng Đạo, Hoàn Kiếm, HN/cuối tuần/06_2025_06_08_1506_Quang Trung.mp4",
8
+ "offset_in_video_sec": 540,
9
+ "extract_duration_sec": 300.0,
10
+ "fps": 1,
11
+ "vehicle_counts": {
12
+ "motorcycle": 177,
13
+ "car_i_4_7_seat": 31,
14
+ "car_ii_9_seat": 1,
15
+ "bus_i_le_40_seat": 0,
16
+ "bus_ii": 2,
17
+ "light_truck": 0,
18
+ "heavy_truck": 0
19
+ },
20
+ "total_vehicles": 211
21
+ }
Quang Trung/weekend/15_45-15_50/counts.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "sheet": "Quang Trung",
3
+ "location_num": 6,
4
+ "period": "weekend",
5
+ "session": "PM",
6
+ "time_window": "15:45-15:50",
7
+ "source_video": "/mnt/disk2/aiotlab/tritd/traffic-videos/data/6. Palm Café - Số 35, Quang Trung, Trần Hưng Đạo, Hoàn Kiếm, HN/cuối tuần/06_2025_06_08_1506_Quang Trung.mp4",
8
+ "offset_in_video_sec": 2340,
9
+ "extract_duration_sec": 300.0,
10
+ "fps": 1,
11
+ "vehicle_counts": {
12
+ "motorcycle": 164,
13
+ "car_i_4_7_seat": 30,
14
+ "car_ii_9_seat": 0,
15
+ "bus_i_le_40_seat": 0,
16
+ "bus_ii": 0,
17
+ "light_truck": 0,
18
+ "heavy_truck": 0
19
+ },
20
+ "total_vehicles": 194
21
+ }
Quang Trung/weekend/16_00-16_05/counts.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "sheet": "Quang Trung",
3
+ "location_num": 6,
4
+ "period": "weekend",
5
+ "session": "PM",
6
+ "time_window": "16:00-16:05",
7
+ "source_video": "/mnt/disk2/aiotlab/tritd/traffic-videos/data/6. Palm Café - Số 35, Quang Trung, Trần Hưng Đạo, Hoàn Kiếm, HN/cuối tuần/06_2025_06_08_1506_Quang Trung.mp4",
8
+ "offset_in_video_sec": 3240,
9
+ "extract_duration_sec": 300.0,
10
+ "fps": 1,
11
+ "vehicle_counts": {
12
+ "motorcycle": 165,
13
+ "car_i_4_7_seat": 35,
14
+ "car_ii_9_seat": 0,
15
+ "bus_i_le_40_seat": 0,
16
+ "bus_ii": 1,
17
+ "light_truck": 0,
18
+ "heavy_truck": 0
19
+ },
20
+ "total_vehicles": 201
21
+ }
Quang Trung/weekend/17_00-17_05/counts.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "sheet": "Quang Trung",
3
+ "location_num": 6,
4
+ "period": "weekend",
5
+ "session": "PM",
6
+ "time_window": "17:00-17:05",
7
+ "source_video": "/mnt/disk2/aiotlab/tritd/traffic-videos/data/6. Palm Café - Số 35, Quang Trung, Trần Hưng Đạo, Hoàn Kiếm, HN/cuối tuần/06_2025_06_08_1659_Quang Trung.mp4",
8
+ "offset_in_video_sec": 60,
9
+ "extract_duration_sec": 300.0,
10
+ "fps": 1,
11
+ "vehicle_counts": {
12
+ "motorcycle": 204,
13
+ "car_i_4_7_seat": 25,
14
+ "car_ii_9_seat": 4,
15
+ "bus_i_le_40_seat": 0,
16
+ "bus_ii": 2,
17
+ "light_truck": 2,
18
+ "heavy_truck": 0
19
+ },
20
+ "total_vehicles": 237
21
+ }
Quang Trung/weekend/17_15-17_20/counts.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "sheet": "Quang Trung",
3
+ "location_num": 6,
4
+ "period": "weekend",
5
+ "session": "PM",
6
+ "time_window": "17:15-17:20",
7
+ "source_video": "/mnt/disk2/aiotlab/tritd/traffic-videos/data/6. Palm Café - Số 35, Quang Trung, Trần Hưng Đạo, Hoàn Kiếm, HN/cuối tuần/06_2025_06_08_1659_Quang Trung.mp4",
8
+ "offset_in_video_sec": 960,
9
+ "extract_duration_sec": 300.0,
10
+ "fps": 1,
11
+ "vehicle_counts": {
12
+ "motorcycle": 179,
13
+ "car_i_4_7_seat": 24,
14
+ "car_ii_9_seat": 0,
15
+ "bus_i_le_40_seat": 0,
16
+ "bus_ii": 2,
17
+ "light_truck": 0,
18
+ "heavy_truck": 0
19
+ },
20
+ "total_vehicles": 205
21
+ }
Quang Trung/weekend/17_15-17_20/frame_0016.jpg ADDED

Git LFS Details

  • SHA256: 96e9c3e10163b169d63c5964a363b324ce90648d5886ee38d8973b3d2d475a5f
  • Pointer size: 131 Bytes
  • Size of remote file: 430 kB
Quang Trung/weekend/17_15-17_20/frame_0024.jpg ADDED

Git LFS Details

  • SHA256: 09c1a2d81e1025ace82b5b3fda66d6e04743190cbf80a3c4282732f62ffafc5d
  • Pointer size: 131 Bytes
  • Size of remote file: 433 kB
Quang Trung/weekend/17_15-17_20/frame_0029.jpg ADDED

Git LFS Details

  • SHA256: c2f8e5d86c767815e381557664e49cf72b44289c92b36c400905a0bf12b2b83f
  • Pointer size: 131 Bytes
  • Size of remote file: 430 kB
Quang Trung/weekend/17_15-17_20/frame_0032.jpg ADDED

Git LFS Details

  • SHA256: 555ca35f4f3810a16d3fae4f2e1cdb7400b0b76e5f83878fcb99eb10bd70f035
  • Pointer size: 131 Bytes
  • Size of remote file: 433 kB
Quang Trung/weekend/17_15-17_20/frame_0035.jpg ADDED

Git LFS Details

  • SHA256: 178c73707de1a256aebd722cd10ee09dbcb24fdc90b0b5ff3657ac00e2fe39ff
  • Pointer size: 131 Bytes
  • Size of remote file: 432 kB
Quang Trung/weekend/17_15-17_20/frame_0052.jpg ADDED

Git LFS Details

  • SHA256: 2d478c64c322b91c6ca9261f15c3722f349b19a753bf1dd79d805e6f2895496d
  • Pointer size: 131 Bytes
  • Size of remote file: 431 kB
Quang Trung/weekend/17_15-17_20/frame_0078.jpg ADDED

Git LFS Details

  • SHA256: 44cbbaeb6ce0d8de227af7a464ec54869c3370d4722079b5c53bebe1ba4cc903
  • Pointer size: 131 Bytes
  • Size of remote file: 427 kB
Quang Trung/weekend/17_15-17_20/frame_0086.jpg ADDED

Git LFS Details

  • SHA256: efdf033ac788f27ca5e4ce3a7d8b9db0c14380c1363ba8eccc941bf1cf7f90d2
  • Pointer size: 131 Bytes
  • Size of remote file: 426 kB
Quang Trung/weekend/17_15-17_20/frame_0088.jpg ADDED

Git LFS Details

  • SHA256: f20122cc8d9e3bf3cb32e2b49205ad2b288b62b0aac722d65e2786741723a2dd
  • Pointer size: 131 Bytes
  • Size of remote file: 423 kB
Quang Trung/weekend/17_15-17_20/frame_0100.jpg ADDED

Git LFS Details

  • SHA256: 017c4ba3994af8c8d2674528a04a5795470b8a50256481f90edea9225e49a8af
  • Pointer size: 131 Bytes
  • Size of remote file: 426 kB
Quang Trung/weekend/17_15-17_20/frame_0101.jpg ADDED

Git LFS Details

  • SHA256: efc3ec91da9cb81cc40b4221052ca48a5b0fbbca2a9350e95c2463b52467cbd8
  • Pointer size: 131 Bytes
  • Size of remote file: 428 kB
Quang Trung/weekend/17_15-17_20/frame_0119.jpg ADDED

Git LFS Details

  • SHA256: 8e31cadc1fa33ccc4071d46728d0f765fcbb26ebb4f0335c409d258dc0cc1180
  • Pointer size: 131 Bytes
  • Size of remote file: 423 kB
Quang Trung/weekend/17_15-17_20/frame_0123.jpg ADDED

Git LFS Details

  • SHA256: 1f0526f05cb97cfd059f436ac71647c4a1301fec17a0647159ebeb31d2d7d788
  • Pointer size: 131 Bytes
  • Size of remote file: 418 kB
Quang Trung/weekend/17_15-17_20/frame_0143.jpg ADDED

Git LFS Details

  • SHA256: 7ea4cb1560f5415013c484fc4c6117eea294b5e9df1a552c3c39299b7e76ddd8
  • Pointer size: 131 Bytes
  • Size of remote file: 415 kB
Quang Trung/weekend/17_15-17_20/frame_0150.jpg ADDED

Git LFS Details

  • SHA256: 90e59d7d3b5814a5957d2b03872ad40b142ef273f056419b3f827e62921b20b7
  • Pointer size: 131 Bytes
  • Size of remote file: 415 kB
Quang Trung/weekend/17_15-17_20/frame_0155.jpg ADDED

Git LFS Details

  • SHA256: e9f68f05fcd5eab93b3fee1d41cdc661382f197e095d3db75923b16dc46bad4c
  • Pointer size: 131 Bytes
  • Size of remote file: 414 kB
Quang Trung/weekend/17_15-17_20/frame_0161.jpg ADDED

Git LFS Details

  • SHA256: beb8e9dc87ffe838ae5a5f3566c9ead9fab4385535765c80f81a9036b4b8dbad
  • Pointer size: 131 Bytes
  • Size of remote file: 419 kB
Quang Trung/weekend/17_15-17_20/frame_0162.jpg ADDED

Git LFS Details

  • SHA256: 3d13cbf53d52935f22fa6439a36426856beedb989d63fd9fe24215c07d0c1ae4
  • Pointer size: 131 Bytes
  • Size of remote file: 417 kB
Quang Trung/weekend/17_15-17_20/frame_0180.jpg ADDED

Git LFS Details

  • SHA256: c59ac5f9cc931202a54c5b211fdcdc95acd118a98a88a18d04fd9a6203dd742f
  • Pointer size: 131 Bytes
  • Size of remote file: 418 kB
Quang Trung/weekend/17_15-17_20/frame_0185.jpg ADDED

Git LFS Details

  • SHA256: 5bffdc1af8699a4ef61aeeac44c6d42aaf6fb6317bdf1dc80c9258e56ce0e32d
  • Pointer size: 131 Bytes
  • Size of remote file: 407 kB
Quang Trung/weekend/17_15-17_20/frame_0186.jpg ADDED

Git LFS Details

  • SHA256: 9dcf8c3cab0fe2cd3b1f368ac83520fb41847d89a039f8ebaa8663c0b23c07ba
  • Pointer size: 131 Bytes
  • Size of remote file: 407 kB
Quang Trung/weekend/17_15-17_20/frame_0187.jpg ADDED

Git LFS Details

  • SHA256: 1a7772ec4ed3af31896058ae74e3ebc14308f8b332474e72448ee57978438df0
  • Pointer size: 131 Bytes
  • Size of remote file: 400 kB
Quang Trung/weekend/17_15-17_20/frame_0188.jpg ADDED

Git LFS Details

  • SHA256: fc418717f7569a20ee75a211f3cae483aa172acee7afd718c43c05ebd22a45b8
  • Pointer size: 131 Bytes
  • Size of remote file: 405 kB
Quang Trung/weekend/17_15-17_20/frame_0194.jpg ADDED

Git LFS Details

  • SHA256: 582067357898517894f3d1cb713d234b07ba4cead65b6f7d730df398b880c57c
  • Pointer size: 131 Bytes
  • Size of remote file: 412 kB
Quang Trung/weekend/17_15-17_20/frame_0209.jpg ADDED

Git LFS Details

  • SHA256: f94c544da7347254e8f470d7ded78c1e528f2355a000da13e8644b4cc8c51df2
  • Pointer size: 131 Bytes
  • Size of remote file: 388 kB
Quang Trung/weekend/17_15-17_20/frame_0210.jpg ADDED

Git LFS Details

  • SHA256: 2046ae17bb46e96103fd05cd33fa2b95c01ca383a2b15b820969b1b5a20093ec
  • Pointer size: 131 Bytes
  • Size of remote file: 396 kB
Quang Trung/weekend/17_15-17_20/frame_0224.jpg ADDED

Git LFS Details

  • SHA256: 1c62a410973fb4f93aabe35cafd9bcc9d9d37fcd317d24dfcfb360e35595d2eb
  • Pointer size: 131 Bytes
  • Size of remote file: 409 kB
Quang Trung/weekend/17_15-17_20/frame_0235.jpg ADDED

Git LFS Details

  • SHA256: 475ba3ee1e6ea430cabf1f2676249f3b93695b99094b6c5e532481ec6500973c
  • Pointer size: 131 Bytes
  • Size of remote file: 407 kB
Quang Trung/weekend/17_15-17_20/frame_0237.jpg ADDED

Git LFS Details

  • SHA256: 3d24586579ac7a80b0a2f639f7b4e4cacc0105237c55021e2b47cd69c260c69d
  • Pointer size: 131 Bytes
  • Size of remote file: 411 kB
Quang Trung/weekend/17_15-17_20/frame_0246.jpg ADDED

Git LFS Details

  • SHA256: 863823778757cafb10af000086302bd52ff7fb6e2adfd039f26cc1f20d559dbd
  • Pointer size: 131 Bytes
  • Size of remote file: 420 kB
Quang Trung/weekend/17_15-17_20/frame_0267.jpg ADDED

Git LFS Details

  • SHA256: a511b037553f96c9554d315076ecdd2dd2c6de478abfd2d041ea62704fa61049
  • Pointer size: 131 Bytes
  • Size of remote file: 420 kB
Quang Trung/weekend/17_15-17_20/frame_0269.jpg ADDED

Git LFS Details

  • SHA256: e29100983e1a5aa0da467734c7f222c233659d4ea3db118629ed0163d393fe6e
  • Pointer size: 131 Bytes
  • Size of remote file: 423 kB
Quang Trung/weekend/17_15-17_20/frame_0275.jpg ADDED

Git LFS Details

  • SHA256: dfec160ebbe06ab8175f8ec2adb0a40525c5b1cbdd50cb3d2ef2a1c18033b640
  • Pointer size: 131 Bytes
  • Size of remote file: 421 kB
Quang Trung/weekend/17_15-17_20/frame_0286.jpg ADDED

Git LFS Details

  • SHA256: af21ea307ee9e62f470cb39c46e24c70051b21182c142e49ed856a9e03161668
  • Pointer size: 131 Bytes
  • Size of remote file: 415 kB
Quang Trung/weekend/17_15-17_20/frame_0288.jpg ADDED

Git LFS Details

  • SHA256: 3c1b5156abe7eab32d1dfa46d90a62bc9c8de3564b6b3c112064d0fba75a5ad0
  • Pointer size: 131 Bytes
  • Size of remote file: 408 kB
Quang Trung/weekend/17_30-17_35/counts.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "sheet": "Quang Trung",
3
+ "location_num": 6,
4
+ "period": "weekend",
5
+ "session": "PM",
6
+ "time_window": "17:30-17:35",
7
+ "source_video": "/mnt/disk2/aiotlab/tritd/traffic-videos/data/6. Palm Café - Số 35, Quang Trung, Trần Hưng Đạo, Hoàn Kiếm, HN/cuối tuần/06_2025_06_08_1659_Quang Trung.mp4",
8
+ "offset_in_video_sec": 1860,
9
+ "extract_duration_sec": 300.0,
10
+ "fps": 1,
11
+ "vehicle_counts": {
12
+ "motorcycle": 170,
13
+ "car_i_4_7_seat": 26,
14
+ "car_ii_9_seat": 0,
15
+ "bus_i_le_40_seat": 0,
16
+ "bus_ii": 2,
17
+ "light_truck": 0,
18
+ "heavy_truck": 0
19
+ },
20
+ "total_vehicles": 198
21
+ }
counts_summary.csv ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ vehicle,count
2
+ motorcycle,37682
3
+ car_i_4_7_seat,8637
4
+ bus_ii,409
5
+ bus_i_le_40_seat,329
6
+ car_ii_9_seat,269
7
+ light_truck,165
8
+ heavy_truck,17
counts_summary.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "motorcycle": 37682,
3
+ "car_i_4_7_seat": 8637,
4
+ "car_ii_9_seat": 269,
5
+ "bus_i_le_40_seat": 329,
6
+ "bus_ii": 409,
7
+ "light_truck": 165,
8
+ "heavy_truck": 17
9
+ }
scripts/count_vehicle_types.py ADDED
@@ -0,0 +1,120 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ """Count vehicle types across JSON files in a folder.
3
+
4
+ Usage:
5
+ python3 scripts/count_vehicle_types.py /path/to/folder
6
+
7
+ The script scans all `*.json` files (optionally recursively), attempts to
8
+ extract vehicle counts from common JSON shapes, and prints + writes a summary.
9
+ """
10
+
11
+ import argparse
12
+ import json
13
+ import os
14
+ import sys
15
+ import glob
16
+ from collections import Counter
17
+
18
+
19
+ def extract_counts(obj, counter):
20
+ # Recursively explore JSON and aggregate counts into `counter` (Counter)
21
+ if isinstance(obj, dict):
22
+ # Case: dict looks like {"car": 10, "motorbike": 5}
23
+ if obj and all(isinstance(v, int) for v in obj.values()):
24
+ for k, v in obj.items():
25
+ counter[k] += v
26
+ return
27
+
28
+ # Case: dict items like {"type": "car", "count": 10}
29
+ if "count" in obj and any(k in obj for k in ("type", "class", "vehicle", "label", "name")):
30
+ name = None
31
+ for key in ("type", "class", "vehicle", "label", "name"):
32
+ if key in obj:
33
+ name = obj.get(key)
34
+ break
35
+ try:
36
+ cnt = int(obj.get("count", 0))
37
+ except Exception:
38
+ cnt = 0
39
+ if name:
40
+ counter[str(name)] += cnt
41
+ return
42
+
43
+ # Otherwise, traverse values
44
+ for v in obj.values():
45
+ extract_counts(v, counter)
46
+
47
+ elif isinstance(obj, list):
48
+ for item in obj:
49
+ extract_counts(item, counter)
50
+
51
+
52
+ def process_file(path, counter):
53
+ try:
54
+ with open(path, "r", encoding="utf-8") as f:
55
+ data = json.load(f)
56
+ except Exception as e:
57
+ print(f"Skipped {path}: {e}", file=sys.stderr)
58
+ return
59
+ extract_counts(data, counter)
60
+
61
+
62
+ def write_outputs(counter, out_json=None, out_csv=None):
63
+ if out_json:
64
+ try:
65
+ with open(out_json, "w", encoding="utf-8") as f:
66
+ json.dump(dict(counter), f, ensure_ascii=False, indent=2)
67
+ except Exception as e:
68
+ print(f"Failed to write JSON output: {e}", file=sys.stderr)
69
+ if out_csv:
70
+ try:
71
+ with open(out_csv, "w", encoding="utf-8") as f:
72
+ f.write("vehicle,count\n")
73
+ for k, v in counter.most_common():
74
+ f.write(f"{k},{v}\n")
75
+ except Exception as e:
76
+ print(f"Failed to write CSV output: {e}", file=sys.stderr)
77
+
78
+
79
+ def main():
80
+ ap = argparse.ArgumentParser(description="Count vehicle types from JSON files in a folder")
81
+ ap.add_argument("folder", nargs="?", default=".", help="Folder to scan for JSON files")
82
+ ap.add_argument("--recursive", action="store_true", help="Scan folders recursively")
83
+ ap.add_argument("--out-json", default=None, help="Path to write summary JSON")
84
+ ap.add_argument("--out-csv", default=None, help="Path to write summary CSV")
85
+ args = ap.parse_args()
86
+
87
+ folder = args.folder
88
+ if not os.path.isdir(folder):
89
+ print(f"Not a folder: {folder}", file=sys.stderr)
90
+ sys.exit(2)
91
+
92
+ pattern = os.path.join(folder, "**", "*.json") if args.recursive else os.path.join(folder, "*.json")
93
+ files = glob.glob(pattern, recursive=args.recursive)
94
+ if not files:
95
+ print("No JSON files found", file=sys.stderr)
96
+ sys.exit(1)
97
+
98
+ counter = Counter()
99
+ for fp in sorted(files):
100
+ process_file(fp, counter)
101
+
102
+ # Print results
103
+ print("Vehicle counts summary:")
104
+ for k, v in counter.most_common():
105
+ print(f"{k}: {v}")
106
+
107
+ # Default outputs if none provided
108
+ if not args.out_json and not args.out_csv:
109
+ out_json = os.path.join(folder, "counts_summary.json")
110
+ out_csv = os.path.join(folder, "counts_summary.csv")
111
+ else:
112
+ out_json = args.out_json
113
+ out_csv = args.out_csv
114
+
115
+ write_outputs(counter, out_json=out_json, out_csv=out_csv)
116
+ print("Wrote:", out_json if out_json else "-", out_csv if out_csv else "-")
117
+
118
+
119
+ if __name__ == "__main__":
120
+ main()