Jerry Hill commited on
Commit
5988ab2
·
1 Parent(s): ed2222b

adding yolo to pipeline

Browse files
Files changed (11) hide show
  1. .gitignore +3 -1
  2. README.md +60 -13
  3. classification.json +781 -781
  4. config.py +31 -0
  5. inference.py +2 -1
  6. play_analysis.json +917 -941
  7. requirements.txt +2 -0
  8. run_all_clips.py +88 -10
  9. speed_test.py +3 -2
  10. video.py +17 -6
  11. yolo_processor.py +327 -0
.gitignore CHANGED
@@ -1,3 +1,5 @@
1
  .venv/
2
  __pycache__/
3
- data/*.mov
 
 
 
1
  .venv/
2
  __pycache__/
3
+ data/*
4
+ segments/*
5
+ segments/yolo/*
README.md CHANGED
@@ -99,9 +99,10 @@ graph TD
99
  ## Repository Structure
100
 
101
  ```plaintext
102
- ├── config.py # 🔧 Central configuration and constants
103
  ├── video.py # 🎬 Video classification and NFL play analysis
104
  ├── audio.py # 🎙️ Audio transcription with NFL enhancements
 
105
  ├── inference.py # 🔄 Backward compatibility interface
106
  ├── run_all_clips.py # 🚀 Main processing pipeline orchestrator
107
  ├── speed_test.py # ⚡ Performance benchmarking tools
@@ -142,7 +143,7 @@ cd hf-video-scoring
142
  conda create -n nfl-play python=3.11 -y
143
  conda activate nfl-play
144
  conda install -y -c pytorch -c conda-forge pytorch torchvision torchaudio cpuonly
145
- pip install pytorchvideo huggingface_hub ffmpeg-python transformers openai-whisper
146
  ```
147
 
148
  **Using pip in a virtualenv:**
@@ -197,7 +198,7 @@ This will:
197
 
198
  The pipeline is now optimized for continuous processing with separate video and audio phases:
199
 
200
- **🚀 Video-only processing (85% faster for real-time analysis):**
201
  ```bash
202
  python run_all_clips.py --video-only
203
  ```
@@ -207,7 +208,7 @@ python run_all_clips.py --video-only
207
  python run_all_clips.py --audio-only
208
  ```
209
 
210
- **🎬 Full pipeline (video + audio in sequence):**
211
  ```bash
212
  python run_all_clips.py
213
  ```
@@ -217,6 +218,11 @@ python run_all_clips.py
217
  python run_all_clips.py --video-only --max-clips 5
218
  ```
219
 
 
 
 
 
 
220
  The system:
221
  * Processes video classification and play analysis first (Phase 1)
222
  * Then processes audio transcription in batch (Phase 2, if enabled)
@@ -234,15 +240,15 @@ The system:
234
  # 1. Capture live screen content
235
  swift ContinuousScreenSplitter.swift
236
 
237
- # 2. Process video quickly for immediate play detection (in another terminal)
238
  source .venv/bin/activate
239
- python run_all_clips.py --input-dir segments --video-only
240
 
241
  # 3. View immediate NFL play analysis
242
  cat play_analysis.json | jq '.summary'
243
 
244
  # 4. Add transcripts later when time allows
245
- python run_all_clips.py --input-dir segments --audio-only
246
 
247
  # 5. View complete analysis
248
  cat transcripts.json | jq '.[] | select(. != "")'
@@ -292,6 +298,28 @@ This workflow captures live NFL content, automatically segments it, and then ana
292
  }
293
  ```
294
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
295
  ## Audio Transcription Features
296
 
297
  The system uses **Whisper-Medium** with NFL-specific enhancements for superior audio transcription:
@@ -344,14 +372,29 @@ After: "is the sixth best quarterback in the NFL"
344
 
345
  ### Modular Architecture Benefits
346
 
347
- * **🔧 Easy Configuration**: All settings centralized in `config.py`
 
348
  * **🎯 Focused Development**: Separate modules for video, audio, and configuration
349
  * **🧪 Better Testing**: Individual modules can be tested in isolation
350
  * **⚡ Performance Tuning**: Optimize video and audio processing independently
351
  * **📈 Scalability**: Add new models or sports without affecting existing code
352
  * **🔄 Backward Compatibility**: Existing scripts continue to work unchanged
353
 
354
- See `ARCHITECTURE.md` for detailed technical documentation.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
355
 
356
  ## Troubleshooting
357
 
@@ -385,18 +428,22 @@ See `ARCHITECTURE.md` for detailed technical documentation.
385
  ## Command Reference
386
 
387
  ```bash
388
- # Basic usage
389
- python run_all_clips.py # Full pipeline
390
- python run_all_clips.py --video-only # Fast video analysis
391
  python run_all_clips.py --audio-only # Add transcripts later
392
 
 
 
 
 
393
  # Testing and development
394
  python run_all_clips.py --max-clips 5 # Limit to 5 clips
395
  python run_all_clips.py --video-only --max-clips 3 # Fast test with 3 clips
396
  python speed_test.py # Performance benchmarking
397
 
398
  # Custom files and directories
399
- python run_all_clips.py --input-dir segments # Different input directory
400
  python run_all_clips.py --classification-file my_results.json # Custom output file
401
 
402
  # Single clip analysis
 
99
  ## Repository Structure
100
 
101
  ```plaintext
102
+ ├── config.py # 🔧 Central configuration, directories, and constants
103
  ├── video.py # 🎬 Video classification and NFL play analysis
104
  ├── audio.py # 🎙️ Audio transcription with NFL enhancements
105
+ ├── yolo_processor.py # 🎯 YOLO object detection preprocessing
106
  ├── inference.py # 🔄 Backward compatibility interface
107
  ├── run_all_clips.py # 🚀 Main processing pipeline orchestrator
108
  ├── speed_test.py # ⚡ Performance benchmarking tools
 
143
  conda create -n nfl-play python=3.11 -y
144
  conda activate nfl-play
145
  conda install -y -c pytorch -c conda-forge pytorch torchvision torchaudio cpuonly
146
+ pip install pytorchvideo huggingface_hub ffmpeg-python transformers openai-whisper ultralytics
147
  ```
148
 
149
  **Using pip in a virtualenv:**
 
198
 
199
  The pipeline is now optimized for continuous processing with separate video and audio phases:
200
 
201
+ **🚀 Default: YOLO + video analysis (auto-enabled for segments):**
202
  ```bash
203
  python run_all_clips.py --video-only
204
  ```
 
208
  python run_all_clips.py --audio-only
209
  ```
210
 
211
+ **🎬 Full pipeline (YOLO + video + audio):**
212
  ```bash
213
  python run_all_clips.py
214
  ```
 
218
  python run_all_clips.py --video-only --max-clips 5
219
  ```
220
 
221
+ **⚡ Skip YOLO for faster processing:**
222
+ ```bash
223
+ python run_all_clips.py --no-yolo --video-only
224
+ ```
225
+
226
  The system:
227
  * Processes video classification and play analysis first (Phase 1)
228
  * Then processes audio transcription in batch (Phase 2, if enabled)
 
240
  # 1. Capture live screen content
241
  swift ContinuousScreenSplitter.swift
242
 
243
+ # 2. Process with automatic YOLO object detection (default behavior)
244
  source .venv/bin/activate
245
+ python run_all_clips.py --video-only
246
 
247
  # 3. View immediate NFL play analysis
248
  cat play_analysis.json | jq '.summary'
249
 
250
  # 4. Add transcripts later when time allows
251
+ python run_all_clips.py --audio-only
252
 
253
  # 5. View complete analysis
254
  cat transcripts.json | jq '.[] | select(. != "")'
 
298
  }
299
  ```
300
 
301
+ ## YOLO Object Detection Integration
302
+
303
+ The system now includes **YOLOv11** integration for enhanced video analysis with object detection:
304
+
305
+ ### 🎯 **YOLO Enhancement Features**
306
+ * **Player Detection**: Identifies football players, referees, and coaches
307
+ * **Ball Tracking**: Detects footballs and other sports equipment
308
+ * **Spatial Analysis**: Provides bounding boxes for key game elements
309
+ * **Visual Annotations**: Adds detection overlays while preserving original audio
310
+ * **Selective Processing**: Only applied to video classification, audio uses original clips
311
+
312
+ ### 🔧 **YOLO Integration Workflow**
313
+ 1. **Phase 0**: Raw clips in `/segments/` → YOLO processing → `/segments/yolo/`
314
+ 2. **Phase 1**: Video classification uses YOLO-annotated clips
315
+ 3. **Phase 2**: Audio transcription uses original clips (preserves quality)
316
+
317
+ ### ⚡ **Performance Considerations**
318
+ * **YOLO Model**: Nano size for speed vs. accuracy balance
319
+ * **Parallel Processing**: Video and audio pipelines remain independent
320
+ * **Auto-Enabled**: Automatically enabled for `segments` directory
321
+ * **Control Flags**: Use `--no-yolo` to disable or `--use-yolo` to force enable
322
+
323
  ## Audio Transcription Features
324
 
325
  The system uses **Whisper-Medium** with NFL-specific enhancements for superior audio transcription:
 
372
 
373
  ### Modular Architecture Benefits
374
 
375
+ * **🔧 Centralized Configuration**: All directories, paths, and settings in `config.py`
376
+ * **📁 Flexible Directory Structure**: Configurable input/output/cache directories
377
  * **🎯 Focused Development**: Separate modules for video, audio, and configuration
378
  * **🧪 Better Testing**: Individual modules can be tested in isolation
379
  * **⚡ Performance Tuning**: Optimize video and audio processing independently
380
  * **📈 Scalability**: Add new models or sports without affecting existing code
381
  * **🔄 Backward Compatibility**: Existing scripts continue to work unchanged
382
 
383
+ ### Configurable Directory Structure
384
+
385
+ All directories are now configurable through `config.py`:
386
+
387
+ ```python
388
+ # Input directories
389
+ DEFAULT_DATA_DIR = "data" # Default video clips
390
+ DEFAULT_SEGMENTS_DIR = "segments" # Screen capture segments
391
+ DEFAULT_YOLO_OUTPUT_DIR = "segments/yolo" # YOLO processed clips
392
+
393
+ # Cache directories (None = use system defaults)
394
+ TORCH_HUB_CACHE_DIR = None # PyTorch model cache
395
+ HUGGINGFACE_CACHE_DIR = None # HuggingFace model cache
396
+ DEFAULT_TEMP_DIR = None # Temporary processing
397
+ ```
398
 
399
  ## Troubleshooting
400
 
 
428
  ## Command Reference
429
 
430
  ```bash
431
+ # Basic usage (auto-enables YOLO for segments directory)
432
+ python run_all_clips.py # Full pipeline with YOLO
433
+ python run_all_clips.py --video-only # YOLO + video analysis only
434
  python run_all_clips.py --audio-only # Add transcripts later
435
 
436
+ # YOLO control
437
+ python run_all_clips.py --no-yolo --video-only # Skip YOLO for speed
438
+ python run_all_clips.py --use-yolo --input-dir data # Force YOLO for other directories
439
+
440
  # Testing and development
441
  python run_all_clips.py --max-clips 5 # Limit to 5 clips
442
  python run_all_clips.py --video-only --max-clips 3 # Fast test with 3 clips
443
  python speed_test.py # Performance benchmarking
444
 
445
  # Custom files and directories
446
+ python run_all_clips.py --input-dir data --no-yolo # Process data directory without YOLO
447
  python run_all_clips.py --classification-file my_results.json # Custom output file
448
 
449
  # Single clip analysis
classification.json CHANGED
@@ -1,1674 +1,1674 @@
1
  {
2
- "segment_001.mov": [
3
  [
4
  "\"catching or throwing baseball\"",
5
- 0.003259257646277547
6
  ],
7
  [
8
  "\"playing cricket\"",
9
- 0.002848330419510603
10
  ],
11
  [
12
- "applauding",
13
- 0.0027428145986050367
14
  ],
15
  [
16
- "\"catching or throwing softball\"",
17
- 0.002633878029882908
18
  ],
19
  [
20
- "\"passing American football (in game)\"",
21
- 0.0025873929262161255
22
  ]
23
  ],
24
- "segment_002.mov": [
25
  [
26
  "\"mowing lawn\"",
27
- 0.004539191722869873
28
  ],
29
  [
30
- "\"riding or walking with horse\"",
31
- 0.002820482011884451
32
  ],
33
  [
34
- "\"driving tractor\"",
35
- 0.002591945929452777
36
  ],
37
  [
38
- "\"catching or throwing baseball\"",
39
- 0.002587514230981469
40
  ],
41
  [
42
- "archery",
43
- 0.0025512496940791607
44
  ]
45
  ],
46
- "segment_003.mov": [
47
  [
48
  "\"hurling (sport)\"",
49
- 0.0035289316438138485
50
  ],
51
  [
52
  "headbutting",
53
- 0.0029045743867754936
54
  ],
55
  [
56
- "\"passing American football (not in game)\"",
57
- 0.002668950939550996
58
  ],
59
  [
60
- "\"pumping fist\"",
61
- 0.0026475831400603056
62
  ],
63
  [
64
- "\"playing cricket\"",
65
- 0.002635735785588622
66
  ]
67
  ],
68
- "segment_004.mov": [
69
  [
70
- "applauding",
71
- 0.00304257869720459
72
  ],
73
  [
74
- "headbutting",
75
- 0.0029725206550210714
76
  ],
77
  [
78
- "\"pumping fist\"",
79
- 0.0029444803949445486
80
  ],
81
  [
82
- "\"hurling (sport)\"",
83
- 0.0027822419069707394
84
  ],
85
  [
86
- "\"shaking hands\"",
87
- 0.002624393440783024
88
  ]
89
  ],
90
- "segment_005.mov": [
91
  [
92
- "\"catching or throwing baseball\"",
93
- 0.003370030550286174
94
  ],
95
  [
96
- "\"pumping fist\"",
97
- 0.00289507070556283
98
  ],
99
  [
100
- "\"catching or throwing frisbee\"",
101
- 0.0026615660171955824
102
  ],
103
  [
104
- "\"eating hotdog\"",
105
- 0.002651733811944723
106
  ],
107
  [
108
- "\"javelin throw\"",
109
- 0.0026478723157197237
110
  ]
111
  ],
112
- "segment_006.mov": [
113
  [
114
- "\"riding mountain bike\"",
115
- 0.0030539515428245068
116
  ],
117
  [
118
- "\"bench pressing\"",
119
- 0.0030068582855165005
120
  ],
121
  [
122
- "\"changing wheel\"",
123
- 0.0028557234909385443
124
  ],
125
  [
126
- "\"checking tires\"",
127
- 0.002828161232173443
128
  ],
129
  [
130
- "\"changing oil\"",
131
- 0.0025825132615864277
132
  ]
133
  ],
134
- "segment_007.mov": [
135
  [
136
- "\"changing oil\"",
137
- 0.003507673041895032
138
  ],
139
  [
140
- "\"pushing wheelchair\"",
141
- 0.0028540242929011583
142
  ],
143
  [
144
  "motorcycling",
145
- 0.002735486486926675
146
  ],
147
  [
148
- "\"checking tires\"",
149
- 0.0026065800338983536
150
  ],
151
  [
152
- "\"changing wheel\"",
153
- 0.0026001674123108387
154
  ]
155
  ],
156
- "segment_008.mov": [
157
  [
158
- "motorcycling",
159
- 0.0034892940893769264
160
  ],
161
  [
162
- "\"riding mountain bike\"",
163
- 0.0027264610398560762
164
  ],
165
  [
166
- "\"pushing wheelchair\"",
167
- 0.0026729153469204903
168
  ],
169
  [
170
- "\"changing oil\"",
171
- 0.002655936172232032
172
  ],
173
  [
174
- "snowmobiling",
175
- 0.002622972708195448
176
  ]
177
  ],
178
- "segment_009.mov": [
179
  [
180
- "\"kicking field goal\"",
181
- 0.0051559642888605595
182
  ],
183
  [
184
- "\"tossing coin\"",
185
- 0.002858997555449605
186
  ],
187
  [
188
- "\"passing American football (in game)\"",
189
- 0.002840855158865452
190
  ],
191
  [
192
- "\"high kick\"",
193
- 0.0024956425186246634
194
  ],
195
  [
196
  "headbutting",
197
- 0.002494481625035405
198
  ]
199
  ],
200
- "segment_010.mov": [
201
  [
202
- "\"tossing coin\"",
203
- 0.003494303673505783
204
  ],
205
  [
206
- "headbutting",
207
- 0.003139702370390296
208
  ],
209
  [
210
- "\"kicking field goal\"",
211
- 0.003000226803123951
212
  ],
213
  [
214
- "\"passing American football (in game)\"",
215
- 0.0028010711539536715
216
  ],
217
  [
218
- "\"pumping fist\"",
219
- 0.0026133027859032154
220
  ]
221
  ],
222
- "segment_011.mov": [
223
  [
224
- "headbutting",
225
- 0.0035944455303251743
226
  ],
227
  [
228
- "\"kicking field goal\"",
229
- 0.002746515441685915
230
  ],
231
  [
232
- "\"passing American football (in game)\"",
233
- 0.00274651194922626
234
  ],
235
  [
236
- "cheerleading",
237
- 0.0027097328566014767
238
  ],
239
  [
240
- "\"playing ice hockey\"",
241
- 0.002675419207662344
242
  ]
243
  ],
244
- "segment_012.mov": [
245
- [
246
- "cheerleading",
247
- 0.0033036908134818077
248
- ],
249
  [
250
  "\"dancing macarena\"",
251
- 0.0031919179018586874
252
  ],
253
  [
254
- "applauding",
255
- 0.0027217946480959654
256
  ],
257
  [
258
  "\"hitting baseball\"",
259
- 0.0026708708610385656
 
 
 
 
260
  ],
261
  [
262
  "\"garbage collecting\"",
263
- 0.0026213040109723806
264
  ]
265
  ],
266
- "segment_013.mov": [
 
 
 
 
267
  [
268
  "\"pumping fist\"",
269
- 0.0035472228191792965
270
  ],
271
  [
272
  "\"kicking field goal\"",
273
- 0.0027715854812413454
274
  ],
275
  [
276
  "\"dunking basketball\"",
277
- 0.0027416404336690903
278
- ],
279
- [
280
- "applauding",
281
- 0.002673310926184058
282
  ],
283
  [
284
  "celebrating",
285
- 0.002629267517477274
286
  ]
287
  ],
288
- "segment_014.mov": [
289
  [
290
  "headbutting",
291
- 0.0038350492250174284
292
  ],
293
  [
294
- "bobsledding",
295
- 0.002937863813713193
296
  ],
297
  [
298
- "\"playing ice hockey\"",
299
- 0.002785387681797147
300
  ],
301
  [
302
- "\"punching person (boxing)\"",
303
- 0.002671806840226054
304
  ],
305
  [
306
- "\"changing wheel\"",
307
- 0.0026315213181078434
308
  ]
309
  ],
310
- "segment_015.mov": [
311
  [
312
- "\"passing American football (in game)\"",
313
- 0.00389948021620512
314
  ],
315
  [
316
- "\"side kick\"",
317
- 0.003301523393020034
318
  ],
319
  [
320
- "\"kicking field goal\"",
321
- 0.002986735198646784
322
  ],
323
  [
324
- "\"passing American football (not in game)\"",
325
- 0.0026217757258564234
326
  ],
327
  [
328
- "\"catching or throwing baseball\"",
329
- 0.002540471963584423
330
  ]
331
  ],
332
- "segment_016.mov": [
333
  [
334
- "\"passing American football (in game)\"",
335
- 0.006536518689244986
336
  ],
337
  [
338
- "\"side kick\"",
339
- 0.0025378491263836622
340
  ],
341
  [
342
- "\"passing American football (not in game)\"",
343
- 0.0025076796300709248
344
  ],
345
  [
346
- "\"kicking field goal\"",
347
- 0.002507618861272931
348
  ],
349
  [
350
- "\"high kick\"",
351
- 0.0024923686869442463
352
  ]
353
  ],
354
- "segment_017.mov": [
355
- [
356
- "\"passing American football (in game)\"",
357
- 0.004528654273599386
358
- ],
359
  [
360
  "\"kicking field goal\"",
361
- 0.003415569895878434
362
  ],
363
  [
364
  "\"passing American football (not in game)\"",
365
- 0.0026175878010690212
366
  ],
367
  [
368
  "\"side kick\"",
369
- 0.0025776273105293512
370
  ],
371
  [
372
- "\"high kick\"",
373
- 0.0025026851799339056
 
 
 
 
374
  ]
375
  ],
376
- "segment_018.mov": [
377
  [
378
- "\"passing American football (in game)\"",
379
- 0.004061450716108084
380
  ],
381
  [
382
- "\"side kick\"",
383
- 0.0038009993731975555
384
  ],
385
  [
386
- "\"kicking field goal\"",
387
- 0.002601894084364176
388
  ],
389
  [
390
- "\"high kick\"",
391
- 0.002582114189863205
392
  ],
393
  [
394
- "\"passing American football (not in game)\"",
395
- 0.0025175546761602163
396
  ]
397
  ],
398
- "segment_019.mov": [
 
 
 
 
399
  [
400
  "\"passing American football (in game)\"",
401
- 0.006576324347406626
402
  ],
403
  [
404
  "\"passing American football (not in game)\"",
405
- 0.002554940525442362
406
  ],
407
  [
408
- "\"kicking field goal\"",
409
- 0.0024935186374932528
410
  ],
411
  [
412
  "\"side kick\"",
413
- 0.0024903316516429186
414
- ],
415
- [
416
- "\"catching or throwing frisbee\"",
417
- 0.002489960053935647
418
  ]
419
  ],
420
- "segment_020.mov": [
421
  [
422
  "\"passing American football (in game)\"",
423
- 0.006745155900716782
424
  ],
425
  [
426
  "\"passing American football (not in game)\"",
427
- 0.002495990600436926
428
  ],
429
  [
430
  "\"kicking field goal\"",
431
- 0.0024898555129766464
432
  ],
433
  [
434
  "headbutting",
435
- 0.002489602193236351
436
  ],
437
  [
438
- "\"shaking hands\"",
439
- 0.0024894699454307556
440
  ]
441
  ],
442
- "segment_021.mov": [
443
  [
444
- "\"passing American football (in game)\"",
445
- 0.004887602757662535
446
  ],
447
  [
448
- "\"passing American football (not in game)\"",
449
- 0.002793429885059595
450
  ],
451
  [
452
- "situp",
453
- 0.0026539755053818226
454
  ],
455
  [
456
- "\"dribbling basketball\"",
457
- 0.0026028482243418694
458
  ],
459
  [
460
- "\"throwing ball\"",
461
- 0.002529650926589966
462
  ]
463
  ],
464
- "segment_022.mov": [
465
  [
466
- "\"pumping fist\"",
467
- 0.002948896726593375
468
  ],
469
  [
470
- "\"passing American football (in game)\"",
471
- 0.0028372337110340595
472
  ],
473
  [
474
- "\"tossing coin\"",
475
- 0.0027690029237419367
476
  ],
477
  [
478
- "\"shaking hands\"",
479
- 0.0027542426250874996
480
  ],
481
  [
482
- "headbutting",
483
- 0.0026179237756878138
484
  ]
485
  ],
486
- "segment_023.mov": [
487
  [
488
- "\"pumping fist\"",
489
- 0.003991341684013605
490
  ],
491
  [
492
- "headbutting",
493
- 0.002623251872137189
494
  ],
495
  [
496
- "motorcycling",
497
- 0.0025920518673956394
498
  ],
499
  [
500
- "skydiving",
501
- 0.0025866003707051277
502
  ],
503
  [
504
- "bobsledding",
505
- 0.0025851819664239883
506
  ]
507
  ],
508
- "segment_024.mov": [
509
  [
510
  "\"riding a bike\"",
511
- 0.0037740382831543684
512
  ],
513
  [
514
- "motorcycling",
515
- 0.002751761581748724
516
  ],
517
  [
518
- "bobsledding",
519
- 0.0026172574143856764
520
  ],
521
  [
522
- "\"riding unicycle\"",
523
- 0.0025924895890057087
524
  ],
525
  [
526
- "\"pumping fist\"",
527
- 0.0025839442387223244
528
  ]
529
  ],
530
- "segment_025.mov": [
531
  [
532
  "bobsledding",
533
- 0.004564006347209215
534
  ],
535
  [
536
- "\"shaking hands\"",
537
- 0.0026650093495845795
538
  ],
539
  [
540
- "motorcycling",
541
- 0.002605688525363803
542
  ],
543
  [
544
- "\"pumping fist\"",
545
- 0.0026000377256423235
546
  ],
547
  [
548
- "skydiving",
549
- 0.0025698416866362095
550
  ]
551
  ],
552
- "segment_026.mov": [
553
  [
554
- "\"tossing coin\"",
555
- 0.005768336355686188
556
  ],
557
  [
558
- "squat",
559
- 0.0025260422844439745
560
  ],
561
  [
562
- "\"side kick\"",
563
- 0.0025187088176608086
564
  ],
565
  [
566
- "\"shaking hands\"",
567
- 0.0025166154373437166
568
  ],
569
  [
570
- "\"kicking field goal\"",
571
- 0.0025109625421464443
572
  ]
573
  ],
574
- "segment_027.mov": [
575
  [
576
- "\"carrying baby\"",
577
- 0.0028944576624780893
578
  ],
579
  [
580
- "\"side kick\"",
581
- 0.002688055858016014
582
  ],
583
  [
584
- "\"salsa dancing\"",
585
- 0.002644676947966218
586
  ],
587
  [
588
- "\"hula hooping\"",
589
- 0.0026000014040619135
590
  ],
591
  [
592
- "archery",
593
- 0.002581424079835415
594
  ]
595
  ],
596
- "segment_028.mov": [
597
  [
598
  "\"stretching arm\"",
599
- 0.004183173179626465
600
  ],
601
  [
602
- "archery",
603
- 0.0028685072902590036
604
  ],
605
  [
606
- "\"carrying baby\"",
607
- 0.002629334107041359
608
  ],
609
  [
610
- "yoga",
611
- 0.0025525041855871677
612
  ],
613
  [
614
- "\"stretching leg\"",
615
- 0.0025523642543703318
616
  ]
617
  ],
618
- "segment_029.mov": [
619
  [
620
- "\"getting a tattoo\"",
621
- 0.0036486154422163963
622
  ],
623
  [
624
- "archery",
625
- 0.0027306571137160063
626
  ],
627
  [
628
- "\"punching person (boxing)\"",
629
- 0.0027052827645093203
630
  ],
631
  [
632
- "\"punching bag\"",
633
- 0.002618985017761588
634
  ],
635
  [
636
- "squat",
637
- 0.0026112094055861235
638
  ]
639
  ],
640
- "segment_030.mov": [
641
  [
642
  "\"spray painting\"",
643
- 0.004089465364813805
644
  ],
645
  [
646
  "\"getting a tattoo\"",
647
- 0.002762633841484785
648
  ],
649
  [
650
- "\"playing paintball\"",
651
- 0.0027071302756667137
652
  ],
653
  [
654
- "\"changing wheel\"",
655
- 0.0026773668359965086
656
  ],
657
  [
658
- "bobsledding",
659
- 0.0025922050699591637
660
  ]
661
  ],
662
- "segment_031.mov": [
663
  [
664
- "\"mowing lawn\"",
665
- 0.0034001749008893967
666
  ],
667
  [
668
- "\"passing American football (not in game)\"",
669
- 0.003030994674190879
670
  ],
671
  [
672
- "\"catching or throwing baseball\"",
673
- 0.0028556634206324816
674
  ],
675
  [
676
- "\"pumping fist\"",
677
- 0.002578843617811799
678
  ],
679
  [
680
  "\"riding or walking with horse\"",
681
- 0.002575062680989504
682
  ]
683
  ],
684
- "segment_032.mov": [
685
  [
686
- "\"passing American football (in game)\"",
687
- 0.003045632503926754
688
  ],
689
  [
690
- "marching",
691
- 0.0030235128942877054
692
  ],
693
  [
694
- "\"passing American football (not in game)\"",
695
- 0.0029362209606915712
696
  ],
697
  [
698
- "\"kicking field goal\"",
699
- 0.0027396646328270435
700
  ],
701
  [
702
- "\"hurling (sport)\"",
703
- 0.002676320029422641
704
  ]
705
  ],
706
- "segment_033.mov": [
707
  [
708
- "\"mowing lawn\"",
709
- 0.004852019250392914
710
  ],
711
  [
712
  "\"passing American football (not in game)\"",
713
- 0.002654429292306304
714
  ],
715
  [
716
  "\"hurling (sport)\"",
717
- 0.002581879962235689
718
  ],
719
  [
720
- "\"kicking soccer ball\"",
721
- 0.0025664607528597116
722
  ],
723
  [
724
- "\"juggling soccer ball\"",
725
- 0.002544356742873788
726
  ]
727
  ],
728
- "segment_034.mov": [
729
  [
730
  "archery",
731
- 0.004724352620542049
732
  ],
733
  [
734
- "\"trimming or shaving beard\"",
735
- 0.0026578360702842474
736
  ],
737
  [
738
- "\"golf driving\"",
739
- 0.002610759809613228
740
  ],
741
  [
742
- "\"tossing coin\"",
743
- 0.002541653113439679
744
  ],
745
  [
746
- "\"mowing lawn\"",
747
- 0.0025332642253488302
748
  ]
749
  ],
750
- "segment_035.mov": [
751
  [
752
  "\"playing harmonica\"",
753
- 0.006103646010160446
754
  ],
755
  [
756
- "whistling",
757
- 0.002615551697090268
758
  ],
759
  [
760
- "smoking",
761
- 0.0025100400671362877
762
  ],
763
  [
764
- "yawning",
765
- 0.0025017866864800453
766
  ],
767
  [
768
- "\"playing ukulele\"",
769
- 0.0025011510588228703
770
  ]
771
  ],
772
- "segment_036.mov": [
773
  [
774
- "\"passing American football (in game)\"",
775
- 0.006577454507350922
776
  ],
777
  [
778
- "\"passing American football (not in game)\"",
779
- 0.002514705527573824
780
  ],
781
  [
782
- "\"kicking field goal\"",
783
- 0.0025104687083512545
784
  ],
785
  [
786
- "\"side kick\"",
787
- 0.0025097192265093327
788
  ],
789
  [
790
- "\"high kick\"",
791
- 0.002491986844688654
792
  ]
793
  ],
794
- "segment_037.mov": [
795
  [
796
  "\"passing American football (in game)\"",
797
- 0.006760087329894304
798
  ],
799
  [
800
  "\"passing American football (not in game)\"",
801
- 0.0024913023225963116
802
  ],
803
  [
804
  "\"kicking field goal\"",
805
- 0.00248970789834857
806
  ],
807
  [
808
- "\"side kick\"",
809
- 0.002489360049366951
810
  ],
811
  [
812
- "\"high kick\"",
813
- 0.002489320933818817
814
  ]
815
  ],
816
- "segment_038.mov": [
817
- [
818
- "\"passing American football (in game)\"",
819
- 0.0062811062671244144
820
- ],
821
  [
822
  "\"kicking field goal\"",
823
- 0.0026691341772675514
824
  ],
825
  [
826
  "\"passing American football (not in game)\"",
827
- 0.002501868177205324
828
  ],
829
  [
830
- "\"side kick\"",
831
- 0.0024906292092055082
832
  ],
833
  [
834
  "\"tossing coin\"",
835
- 0.0024903123266994953
 
 
 
 
836
  ]
837
  ],
838
- "segment_039.mov": [
839
- [
840
- "\"passing American football (in game)\"",
841
- 0.004427704028785229
842
- ],
843
  [
844
  "\"kicking field goal\"",
845
- 0.00305744051001966
846
  ],
847
  [
848
  "\"passing American football (not in game)\"",
849
- 0.0028497367165982723
850
  ],
851
  [
852
- "\"shaking hands\"",
853
- 0.0025244825519621372
854
  ],
855
  [
856
- "\"tossing coin\"",
857
- 0.0025086107198148966
 
 
 
 
858
  ]
859
  ],
860
- "segment_040.mov": [
861
  [
862
- "\"passing American football (in game)\"",
863
- 0.00507122790440917
864
  ],
865
  [
866
- "\"tossing coin\"",
867
- 0.0028494407888501883
868
  ],
869
  [
870
  "\"kicking field goal\"",
871
- 0.0025832131505012512
872
  ],
873
  [
874
- "\"shaking hands\"",
875
- 0.0025662044063210487
876
  ],
877
  [
878
- "\"passing American football (not in game)\"",
879
- 0.0025347082410007715
880
  ]
881
  ],
882
- "segment_041.mov": [
883
  [
884
- "\"passing American football (in game)\"",
885
- 0.002910151146352291
886
  ],
887
  [
888
- "\"tossing coin\"",
889
- 0.00288573419675231
890
  ],
891
  [
892
- "bobsledding",
893
- 0.0027363626286387444
894
  ],
895
  [
896
- "\"changing wheel\"",
897
- 0.0027150516398251057
898
  ],
899
  [
900
- "\"kicking field goal\"",
901
- 0.0026453319005668163
902
  ]
903
  ],
904
- "segment_042.mov": [
905
  [
906
  "bobsledding",
907
- 0.0029746112413704395
908
  ],
909
  [
910
- "marching",
911
- 0.0026662067975848913
912
  ],
913
  [
914
- "\"riding mountain bike\"",
915
- 0.0026005373802036047
916
  ],
917
  [
918
- "archery",
919
- 0.002575363963842392
920
  ],
921
  [
922
- "\"passing American football (not in game)\"",
923
- 0.0025738172698765993
924
  ]
925
  ],
926
- "segment_043.mov": [
927
  [
928
- "bobsledding",
929
- 0.0032584425061941147
930
  ],
931
  [
932
- "\"changing wheel\"",
933
- 0.002937484998255968
934
  ],
935
  [
936
- "\"driving car\"",
937
- 0.0028462321497499943
938
  ],
939
  [
940
- "motorcycling",
941
- 0.00263536861166358
942
  ],
943
  [
944
- "skateboarding",
945
- 0.002625212771818042
946
  ]
947
  ],
948
- "segment_044.mov": [
949
  [
950
- "archery",
951
- 0.0029061429668217897
952
  ],
953
  [
954
- "bobsledding",
955
- 0.002719373907893896
956
  ],
957
  [
958
- "\"golf driving\"",
959
- 0.0027050392236560583
960
  ],
961
  [
962
- "barbequing",
963
- 0.0025971110444515944
964
  ],
965
  [
966
- "\"golf putting\"",
967
- 0.0025699003599584103
968
  ]
969
  ],
970
- "segment_045.mov": [
971
  [
972
- "barbequing",
973
- 0.003022523829713464
974
  ],
975
  [
976
- "\"changing wheel\"",
977
- 0.002754890127107501
978
  ],
979
  [
980
- "\"mowing lawn\"",
981
- 0.0026360696647316217
982
  ],
983
  [
984
- "auctioning",
985
- 0.0026054272893816233
986
  ],
987
  [
988
- "\"changing oil\"",
989
- 0.0025794513057917356
990
  ]
991
  ],
992
- "segment_046.mov": [
993
  [
994
  "\"tossing coin\"",
995
- 0.003568414831534028
996
  ],
997
  [
998
- "\"side kick\"",
999
- 0.003212416311725974
1000
  ],
1001
  [
1002
- "\"rock scissors paper\"",
1003
- 0.002615532139316201
1004
  ],
1005
  [
1006
- "\"punching person (boxing)\"",
1007
- 0.0026119472458958626
1008
  ],
1009
  [
1010
- "\"high kick\"",
1011
- 0.002596732461825013
1012
  ]
1013
  ],
1014
- "segment_047.mov": [
1015
  [
1016
- "\"passing American football (in game)\"",
1017
- 0.0031079247128218412
1018
  ],
1019
  [
1020
- "\"juggling soccer ball\"",
1021
- 0.0028041608165949583
1022
  ],
1023
  [
1024
- "\"passing American football (not in game)\"",
1025
- 0.002784370444715023
1026
  ],
1027
  [
1028
- "\"catching or throwing baseball\"",
1029
- 0.0027656129095703363
1030
  ],
1031
  [
1032
- "\"tossing coin\"",
1033
- 0.0027509713545441628
1034
  ]
1035
  ],
1036
- "segment_048.mov": [
1037
  [
1038
- "\"tossing coin\"",
1039
- 0.004612566903233528
1040
  ],
1041
  [
1042
- "\"passing American football (in game)\"",
1043
- 0.0030128920916467905
1044
  ],
1045
  [
1046
- "\"side kick\"",
1047
- 0.002602673601359129
1048
  ],
1049
  [
1050
- "\"passing American football (not in game)\"",
1051
- 0.0025423497427254915
1052
  ],
1053
  [
1054
- "\"rock scissors paper\"",
1055
- 0.0025353787932544947
1056
  ]
1057
  ],
1058
- "segment_049.mov": [
1059
  [
1060
- "beatboxing",
1061
- 0.002776292385533452
1062
  ],
1063
  [
1064
  "\"pumping fist\"",
1065
- 0.0027726562693715096
1066
  ],
1067
  [
1068
- "\"shaking hands\"",
1069
- 0.0027530265506356955
1070
  ],
1071
  [
1072
- "\"playing poker\"",
1073
- 0.002649413887411356
1074
  ],
1075
  [
1076
- "\"arm wrestling\"",
1077
- 0.0026053758338093758
1078
  ]
1079
  ],
1080
- "segment_050.mov": [
1081
- [
1082
- "crying",
1083
- 0.0032352209091186523
1084
- ],
1085
  [
1086
  "beatboxing",
1087
- 0.002813587663695216
1088
  ],
1089
  [
1090
- "\"fixing hair\"",
1091
- 0.002721605822443962
1092
  ],
1093
  [
1094
  "\"pumping fist\"",
1095
- 0.002583273220807314
1096
  ],
1097
  [
1098
- "\"brushing hair\"",
1099
- 0.0025578502099961042
 
 
 
 
1100
  ]
1101
  ],
1102
- "segment_051.mov": [
1103
  [
1104
- "\"passing American football (in game)\"",
1105
- 0.005108952056616545
1106
  ],
1107
  [
1108
  "\"passing American football (not in game)\"",
1109
- 0.002873431658372283
1110
  ],
1111
  [
1112
- "\"side kick\"",
1113
- 0.002661630278453231
1114
  ],
1115
  [
1116
- "\"kicking field goal\"",
1117
- 0.0026403891388326883
1118
  ],
1119
  [
1120
- "\"high kick\"",
1121
- 0.0025104281958192587
1122
  ]
1123
  ],
1124
- "segment_052.mov": [
1125
- [
1126
- "\"passing American football (in game)\"",
1127
- 0.0058504920452833176
1128
- ],
1129
  [
1130
  "\"kicking field goal\"",
1131
- 0.0027115345001220703
1132
  ],
1133
  [
1134
  "\"passing American football (not in game)\"",
1135
- 0.0026032112073153257
1136
  ],
1137
  [
1138
- "\"side kick\"",
1139
- 0.0025289678014814854
1140
  ],
1141
  [
1142
- "\"high kick\"",
1143
- 0.002494329586625099
 
 
 
 
1144
  ]
1145
  ],
1146
- "segment_053.mov": [
1147
  [
1148
  "\"passing American football (in game)\"",
1149
- 0.006694582756608725
1150
  ],
1151
  [
1152
  "\"passing American football (not in game)\"",
1153
- 0.0025113301817327738
1154
  ],
1155
  [
1156
- "\"side kick\"",
1157
- 0.0024927803315222263
1158
  ],
1159
  [
1160
- "\"kicking field goal\"",
1161
- 0.0024906357284635305
1162
  ],
1163
  [
1164
- "\"high kick\"",
1165
- 0.002489699050784111
1166
  ]
1167
  ],
1168
- "segment_054.mov": [
1169
  [
1170
- "\"passing American football (in game)\"",
1171
- 0.006701494567096233
1172
  ],
1173
  [
1174
- "\"passing American football (not in game)\"",
1175
- 0.0025095203891396523
1176
  ],
1177
  [
1178
  "\"kicking field goal\"",
1179
- 0.0024933733511716127
1180
  ],
1181
  [
1182
- "\"side kick\"",
1183
- 0.002489532344043255
1184
  ],
1185
  [
1186
- "headbutting",
1187
- 0.002489422680810094
1188
  ]
1189
  ],
1190
- "segment_055.mov": [
1191
  [
1192
- "\"passing American football (in game)\"",
1193
- 0.005614574532955885
1194
  ],
1195
  [
1196
- "\"kicking field goal\"",
1197
- 0.002844724338501692
1198
  ],
1199
  [
1200
- "\"tossing coin\"",
1201
- 0.0025539705529809
1202
  ],
1203
  [
1204
- "\"passing American football (not in game)\"",
1205
- 0.0025522371288388968
1206
  ],
1207
  [
1208
- "headbutting",
1209
- 0.0024937023408710957
1210
  ]
1211
  ],
1212
- "segment_056.mov": [
1213
  [
1214
  "headbutting",
1215
- 0.003259368008002639
1216
  ],
1217
  [
1218
- "\"pumping fist\"",
1219
- 0.0029684980399906635
1220
  ],
1221
  [
1222
- "\"playing ice hockey\"",
1223
- 0.0029396419413387775
1224
  ],
1225
  [
1226
- "\"shaking hands\"",
1227
- 0.002817715285345912
1228
  ],
1229
  [
1230
- "\"passing American football (in game)\"",
1231
- 0.002679395256564021
1232
  ]
1233
  ],
1234
- "segment_057.mov": [
1235
  [
1236
  "bobsledding",
1237
- 0.004842189606279135
1238
  ],
1239
  [
1240
- "\"pumping fist\"",
1241
- 0.002615878591313958
1242
  ],
1243
  [
1244
- "\"driving car\"",
1245
- 0.002567970659583807
1246
  ],
1247
  [
1248
  "\"playing poker\"",
1249
- 0.0025621275417506695
1250
  ],
1251
  [
1252
- "\"playing ice hockey\"",
1253
- 0.002544831018894911
1254
  ]
1255
  ],
1256
- "segment_058.mov": [
1257
  [
1258
- "motorcycling",
1259
- 0.002834487706422806
1260
  ],
1261
  [
1262
- "\"driving car\"",
1263
- 0.002728639403358102
1264
  ],
1265
  [
1266
- "\"changing wheel\"",
1267
- 0.0027119864244014025
1268
  ],
1269
  [
1270
- "bobsledding",
1271
- 0.002644300926476717
1272
  ],
1273
  [
1274
- "kissing",
1275
- 0.002592987846583128
1276
  ]
1277
  ],
1278
- "segment_059.mov": [
1279
  [
1280
  "bobsledding",
1281
- 0.004265598952770233
1282
  ],
1283
  [
1284
  "\"playing ice hockey\"",
1285
- 0.0030175303108990192
1286
  ],
1287
  [
1288
  "\"playing paintball\"",
1289
- 0.002638093428686261
1290
  ],
1291
  [
1292
- "motorcycling",
1293
- 0.0025540166534483433
1294
  ],
1295
  [
1296
- "\"riding mountain bike\"",
1297
- 0.002545550698414445
1298
  ]
1299
  ],
1300
- "segment_060.mov": [
1301
  [
1302
- "\"passing American football (in game)\"",
1303
- 0.005962858442217112
1304
  ],
1305
  [
1306
- "\"kicking field goal\"",
1307
- 0.002803174778819084
1308
  ],
1309
  [
1310
- "\"passing American football (not in game)\"",
1311
- 0.0025008893571794033
1312
  ],
1313
  [
1314
- "\"side kick\"",
1315
- 0.0024952334351837635
1316
  ],
1317
  [
1318
- "headbutting",
1319
- 0.002492264611646533
1320
  ]
1321
  ],
1322
- "segment_061.mov": [
1323
  [
1324
  "\"passing American football (in game)\"",
1325
- 0.006750195287168026
1326
  ],
1327
  [
1328
- "\"kicking field goal\"",
1329
- 0.0024920343421399593
1330
  ],
1331
  [
1332
- "\"passing American football (not in game)\"",
1333
- 0.002491830848157406
1334
  ],
1335
  [
1336
  "\"side kick\"",
1337
- 0.0024899402633309364
1338
  ],
1339
  [
1340
- "\"high kick\"",
1341
- 0.002489452948793769
1342
  ]
1343
  ],
1344
- "segment_062.mov": [
1345
  [
1346
- "\"passing American football (in game)\"",
1347
- 0.006219817325472832
1348
  ],
1349
  [
1350
- "\"passing American football (not in game)\"",
1351
- 0.002605071058496833
1352
  ],
1353
  [
1354
- "headbutting",
1355
- 0.0025401373859494925
1356
  ],
1357
  [
1358
- "\"kicking field goal\"",
1359
- 0.0025001864414662123
1360
  ],
1361
  [
1362
- "\"pumping fist\"",
1363
- 0.002497575245797634
1364
  ]
1365
  ],
1366
- "segment_063.mov": [
1367
  [
1368
- "marching",
1369
- 0.003558160038664937
1370
  ],
1371
  [
1372
  "\"passing American football (in game)\"",
1373
- 0.0030603946652263403
1374
  ],
1375
  [
1376
- "\"tango dancing\"",
1377
- 0.00266551086679101
1378
  ],
1379
  [
1380
- "\"side kick\"",
1381
- 0.002660425379872322
1382
  ],
1383
  [
1384
- "\"passing American football (not in game)\"",
1385
- 0.002627450041472912
1386
  ]
1387
  ],
1388
- "segment_064.mov": [
1389
  [
1390
- "\"passing American football (in game)\"",
1391
- 0.00557365408167243
1392
  ],
1393
  [
1394
- "\"passing American football (not in game)\"",
1395
- 0.0027207054663449526
1396
  ],
1397
  [
1398
- "headbutting",
1399
- 0.0026054433546960354
1400
  ],
1401
  [
1402
- "\"pumping fist\"",
1403
- 0.00251823291182518
1404
  ],
1405
  [
1406
- "\"kicking field goal\"",
1407
- 0.002515583299100399
1408
  ]
1409
  ],
1410
- "segment_065.mov": [
1411
  [
1412
- "\"side kick\"",
1413
- 0.005902828648686409
1414
  ],
1415
  [
1416
- "\"high kick\"",
1417
- 0.0025668020825833082
1418
  ],
1419
  [
1420
- "wrestling",
1421
- 0.0025415299460291862
1422
  ],
1423
  [
1424
- "squat",
1425
- 0.0025292884092777967
1426
  ],
1427
  [
1428
- "\"drop kicking\"",
1429
- 0.00251045823097229
1430
  ]
1431
  ],
1432
- "segment_066.mov": [
1433
  [
1434
  "bobsledding",
1435
- 0.003806664375588298
1436
  ],
1437
  [
1438
- "\"changing wheel\"",
1439
- 0.0029659303836524487
1440
  ],
1441
  [
1442
- "\"punching bag\"",
1443
- 0.0027637933380901814
1444
  ],
1445
  [
1446
- "headbutting",
1447
- 0.00258650747127831
1448
  ],
1449
  [
1450
- "motorcycling",
1451
- 0.002585215028375387
1452
  ]
1453
  ],
1454
- "segment_067.mov": [
1455
  [
1456
- "\"changing wheel\"",
1457
- 0.0038947509601712227
1458
  ],
1459
  [
1460
  "\"pushing car\"",
1461
- 0.002689485903829336
1462
  ],
1463
  [
1464
- "\"driving car\"",
1465
- 0.00266862940043211
1466
  ],
1467
  [
1468
- "\"changing oil\"",
1469
- 0.0026266295462846756
1470
  ],
1471
  [
1472
  "\"arm wrestling\"",
1473
- 0.0025696069933474064
1474
  ]
1475
  ],
1476
- "segment_068.mov": [
1477
  [
1478
- "\"passing American football (not in game)\"",
1479
- 0.0030197601299732924
1480
  ],
1481
  [
1482
- "\"passing American football (in game)\"",
1483
- 0.0029855112079530954
1484
  ],
1485
  [
1486
- "\"kicking field goal\"",
1487
- 0.0027115403208881617
1488
  ],
1489
  [
1490
- "\"catching or throwing baseball\"",
1491
- 0.0026096913497895002
1492
  ],
1493
  [
1494
- "\"high kick\"",
1495
- 0.0026070410385727882
1496
  ]
1497
  ],
1498
- "segment_069.mov": [
1499
  [
1500
- "\"passing American football (in game)\"",
1501
- 0.005361294839531183
1502
  ],
1503
  [
1504
- "\"kicking field goal\"",
1505
- 0.002796306274831295
1506
  ],
1507
  [
1508
- "\"passing American football (not in game)\"",
1509
- 0.0027009581681340933
1510
  ],
1511
  [
1512
- "\"side kick\"",
1513
- 0.002553092548623681
1514
  ],
1515
  [
1516
- "\"high kick\"",
1517
- 0.002506962278857827
1518
  ]
1519
  ],
1520
- "segment_070.mov": [
1521
- [
1522
- "\"passing American football (in game)\"",
1523
- 0.005472357384860516
1524
- ],
1525
  [
1526
- "\"passing American football (not in game)\"",
1527
- 0.002799208741635084
1528
  ],
1529
  [
1530
  "\"kicking field goal\"",
1531
- 0.0027042534202337265
1532
  ],
1533
  [
1534
- "\"side kick\"",
1535
- 0.0025148894637823105
1536
  ],
1537
  [
1538
  "\"catching or throwing baseball\"",
1539
- 0.002496932167559862
 
 
 
 
1540
  ]
1541
  ],
1542
- "segment_071.mov": [
1543
  [
1544
- "\"side kick\"",
1545
- 0.003893344197422266
1546
  ],
1547
  [
1548
- "\"passing American football (in game)\"",
1549
- 0.0035547567531466484
1550
  ],
1551
  [
1552
- "\"kicking field goal\"",
1553
- 0.002741483272984624
1554
  ],
1555
  [
1556
- "\"passing American football (not in game)\"",
1557
- 0.0026810814160853624
1558
  ],
1559
  [
1560
- "\"catching or throwing baseball\"",
1561
- 0.0025338695850223303
1562
  ]
1563
  ],
1564
- "segment_072.mov": [
1565
  [
1566
- "\"passing American football (in game)\"",
1567
- 0.005563896149396896
1568
  ],
1569
  [
1570
- "\"passing American football (not in game)\"",
1571
- 0.0027015593368560076
1572
  ],
1573
  [
1574
- "\"side kick\"",
1575
- 0.002657951321452856
1576
  ],
1577
  [
1578
- "\"kicking field goal\"",
1579
- 0.0026104655116796494
1580
  ],
1581
  [
1582
- "\"catching or throwing baseball\"",
1583
- 0.0024953498505055904
1584
  ]
1585
  ],
1586
- "segment_073.mov": [
1587
  [
1588
- "\"passing American football (in game)\"",
1589
- 0.006470989435911179
1590
  ],
1591
  [
1592
- "\"passing American football (not in game)\"",
1593
- 0.0025515288580209017
1594
  ],
1595
  [
1596
- "\"side kick\"",
1597
- 0.0025365715846419334
1598
  ],
1599
  [
1600
- "\"kicking field goal\"",
1601
- 0.002492384286597371
1602
  ],
1603
  [
1604
- "\"high kick\"",
1605
- 0.002490945626050234
1606
  ]
1607
  ],
1608
- "segment_074.mov": [
1609
  [
1610
- "\"passing American football (in game)\"",
1611
- 0.004092047456651926
1612
  ],
1613
  [
1614
- "\"passing American football (not in game)\"",
1615
- 0.0037548826076090336
1616
  ],
1617
  [
1618
- "\"side kick\"",
1619
- 0.0026034193579107523
1620
  ],
1621
  [
1622
- "\"kicking field goal\"",
1623
- 0.0025540809147059917
1624
  ],
1625
  [
1626
- "\"catching or throwing baseball\"",
1627
- 0.0025116554461419582
1628
  ]
1629
  ],
1630
- "segment_075.mov": [
1631
  [
1632
- "\"passing American football (in game)\"",
1633
- 0.006258341949433088
1634
  ],
1635
  [
1636
  "\"passing American football (not in game)\"",
1637
- 0.002621858147904277
1638
  ],
1639
  [
1640
  "\"kicking field goal\"",
1641
- 0.0025423644110560417
1642
  ],
1643
  [
1644
- "\"catching or throwing baseball\"",
1645
- 0.0024970977101475
1646
  ],
1647
  [
1648
- "\"pumping fist\"",
1649
- 0.0024926913902163506
1650
  ]
1651
  ],
1652
- "segment_076.mov": [
1653
  [
1654
  "\"hurling (sport)\"",
1655
- 0.003916610963642597
1656
  ],
1657
  [
1658
  "headbutting",
1659
- 0.0029018200002610683
1660
  ],
1661
  [
1662
- "\"passing American football (in game)\"",
1663
- 0.0027735705953091383
1664
  ],
1665
  [
1666
- "\"passing American football (not in game)\"",
1667
- 0.00273358216509223
1668
  ],
1669
  [
1670
- "\"kicking field goal\"",
1671
- 0.0026465952396392822
1672
  ]
1673
  ],
1674
  "segment_077.mov": []
 
1
  {
2
+ "segment_001_yolo.mov": [
3
  [
4
  "\"catching or throwing baseball\"",
5
+ 0.003380856942385435
6
  ],
7
  [
8
  "\"playing cricket\"",
9
+ 0.003095965599641204
10
  ],
11
  [
12
+ "\"playing ice hockey\"",
13
+ 0.0027383891865611076
14
  ],
15
  [
16
+ "\"ice skating\"",
17
+ 0.0026859112549573183
18
  ],
19
  [
20
+ "\"catching or throwing softball\"",
21
+ 0.0026317567098885775
22
  ]
23
  ],
24
+ "segment_002_yolo.mov": [
25
  [
26
  "\"mowing lawn\"",
27
+ 0.003576691960915923
28
  ],
29
  [
30
+ "\"golf driving\"",
31
+ 0.002836523810401559
32
  ],
33
  [
34
+ "archery",
35
+ 0.0026338244788348675
36
  ],
37
  [
38
+ "\"driving tractor\"",
39
+ 0.002595097990706563
40
  ],
41
  [
42
+ "\"catching or throwing baseball\"",
43
+ 0.0025854785926640034
44
  ]
45
  ],
46
+ "segment_003_yolo.mov": [
47
  [
48
  "\"hurling (sport)\"",
49
+ 0.0039045403245836496
50
  ],
51
  [
52
  "headbutting",
53
+ 0.002825796138495207
54
  ],
55
  [
56
+ "\"playing cricket\"",
57
+ 0.0027307451236993074
58
  ],
59
  [
60
+ "\"passing American football (not in game)\"",
61
+ 0.0026762450579553843
62
  ],
63
  [
64
+ "applauding",
65
+ 0.0026124196592718363
66
  ]
67
  ],
68
+ "segment_004_yolo.mov": [
69
  [
70
+ "headbutting",
71
+ 0.004119096323847771
72
  ],
73
  [
74
+ "\"hurling (sport)\"",
75
+ 0.0029537260998040438
76
  ],
77
  [
78
+ "applauding",
79
+ 0.0026764876674860716
80
  ],
81
  [
82
+ "\"passing American football (not in game)\"",
83
+ 0.002594469813629985
84
  ],
85
  [
86
+ "\"playing ice hockey\"",
87
+ 0.0025658044032752514
88
  ]
89
  ],
90
+ "segment_005_yolo.mov": [
91
  [
92
+ "\"javelin throw\"",
93
+ 0.0033433844801038504
94
  ],
95
  [
96
+ "\"eating hotdog\"",
97
+ 0.00290647498331964
98
  ],
99
  [
100
+ "\"throwing discus\"",
101
+ 0.0027681186329573393
102
  ],
103
  [
104
+ "\"catching or throwing frisbee\"",
105
+ 0.002742217620834708
106
  ],
107
  [
108
+ "\"shot put\"",
109
+ 0.00260338606312871
110
  ]
111
  ],
112
+ "segment_006_yolo.mov": [
113
  [
114
+ "\"spray painting\"",
115
+ 0.002744637429714203
116
  ],
117
  [
118
+ "\"checking tires\"",
119
+ 0.002715102629736066
120
  ],
121
  [
122
+ "\"bench pressing\"",
123
+ 0.002695797011256218
124
  ],
125
  [
126
+ "\"making pizza\"",
127
+ 0.002596484264358878
128
  ],
129
  [
130
+ "barbequing",
131
+ 0.0025805369950830936
132
  ]
133
  ],
134
+ "segment_007_yolo.mov": [
135
  [
136
+ "\"pushing wheelchair\"",
137
+ 0.0030422406271100044
138
  ],
139
  [
140
+ "\"mowing lawn\"",
141
+ 0.0028666346333920956
142
  ],
143
  [
144
  "motorcycling",
145
+ 0.0027028322219848633
146
  ],
147
  [
148
+ "\"changing oil\"",
149
+ 0.0026753153651952744
150
  ],
151
  [
152
+ "\"riding mountain bike\"",
153
+ 0.0026005778927356005
154
  ]
155
  ],
156
+ "segment_008_yolo.mov": [
157
  [
158
+ "\"pushing wheelchair\"",
159
+ 0.0028705329168587923
160
  ],
161
  [
162
+ "bobsledding",
163
+ 0.002846728079020977
164
  ],
165
  [
166
+ "headbutting",
167
+ 0.0026647611521184444
168
  ],
169
  [
170
+ "\"driving car\"",
171
+ 0.0026486360002309084
172
  ],
173
  [
174
+ "motorcycling",
175
+ 0.002630403032526374
176
  ]
177
  ],
178
+ "segment_009_yolo.mov": [
179
  [
180
+ "bobsledding",
181
+ 0.002958092140033841
182
  ],
183
  [
184
+ "\"high kick\"",
185
+ 0.002759539056569338
186
  ],
187
  [
188
+ "\"milking cow\"",
189
+ 0.0027191024273633957
190
  ],
191
  [
192
+ "\"kicking field goal\"",
193
+ 0.0026654545217752457
194
  ],
195
  [
196
  "headbutting",
197
+ 0.002656013937667012
198
  ]
199
  ],
200
+ "segment_010_yolo.mov": [
201
  [
202
+ "headbutting",
203
+ 0.0029409260023385286
204
  ],
205
  [
206
+ "\"shaking hands\"",
207
+ 0.0026740378234535456
208
  ],
209
  [
210
+ "\"high kick\"",
211
+ 0.0026704464107751846
212
  ],
213
  [
214
+ "\"kicking field goal\"",
215
+ 0.002642976585775614
216
  ],
217
  [
218
+ "celebrating",
219
+ 0.002638082252815366
220
  ]
221
  ],
222
+ "segment_011_yolo.mov": [
223
  [
224
+ "\"kicking field goal\"",
225
+ 0.004137308336794376
226
  ],
227
  [
228
+ "applauding",
229
+ 0.0026362661737948656
230
  ],
231
  [
232
+ "\"playing volleyball\"",
233
+ 0.0026246444322168827
234
  ],
235
  [
236
+ "\"passing American football (not in game)\"",
237
+ 0.002608613111078739
238
  ],
239
  [
240
+ "headbutting",
241
+ 0.0025905300863087177
242
  ]
243
  ],
244
+ "segment_012_yolo.mov": [
 
 
 
 
245
  [
246
  "\"dancing macarena\"",
247
+ 0.003159651532769203
248
  ],
249
  [
250
+ "cheerleading",
251
+ 0.0030827471055090427
252
  ],
253
  [
254
  "\"hitting baseball\"",
255
+ 0.00298778316937387
256
+ ],
257
+ [
258
+ "applauding",
259
+ 0.002713675843551755
260
  ],
261
  [
262
  "\"garbage collecting\"",
263
+ 0.0025780571158975363
264
  ]
265
  ],
266
+ "segment_013_yolo.mov": [
267
+ [
268
+ "applauding",
269
+ 0.0031382013112306595
270
+ ],
271
  [
272
  "\"pumping fist\"",
273
+ 0.0029212948866188526
274
  ],
275
  [
276
  "\"kicking field goal\"",
277
+ 0.0028931701090186834
278
  ],
279
  [
280
  "\"dunking basketball\"",
281
+ 0.002754194661974907
 
 
 
 
282
  ],
283
  [
284
  "celebrating",
285
+ 0.0026313187554478645
286
  ]
287
  ],
288
+ "segment_014_yolo.mov": [
289
  [
290
  "headbutting",
291
+ 0.003813667455688119
292
  ],
293
  [
294
+ "\"punching person (boxing)\"",
295
+ 0.003006032668054104
296
  ],
297
  [
298
+ "\"punching bag\"",
299
+ 0.0028552233707159758
300
  ],
301
  [
302
+ "\"pumping fist\"",
303
+ 0.002737470669671893
304
  ],
305
  [
306
+ "\"high kick\"",
307
+ 0.002547224285081029
308
  ]
309
  ],
310
+ "segment_015_yolo.mov": [
311
  [
312
+ "\"kicking field goal\"",
313
+ 0.0041602421551942825
314
  ],
315
  [
316
+ "\"passing American football (not in game)\"",
317
+ 0.0028576047625392675
318
  ],
319
  [
320
+ "\"juggling soccer ball\"",
321
+ 0.002675252500921488
322
  ],
323
  [
324
+ "\"catching or throwing baseball\"",
325
+ 0.0026170925702899694
326
  ],
327
  [
328
+ "\"passing American football (in game)\"",
329
+ 0.002612795913591981
330
  ]
331
  ],
332
+ "segment_016_yolo.mov": [
333
  [
334
+ "\"passing American football (not in game)\"",
335
+ 0.003784941276535392
336
  ],
337
  [
338
+ "\"kicking field goal\"",
339
+ 0.003416945692151785
340
  ],
341
  [
342
+ "\"passing American football (in game)\"",
343
+ 0.00262640044093132
344
  ],
345
  [
346
+ "\"catching or throwing baseball\"",
347
+ 0.002601443789899349
348
  ],
349
  [
350
+ "\"juggling soccer ball\"",
351
+ 0.0025872692931443453
352
  ]
353
  ],
354
+ "segment_017_yolo.mov": [
 
 
 
 
355
  [
356
  "\"kicking field goal\"",
357
+ 0.0037378345150500536
358
  ],
359
  [
360
  "\"passing American football (not in game)\"",
361
+ 0.003414766862988472
362
  ],
363
  [
364
  "\"side kick\"",
365
+ 0.0026322079356759787
366
  ],
367
  [
368
+ "\"juggling soccer ball\"",
369
+ 0.002602929715067148
370
+ ],
371
+ [
372
+ "\"golf driving\"",
373
+ 0.0025708479806780815
374
  ]
375
  ],
376
+ "segment_018_yolo.mov": [
377
  [
378
+ "\"passing American football (not in game)\"",
379
+ 0.0037206721026450396
380
  ],
381
  [
382
+ "\"kicking field goal\"",
383
+ 0.002938193967565894
384
  ],
385
  [
386
+ "\"passing American football (in game)\"",
387
+ 0.002730895997956395
388
  ],
389
  [
390
+ "\"side kick\"",
391
+ 0.0026957206428050995
392
  ],
393
  [
394
+ "\"drop kicking\"",
395
+ 0.0025700011756271124
396
  ]
397
  ],
398
+ "segment_019_yolo.mov": [
399
+ [
400
+ "\"kicking field goal\"",
401
+ 0.004053364507853985
402
+ ],
403
  [
404
  "\"passing American football (in game)\"",
405
+ 0.002966024214401841
406
  ],
407
  [
408
  "\"passing American football (not in game)\"",
409
+ 0.0029187898617237806
410
  ],
411
  [
412
+ "\"catching or throwing softball\"",
413
+ 0.002588861621916294
414
  ],
415
  [
416
  "\"side kick\"",
417
+ 0.0025414451956748962
 
 
 
 
418
  ]
419
  ],
420
+ "segment_020_yolo.mov": [
421
  [
422
  "\"passing American football (in game)\"",
423
+ 0.0060860407538712025
424
  ],
425
  [
426
  "\"passing American football (not in game)\"",
427
+ 0.002620777813717723
428
  ],
429
  [
430
  "\"kicking field goal\"",
431
+ 0.0025744717568159103
432
  ],
433
  [
434
  "headbutting",
435
+ 0.0025153872556984425
436
  ],
437
  [
438
+ "celebrating",
439
+ 0.002494904212653637
440
  ]
441
  ],
442
+ "segment_021_yolo.mov": [
443
  [
444
+ "situp",
445
+ 0.003232956863939762
446
  ],
447
  [
448
+ "\"shaking hands\"",
449
+ 0.0026444634422659874
450
  ],
451
  [
452
+ "headbutting",
453
+ 0.0026111530605703592
454
  ],
455
  [
456
+ "squat",
457
+ 0.0025693371426314116
458
  ],
459
  [
460
+ "applauding",
461
+ 0.0025599778164178133
462
  ]
463
  ],
464
+ "segment_022_yolo.mov": [
465
  [
466
+ "bobsledding",
467
+ 0.004598633851855993
468
  ],
469
  [
470
+ "\"pumping fist\"",
471
+ 0.0028625635895878077
472
  ],
473
  [
474
+ "headbutting",
475
+ 0.0026447612326592207
476
  ],
477
  [
478
+ "\"playing ice hockey\"",
479
+ 0.0025648341979831457
480
  ],
481
  [
482
+ "\"dancing macarena\"",
483
+ 0.002560875378549099
484
  ]
485
  ],
486
+ "segment_023_yolo.mov": [
487
  [
488
+ "headbutting",
489
+ 0.003026276594027877
490
  ],
491
  [
492
+ "\"pumping fist\"",
493
+ 0.003016588045284152
494
  ],
495
  [
496
+ "\"shaking hands\"",
497
+ 0.0029406026005744934
498
  ],
499
  [
500
+ "\"punching bag\"",
501
+ 0.002610028488561511
502
  ],
503
  [
504
+ "celebrating",
505
+ 0.002597728744149208
506
  ]
507
  ],
508
+ "segment_024_yolo.mov": [
509
  [
510
  "\"riding a bike\"",
511
+ 0.003389883553609252
512
  ],
513
  [
514
+ "\"riding unicycle\"",
515
+ 0.002759563969448209
516
  ],
517
  [
518
+ "\"pushing wheelchair\"",
519
+ 0.00266478955745697
520
  ],
521
  [
522
+ "bobsledding",
523
+ 0.002594699151813984
524
  ],
525
  [
526
+ "\"using segway\"",
527
+ 0.0025696929078549147
528
  ]
529
  ],
530
+ "segment_025_yolo.mov": [
531
  [
532
  "bobsledding",
533
+ 0.00413712952286005
534
  ],
535
  [
536
+ "\"pumping gas\"",
537
+ 0.002761297859251499
538
  ],
539
  [
540
+ "\"pushing wheelchair\"",
541
+ 0.0026046608109027147
542
  ],
543
  [
544
+ "\"shaking hands\"",
545
+ 0.0025861081667244434
546
  ],
547
  [
548
+ "\"driving car\"",
549
+ 0.0025819505099207163
550
  ]
551
  ],
552
+ "segment_026_yolo.mov": [
553
  [
554
+ "situp",
555
+ 0.002735298592597246
556
  ],
557
  [
558
+ "headbutting",
559
+ 0.002719511976465583
560
  ],
561
  [
562
+ "\"front raises\"",
563
+ 0.0027034783270210028
564
  ],
565
  [
566
+ "squat",
567
+ 0.002610066905617714
568
  ],
569
  [
570
+ "\"punching bag\"",
571
+ 0.0025977541226893663
572
  ]
573
  ],
574
+ "segment_027_yolo.mov": [
575
  [
576
+ "\"punching bag\"",
577
+ 0.0028936448507010937
578
  ],
579
  [
580
+ "\"salsa dancing\"",
581
+ 0.002698739757761359
582
  ],
583
  [
584
+ "squat",
585
+ 0.0026973364874720573
586
  ],
587
  [
588
+ "\"high kick\"",
589
+ 0.0026408785488456488
590
  ],
591
  [
592
+ "\"punching person (boxing)\"",
593
+ 0.00262483605183661
594
  ]
595
  ],
596
+ "segment_028_yolo.mov": [
597
  [
598
  "\"stretching arm\"",
599
+ 0.003101934678852558
600
  ],
601
  [
602
+ "squat",
603
+ 0.002811474958434701
604
  ],
605
  [
606
+ "\"stretching leg\"",
607
+ 0.002715714741498232
608
  ],
609
  [
610
+ "archery",
611
+ 0.002612082054838538
612
  ],
613
  [
614
+ "\"pull ups\"",
615
+ 0.002611397299915552
616
  ]
617
  ],
618
+ "segment_029_yolo.mov": [
619
  [
620
+ "\"punching person (boxing)\"",
621
+ 0.0027347488794475794
622
  ],
623
  [
624
+ "\"punching bag\"",
625
+ 0.0026767239905893803
626
  ],
627
  [
628
+ "headbutting",
629
+ 0.002651121001690626
630
  ],
631
  [
632
+ "\"giving or receiving award\"",
633
+ 0.00259765749797225
634
  ],
635
  [
636
+ "\"playing didgeridoo\"",
637
+ 0.002594605553895235
638
  ]
639
  ],
640
+ "segment_030_yolo.mov": [
641
  [
642
  "\"spray painting\"",
643
+ 0.004010719712823629
644
  ],
645
  [
646
  "\"getting a tattoo\"",
647
+ 0.0027368718292564154
648
  ],
649
  [
650
+ "spraying",
651
+ 0.0026767917443066835
652
  ],
653
  [
654
+ "\"shining shoes\"",
655
+ 0.0026643385645002127
656
  ],
657
  [
658
+ "welding",
659
+ 0.002579066436737776
660
  ]
661
  ],
662
+ "segment_031_yolo.mov": [
663
  [
664
+ "\"catching or throwing baseball\"",
665
+ 0.002990459091961384
666
  ],
667
  [
668
+ "\"mowing lawn\"",
669
+ 0.002973067807033658
670
  ],
671
  [
672
+ "\"passing American football (not in game)\"",
673
+ 0.0027338452637195587
674
  ],
675
  [
676
+ "archery",
677
+ 0.0026218006387352943
678
  ],
679
  [
680
  "\"riding or walking with horse\"",
681
+ 0.002567233517765999
682
  ]
683
  ],
684
+ "segment_032_yolo.mov": [
685
  [
686
+ "\"passing American football (not in game)\"",
687
+ 0.003110721008852124
688
  ],
689
  [
690
+ "\"catching or throwing frisbee\"",
691
+ 0.002702908357605338
692
  ],
693
  [
694
+ "\"throwing discus\"",
695
+ 0.002692757174372673
696
  ],
697
  [
698
+ "\"catching or throwing softball\"",
699
+ 0.0026826413813978434
700
  ],
701
  [
702
+ "\"kicking field goal\"",
703
+ 0.0026811177376657724
704
  ]
705
  ],
706
+ "segment_033_yolo.mov": [
707
  [
708
+ "\"kicking field goal\"",
709
+ 0.0030596000142395496
710
  ],
711
  [
712
  "\"passing American football (not in game)\"",
713
+ 0.003047410398721695
714
  ],
715
  [
716
  "\"hurling (sport)\"",
717
+ 0.0028581060469150543
718
  ],
719
  [
720
+ "\"passing American football (in game)\"",
721
+ 0.0026607008185237646
722
  ],
723
  [
724
+ "\"catching or throwing frisbee\"",
725
+ 0.0026246460620313883
726
  ]
727
  ],
728
+ "segment_034_yolo.mov": [
729
  [
730
  "archery",
731
+ 0.005329258274286985
732
  ],
733
  [
734
+ "\"golf driving\"",
735
+ 0.002683610888198018
736
  ],
737
  [
738
+ "\"mowing lawn\"",
739
+ 0.0025359978899359703
740
  ],
741
  [
742
+ "\"training dog\"",
743
+ 0.002534035127609968
744
  ],
745
  [
746
+ "\"catching or throwing baseball\"",
747
+ 0.002519050380215049
748
  ]
749
  ],
750
+ "segment_035_yolo.mov": [
751
  [
752
  "\"playing harmonica\"",
753
+ 0.005811899900436401
754
  ],
755
  [
756
+ "archery",
757
+ 0.0025510459672659636
758
  ],
759
  [
760
+ "\"tasting food\"",
761
+ 0.002534489845857024
762
  ],
763
  [
764
+ "\"recording music\"",
765
+ 0.0025342984590679407
766
  ],
767
  [
768
+ "whistling",
769
+ 0.0025266206357628107
770
  ]
771
  ],
772
+ "segment_036_yolo.mov": [
773
  [
774
+ "\"hitting baseball\"",
775
+ 0.003244782332330942
776
  ],
777
  [
778
+ "\"catching or throwing baseball\"",
779
+ 0.0027166034560650587
780
  ],
781
  [
782
+ "\"passing American football (in game)\"",
783
+ 0.0026306253857910633
784
  ],
785
  [
786
+ "\"kicking field goal\"",
787
+ 0.0026117803063243628
788
  ],
789
  [
790
+ "headbutting",
791
+ 0.00260060653090477
792
  ]
793
  ],
794
+ "segment_037_yolo.mov": [
795
  [
796
  "\"passing American football (in game)\"",
797
+ 0.00362950237467885
798
  ],
799
  [
800
  "\"passing American football (not in game)\"",
801
+ 0.0031450875103473663
802
  ],
803
  [
804
  "\"kicking field goal\"",
805
+ 0.0030490232165902853
806
  ],
807
  [
808
+ "\"juggling soccer ball\"",
809
+ 0.0026247703935950994
810
  ],
811
  [
812
+ "\"side kick\"",
813
+ 0.0025674202479422092
814
  ]
815
  ],
816
+ "segment_038_yolo.mov": [
 
 
 
 
817
  [
818
  "\"kicking field goal\"",
819
+ 0.005301924888044596
820
  ],
821
  [
822
  "\"passing American football (not in game)\"",
823
+ 0.0027062150184065104
824
  ],
825
  [
826
+ "\"passing American football (in game)\"",
827
+ 0.002696603536605835
828
  ],
829
  [
830
  "\"tossing coin\"",
831
+ 0.002529331250116229
832
+ ],
833
+ [
834
+ "\"high kick\"",
835
+ 0.0025190250016748905
836
  ]
837
  ],
838
+ "segment_039_yolo.mov": [
 
 
 
 
839
  [
840
  "\"kicking field goal\"",
841
+ 0.0032499933149665594
842
  ],
843
  [
844
  "\"passing American football (not in game)\"",
845
+ 0.002700796350836754
846
  ],
847
  [
848
+ "celebrating",
849
+ 0.0026449142023921013
850
  ],
851
  [
852
+ "headbutting",
853
+ 0.0026088778395205736
854
+ ],
855
+ [
856
+ "\"salsa dancing\"",
857
+ 0.0026004016399383545
858
  ]
859
  ],
860
+ "segment_040_yolo.mov": [
861
  [
862
+ "headbutting",
863
+ 0.00319631933234632
864
  ],
865
  [
866
+ "\"shaking hands\"",
867
+ 0.0029544702265411615
868
  ],
869
  [
870
  "\"kicking field goal\"",
871
+ 0.0027249432168900967
872
  ],
873
  [
874
+ "\"passing American football (in game)\"",
875
+ 0.002720561809837818
876
  ],
877
  [
878
+ "\"punching bag\"",
879
+ 0.0026230227667838335
880
  ]
881
  ],
882
+ "segment_041_yolo.mov": [
883
  [
884
+ "\"bench pressing\"",
885
+ 0.0029412382282316685
886
  ],
887
  [
888
+ "headbutting",
889
+ 0.0027938159182667732
890
  ],
891
  [
892
+ "\"punching bag\"",
893
+ 0.002758623566478491
894
  ],
895
  [
896
+ "situp",
897
+ 0.0027124176267534494
898
  ],
899
  [
900
+ "\"punching person (boxing)\"",
901
+ 0.0026869422290474176
902
  ]
903
  ],
904
+ "segment_042_yolo.mov": [
905
  [
906
  "bobsledding",
907
+ 0.0031595875043421984
908
  ],
909
  [
910
+ "headbutting",
911
+ 0.0026680785231292248
912
  ],
913
  [
914
+ "jetskiing",
915
+ 0.002612100448459387
916
  ],
917
  [
918
+ "celebrating",
919
+ 0.0025999643839895725
920
  ],
921
  [
922
+ "\"eating hotdog\"",
923
+ 0.0025896395090967417
924
  ]
925
  ],
926
+ "segment_043_yolo.mov": [
927
  [
928
+ "archery",
929
+ 0.002769744023680687
930
  ],
931
  [
932
+ "bobsledding",
933
+ 0.0027562822215259075
934
  ],
935
  [
936
+ "headbutting",
937
+ 0.002659587422385812
938
  ],
939
  [
940
+ "\"canoeing or kayaking\"",
941
+ 0.0025809509679675102
942
  ],
943
  [
944
+ "\"news anchoring\"",
945
+ 0.002565130591392517
946
  ]
947
  ],
948
+ "segment_044_yolo.mov": [
949
  [
950
+ "\"golf driving\"",
951
+ 0.002660238416865468
952
  ],
953
  [
954
+ "\"catching or throwing baseball\"",
955
+ 0.002654637908563018
956
  ],
957
  [
958
+ "archery",
959
+ 0.0026385339442640543
960
  ],
961
  [
962
+ "\"golf putting\"",
963
+ 0.002600783482193947
964
  ],
965
  [
966
+ "\"bouncing on trampoline\"",
967
+ 0.002554363803938031
968
  ]
969
  ],
970
+ "segment_045_yolo.mov": [
971
  [
972
+ "\"golf driving\"",
973
+ 0.0026563010178506374
974
  ],
975
  [
976
+ "\"canoeing or kayaking\"",
977
+ 0.002589839743450284
978
  ],
979
  [
980
+ "\"catching or throwing baseball\"",
981
+ 0.0025843221228569746
982
  ],
983
  [
984
+ "archery",
985
+ 0.002583845052868128
986
  ],
987
  [
988
+ "\"golf putting\"",
989
+ 0.002583371941000223
990
  ]
991
  ],
992
+ "segment_046_yolo.mov": [
993
  [
994
  "\"tossing coin\"",
995
+ 0.0030327935237437487
996
  ],
997
  [
998
+ "\"passing American football (not in game)\"",
999
+ 0.002856971463188529
1000
  ],
1001
  [
1002
+ "\"kicking field goal\"",
1003
+ 0.002726062433794141
1004
  ],
1005
  [
1006
+ "\"passing American football (in game)\"",
1007
+ 0.002723041223362088
1008
  ],
1009
  [
1010
+ "headbutting",
1011
+ 0.002688512671738863
1012
  ]
1013
  ],
1014
+ "segment_047_yolo.mov": [
1015
  [
1016
+ "headbutting",
1017
+ 0.003339409828186035
1018
  ],
1019
  [
1020
+ "\"shaking hands\"",
1021
+ 0.003244070801883936
1022
  ],
1023
  [
1024
+ "celebrating",
1025
+ 0.0026113842613995075
1026
  ],
1027
  [
1028
+ "\"tossing coin\"",
1029
+ 0.002604146720841527
1030
  ],
1031
  [
1032
+ "applauding",
1033
+ 0.0025910602416843176
1034
  ]
1035
  ],
1036
+ "segment_048_yolo.mov": [
1037
  [
1038
+ "\"playing didgeridoo\"",
1039
+ 0.002998597687110305
1040
  ],
1041
  [
1042
+ "\"tying knot (not on a tie)\"",
1043
+ 0.002664106199517846
1044
  ],
1045
  [
1046
+ "\"punching person (boxing)\"",
1047
+ 0.0026295355055481195
1048
  ],
1049
  [
1050
+ "archery",
1051
+ 0.002614056458696723
1052
  ],
1053
  [
1054
+ "\"punching bag\"",
1055
+ 0.002602426568046212
1056
  ]
1057
  ],
1058
+ "segment_049_yolo.mov": [
1059
  [
1060
+ "\"shaking hands\"",
1061
+ 0.0028212147299200296
1062
  ],
1063
  [
1064
  "\"pumping fist\"",
1065
+ 0.0027190211694687605
1066
  ],
1067
  [
1068
+ "crying",
1069
+ 0.002711821347475052
1070
  ],
1071
  [
1072
+ "beatboxing",
1073
+ 0.0027061770670115948
1074
  ],
1075
  [
1076
+ "archery",
1077
+ 0.0026165973395109177
1078
  ]
1079
  ],
1080
+ "segment_050_yolo.mov": [
 
 
 
 
1081
  [
1082
  "beatboxing",
1083
+ 0.003699116175994277
1084
  ],
1085
  [
1086
+ "crying",
1087
+ 0.0026820709463208914
1088
  ],
1089
  [
1090
  "\"pumping fist\"",
1091
+ 0.002612361451610923
1092
  ],
1093
  [
1094
+ "\"fixing hair\"",
1095
+ 0.0025948460679501295
1096
+ ],
1097
+ [
1098
+ "\"answering questions\"",
1099
+ 0.0025929072871804237
1100
  ]
1101
  ],
1102
+ "segment_051_yolo.mov": [
1103
  [
1104
+ "\"kicking field goal\"",
1105
+ 0.004578351974487305
1106
  ],
1107
  [
1108
  "\"passing American football (not in game)\"",
1109
+ 0.0026734094135463238
1110
  ],
1111
  [
1112
+ "\"passing American football (in game)\"",
1113
+ 0.002669935580343008
1114
  ],
1115
  [
1116
+ "\"high kick\"",
1117
+ 0.002588945673778653
1118
  ],
1119
  [
1120
+ "\"side kick\"",
1121
+ 0.0025703362189233303
1122
  ]
1123
  ],
1124
+ "segment_052_yolo.mov": [
 
 
 
 
1125
  [
1126
  "\"kicking field goal\"",
1127
+ 0.0055681997910141945
1128
  ],
1129
  [
1130
  "\"passing American football (not in game)\"",
1131
+ 0.0027117645367980003
1132
  ],
1133
  [
1134
+ "\"high kick\"",
1135
+ 0.0025820170994848013
1136
  ],
1137
  [
1138
+ "\"passing American football (in game)\"",
1139
+ 0.0025415276177227497
1140
+ ],
1141
+ [
1142
+ "\"side kick\"",
1143
+ 0.0025172519963234663
1144
  ]
1145
  ],
1146
+ "segment_053_yolo.mov": [
1147
  [
1148
  "\"passing American football (in game)\"",
1149
+ 0.005285617895424366
1150
  ],
1151
  [
1152
  "\"passing American football (not in game)\"",
1153
+ 0.003025428391993046
1154
  ],
1155
  [
1156
+ "\"kicking field goal\"",
1157
+ 0.0025891384575515985
1158
  ],
1159
  [
1160
+ "hurdling",
1161
+ 0.0024980036541819572
1162
  ],
1163
  [
1164
+ "\"dribbling basketball\"",
1165
+ 0.002496924251317978
1166
  ]
1167
  ],
1168
+ "segment_054_yolo.mov": [
1169
  [
1170
+ "\"passing American football (not in game)\"",
1171
+ 0.003872552188113332
1172
  ],
1173
  [
1174
+ "\"dribbling basketball\"",
1175
+ 0.0030753780156373978
1176
  ],
1177
  [
1178
  "\"kicking field goal\"",
1179
+ 0.0027650834526866674
1180
  ],
1181
  [
1182
+ "\"passing American football (in game)\"",
1183
+ 0.002675949363037944
1184
  ],
1185
  [
1186
+ "\"playing basketball\"",
1187
+ 0.002576695755124092
1188
  ]
1189
  ],
1190
+ "segment_055_yolo.mov": [
1191
  [
1192
+ "\"catching or throwing baseball\"",
1193
+ 0.0026663222815841436
1194
  ],
1195
  [
1196
+ "\"juggling soccer ball\"",
1197
+ 0.0026123772840946913
1198
  ],
1199
  [
1200
+ "\"robot dancing\"",
1201
+ 0.0025953492149710655
1202
  ],
1203
  [
1204
+ "zumba",
1205
+ 0.00258544716052711
1206
  ],
1207
  [
1208
+ "\"shaking hands\"",
1209
+ 0.002576549304649234
1210
  ]
1211
  ],
1212
+ "segment_056_yolo.mov": [
1213
  [
1214
  "headbutting",
1215
+ 0.0033332169987261295
1216
  ],
1217
  [
1218
+ "\"playing ice hockey\"",
1219
+ 0.0029790825210511684
1220
  ],
1221
  [
1222
+ "\"pumping fist\"",
1223
+ 0.002842084737494588
1224
  ],
1225
  [
1226
+ "bobsledding",
1227
+ 0.0026699050795286894
1228
  ],
1229
  [
1230
+ "\"shaking hands\"",
1231
+ 0.0026647481136024
1232
  ]
1233
  ],
1234
+ "segment_057_yolo.mov": [
1235
  [
1236
  "bobsledding",
1237
+ 0.005422221962362528
1238
  ],
1239
  [
1240
+ "\"playing ice hockey\"",
1241
+ 0.0025597589556127787
1242
  ],
1243
  [
1244
+ "\"pumping fist\"",
1245
+ 0.0025510250125080347
1246
  ],
1247
  [
1248
  "\"playing poker\"",
1249
+ 0.0025464443024247885
1250
  ],
1251
  [
1252
+ "\"pushing car\"",
1253
+ 0.0025204005651175976
1254
  ]
1255
  ],
1256
+ "segment_058_yolo.mov": [
1257
  [
1258
+ "\"getting a tattoo\"",
1259
+ 0.002656659111380577
1260
  ],
1261
  [
1262
+ "kissing",
1263
+ 0.0026373309083282948
1264
  ],
1265
  [
1266
+ "\"shaking hands\"",
1267
+ 0.002583152847364545
1268
  ],
1269
  [
1270
+ "\"drinking beer\"",
1271
+ 0.00256769685074687
1272
  ],
1273
  [
1274
+ "\"surfing crowd\"",
1275
+ 0.0025616209022700787
1276
  ]
1277
  ],
1278
+ "segment_059_yolo.mov": [
1279
  [
1280
  "bobsledding",
1281
+ 0.004245623480528593
1282
  ],
1283
  [
1284
  "\"playing ice hockey\"",
1285
+ 0.0029677152633666992
1286
  ],
1287
  [
1288
  "\"playing paintball\"",
1289
+ 0.0026224006433039904
1290
  ],
1291
  [
1292
+ "archery",
1293
+ 0.002558595733717084
1294
  ],
1295
  [
1296
+ "\"catching or throwing baseball\"",
1297
+ 0.0025341541040688753
1298
  ]
1299
  ],
1300
+ "segment_060_yolo.mov": [
1301
  [
1302
+ "\"kicking field goal\"",
1303
+ 0.0036240005865693092
1304
  ],
1305
  [
1306
+ "\"passing American football (in game)\"",
1307
+ 0.003306543454527855
1308
  ],
1309
  [
1310
+ "\"dribbling basketball\"",
1311
+ 0.0026300682220607996
1312
  ],
1313
  [
1314
+ "\"playing basketball\"",
1315
+ 0.0026117167435586452
1316
  ],
1317
  [
1318
+ "\"passing American football (not in game)\"",
1319
+ 0.002595077035948634
1320
  ]
1321
  ],
1322
+ "segment_061_yolo.mov": [
1323
  [
1324
  "\"passing American football (in game)\"",
1325
+ 0.005980201065540314
1326
  ],
1327
  [
1328
+ "\"passing American football (not in game)\"",
1329
+ 0.002735982881858945
1330
  ],
1331
  [
1332
+ "\"kicking field goal\"",
1333
+ 0.002559477696195245
1334
  ],
1335
  [
1336
  "\"side kick\"",
1337
+ 0.002491735853254795
1338
  ],
1339
  [
1340
+ "hurdling",
1341
+ 0.002491380088031292
1342
  ]
1343
  ],
1344
+ "segment_062_yolo.mov": [
1345
  [
1346
+ "\"catching or throwing baseball\"",
1347
+ 0.003453051671385765
1348
  ],
1349
  [
1350
+ "headbutting",
1351
+ 0.0029976735822856426
1352
  ],
1353
  [
1354
+ "\"passing American football (not in game)\"",
1355
+ 0.0027572312392294407
1356
  ],
1357
  [
1358
+ "\"playing basketball\"",
1359
+ 0.0026159172412008047
1360
  ],
1361
  [
1362
+ "\"kicking field goal\"",
1363
+ 0.002610888099297881
1364
  ]
1365
  ],
1366
+ "segment_063_yolo.mov": [
1367
  [
1368
+ "\"shaking hands\"",
1369
+ 0.003249020781368017
1370
  ],
1371
  [
1372
  "\"passing American football (in game)\"",
1373
+ 0.002968696178868413
1374
  ],
1375
  [
1376
+ "\"kicking field goal\"",
1377
+ 0.0029286122880876064
1378
  ],
1379
  [
1380
+ "headbutting",
1381
+ 0.0028115534223616123
1382
  ],
1383
  [
1384
+ "celebrating",
1385
+ 0.0026473260950297117
1386
  ]
1387
  ],
1388
+ "segment_064_yolo.mov": [
1389
  [
1390
+ "\"kicking field goal\"",
1391
+ 0.0036601137835532427
1392
  ],
1393
  [
1394
+ "\"passing American football (in game)\"",
1395
+ 0.0033671045675873756
1396
  ],
1397
  [
1398
+ "\"passing American football (not in game)\"",
1399
+ 0.0032084467820823193
1400
  ],
1401
  [
1402
+ "\"high kick\"",
1403
+ 0.0025236636865884066
1404
  ],
1405
  [
1406
+ "headbutting",
1407
+ 0.002520572626963258
1408
  ]
1409
  ],
1410
+ "segment_065_yolo.mov": [
1411
  [
1412
+ "squat",
1413
+ 0.004455567337572575
1414
  ],
1415
  [
1416
+ "\"side kick\"",
1417
+ 0.0027356701903045177
1418
  ],
1419
  [
1420
+ "\"tai chi\"",
1421
+ 0.002618422731757164
1422
  ],
1423
  [
1424
+ "\"high kick\"",
1425
+ 0.0025688919704407454
1426
  ],
1427
  [
1428
+ "\"bench pressing\"",
1429
+ 0.0025475008878856897
1430
  ]
1431
  ],
1432
+ "segment_066_yolo.mov": [
1433
  [
1434
  "bobsledding",
1435
+ 0.0033308248966932297
1436
  ],
1437
  [
1438
+ "headbutting",
1439
+ 0.0031743308063596487
1440
  ],
1441
  [
1442
+ "\"milking cow\"",
1443
+ 0.002937618177384138
1444
  ],
1445
  [
1446
+ "\"punching bag\"",
1447
+ 0.0027583763003349304
1448
  ],
1449
  [
1450
+ "\"punching person (boxing)\"",
1451
+ 0.0025923149660229683
1452
  ]
1453
  ],
1454
+ "segment_067_yolo.mov": [
1455
  [
1456
+ "\"bench pressing\"",
1457
+ 0.0029304653871804476
1458
  ],
1459
  [
1460
  "\"pushing car\"",
1461
+ 0.002887815935537219
1462
  ],
1463
  [
1464
+ "\"massaging back\"",
1465
+ 0.0027693593874573708
1466
  ],
1467
  [
1468
+ "squat",
1469
+ 0.002698527416214347
1470
  ],
1471
  [
1472
  "\"arm wrestling\"",
1473
+ 0.002601209795102477
1474
  ]
1475
  ],
1476
+ "segment_068_yolo.mov": [
1477
  [
1478
+ "\"hitting baseball\"",
1479
+ 0.003601266536861658
1480
  ],
1481
  [
1482
+ "\"catching or throwing baseball\"",
1483
+ 0.0028322539292275906
1484
  ],
1485
  [
1486
+ "\"playing cricket\"",
1487
+ 0.0026244791224598885
1488
  ],
1489
  [
1490
+ "\"golf putting\"",
1491
+ 0.0026135281659662724
1492
  ],
1493
  [
1494
+ "archery",
1495
+ 0.0025685506407171488
1496
  ]
1497
  ],
1498
+ "segment_069_yolo.mov": [
1499
  [
1500
+ "\"stretching leg\"",
1501
+ 0.003092997008934617
1502
  ],
1503
  [
1504
+ "\"catching or throwing softball\"",
1505
+ 0.0027329849544912577
1506
  ],
1507
  [
1508
+ "\"stretching arm\"",
1509
+ 0.002648310735821724
1510
  ],
1511
  [
1512
+ "\"kicking field goal\"",
1513
+ 0.0026460480876266956
1514
  ],
1515
  [
1516
+ "\"catching or throwing baseball\"",
1517
+ 0.00262187491171062
1518
  ]
1519
  ],
1520
+ "segment_070_yolo.mov": [
 
 
 
 
1521
  [
1522
+ "\"catching or throwing softball\"",
1523
+ 0.003247001674026251
1524
  ],
1525
  [
1526
  "\"kicking field goal\"",
1527
+ 0.002695336937904358
1528
  ],
1529
  [
1530
+ "\"passing American football (not in game)\"",
1531
+ 0.0026748699601739645
1532
  ],
1533
  [
1534
  "\"catching or throwing baseball\"",
1535
+ 0.002671601017937064
1536
+ ],
1537
+ [
1538
+ "\"hitting baseball\"",
1539
+ 0.002642728155478835
1540
  ]
1541
  ],
1542
+ "segment_071_yolo.mov": [
1543
  [
1544
+ "\"hitting baseball\"",
1545
+ 0.0030939432326704264
1546
  ],
1547
  [
1548
+ "\"catching or throwing softball\"",
1549
+ 0.0028539237100631
1550
  ],
1551
  [
1552
+ "\"catching or throwing baseball\"",
1553
+ 0.002755603985860944
1554
  ],
1555
  [
1556
+ "\"stretching leg\"",
1557
+ 0.002734230598434806
1558
  ],
1559
  [
1560
+ "\"kicking field goal\"",
1561
+ 0.002713371068239212
1562
  ]
1563
  ],
1564
+ "segment_072_yolo.mov": [
1565
  [
1566
+ "\"hitting baseball\"",
1567
+ 0.0027466765604913235
1568
  ],
1569
  [
1570
+ "\"stretching leg\"",
1571
+ 0.0027434169314801693
1572
  ],
1573
  [
1574
+ "\"catching or throwing softball\"",
1575
+ 0.0027391111943870783
1576
  ],
1577
  [
1578
+ "\"passing American football (not in game)\"",
1579
+ 0.0027261157520115376
1580
  ],
1581
  [
1582
+ "\"golf putting\"",
1583
+ 0.0027199701871722937
1584
  ]
1585
  ],
1586
+ "segment_073_yolo.mov": [
1587
  [
1588
+ "\"passing American football (not in game)\"",
1589
+ 0.003243114333599806
1590
  ],
1591
  [
1592
+ "\"catching or throwing softball\"",
1593
+ 0.002755112247541547
1594
  ],
1595
  [
1596
+ "\"hitting baseball\"",
1597
+ 0.0027126993518322706
1598
  ],
1599
  [
1600
+ "\"catching or throwing baseball\"",
1601
+ 0.002663438906893134
1602
  ],
1603
  [
1604
+ "dodgeball",
1605
+ 0.002640771446749568
1606
  ]
1607
  ],
1608
+ "segment_074_yolo.mov": [
1609
  [
1610
+ "\"catching or throwing softball\"",
1611
+ 0.003232127521187067
1612
  ],
1613
  [
1614
+ "\"catching or throwing baseball\"",
1615
+ 0.002780261682346463
1616
  ],
1617
  [
1618
+ "\"kicking field goal\"",
1619
+ 0.00266905571334064
1620
  ],
1621
  [
1622
+ "\"passing American football (not in game)\"",
1623
+ 0.0026120333932340145
1624
  ],
1625
  [
1626
+ "\"hitting baseball\"",
1627
+ 0.0025939152110368013
1628
  ]
1629
  ],
1630
+ "segment_075_yolo.mov": [
1631
  [
1632
+ "\"catching or throwing baseball\"",
1633
+ 0.004522757604718208
1634
  ],
1635
  [
1636
  "\"passing American football (not in game)\"",
1637
+ 0.0029215679969638586
1638
  ],
1639
  [
1640
  "\"kicking field goal\"",
1641
+ 0.0026764352805912495
1642
  ],
1643
  [
1644
+ "\"catching or throwing softball\"",
1645
+ 0.0026693218387663364
1646
  ],
1647
  [
1648
+ "\"hitting baseball\"",
1649
+ 0.0025645860005170107
1650
  ]
1651
  ],
1652
+ "segment_076_yolo.mov": [
1653
  [
1654
  "\"hurling (sport)\"",
1655
+ 0.0032000483479350805
1656
  ],
1657
  [
1658
  "headbutting",
1659
+ 0.0027553813997656107
1660
  ],
1661
  [
1662
+ "\"hitting baseball\"",
1663
+ 0.0027151587419211864
1664
  ],
1665
  [
1666
+ "\"playing cricket\"",
1667
+ 0.002658894518390298
1668
  ],
1669
  [
1670
+ "\"catching or throwing baseball\"",
1671
+ 0.0026289441157132387
1672
  ]
1673
  ],
1674
  "segment_077.mov": []
config.py CHANGED
@@ -19,6 +19,11 @@ DEVICE = torch.device("cpu") # Use "cuda" for GPU acceleration if available
19
  AUDIO_MODEL_NAME = "openai/whisper-medium" # Options: whisper-base, whisper-medium, whisper-large
20
  AUDIO_DEVICE = -1 # -1 for CPU, 0+ for GPU device index
21
 
 
 
 
 
 
22
  # ============================================================================
23
  # VIDEO PROCESSING PARAMETERS
24
  # ============================================================================
@@ -146,6 +151,32 @@ DEFAULT_CLASSIFICATION_FILE = "classification.json"
146
  DEFAULT_TRANSCRIPT_FILE = "transcripts.json"
147
  DEFAULT_PLAY_ANALYSIS_FILE = "play_analysis.json"
148
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
149
  # Progress saving intervals
150
  VIDEO_SAVE_INTERVAL = 5 # Save video results every N clips
151
  AUDIO_SAVE_INTERVAL = 3 # Save audio results every N clips
 
19
  AUDIO_MODEL_NAME = "openai/whisper-medium" # Options: whisper-base, whisper-medium, whisper-large
20
  AUDIO_DEVICE = -1 # -1 for CPU, 0+ for GPU device index
21
 
22
+ # YOLO Object Detection Model
23
+ YOLO_MODEL_SIZE = "nano" # Options: nano, small, medium, large, xlarge
24
+ YOLO_CONFIDENCE_THRESHOLD = 0.25 # Detection confidence threshold
25
+ YOLO_IMAGE_SIZE = 640 # Input image size for YOLO inference
26
+
27
  # ============================================================================
28
  # VIDEO PROCESSING PARAMETERS
29
  # ============================================================================
 
151
  DEFAULT_TRANSCRIPT_FILE = "transcripts.json"
152
  DEFAULT_PLAY_ANALYSIS_FILE = "play_analysis.json"
153
 
154
+ # ============================================================================
155
+ # DIRECTORY STRUCTURE AND PATHS
156
+ # ============================================================================
157
+ #
158
+ # All directory paths are centrally configured here. This provides:
159
+ # - Consistent paths across all modules
160
+ # - Easy customization for different deployment scenarios
161
+ # - Clear separation between input, output, cache, and temporary directories
162
+ # - Support for both relative and absolute paths
163
+ #
164
+ # To customize directories, modify the values below or set environment variables
165
+ # before importing this module.
166
+
167
+ # Input directories
168
+ DEFAULT_DATA_DIR = "data" # Default video clips directory
169
+ DEFAULT_SEGMENTS_DIR = "segments" # Screen capture segments directory
170
+ DEFAULT_YOLO_OUTPUT_DIR = "segments/yolo" # YOLO processed clips output
171
+
172
+ # Cache and temporary directories (None = use system defaults)
173
+ DEFAULT_CACHE_DIR = None # General cache (~/.cache)
174
+ DEFAULT_TEMP_DIR = None # Temporary files (/tmp)
175
+
176
+ # Model storage paths (None = use default locations)
177
+ TORCH_HUB_CACHE_DIR = None # PyTorch hub models (~/.cache/torch/hub)
178
+ HUGGINGFACE_CACHE_DIR = None # HuggingFace models (~/.cache/huggingface)
179
+
180
  # Progress saving intervals
181
  VIDEO_SAVE_INTERVAL = 5 # Save video results every N clips
182
  AUDIO_SAVE_INTERVAL = 3 # Save audio results every N clips
inference.py CHANGED
@@ -23,6 +23,7 @@ from typing import List, Tuple
23
  # Import from new modular structure
24
  from video import predict_clip, analyze_play_state, detect_play_boundaries
25
  from audio import transcribe_clip, load_audio, apply_sports_corrections, fuzzy_sports_corrections
 
26
 
27
  # Re-export all functions for backward compatibility
28
  __all__ = [
@@ -45,7 +46,7 @@ def main():
45
  """
46
  if len(sys.argv) < 2:
47
  print("Usage: python inference.py <path_to_video_clip>")
48
- print("Example: python inference.py data/segment_001.mov")
49
  sys.exit(1)
50
 
51
  clip_path = sys.argv[1]
 
23
  # Import from new modular structure
24
  from video import predict_clip, analyze_play_state, detect_play_boundaries
25
  from audio import transcribe_clip, load_audio, apply_sports_corrections, fuzzy_sports_corrections
26
+ from config import DEFAULT_DATA_DIR
27
 
28
  # Re-export all functions for backward compatibility
29
  __all__ = [
 
46
  """
47
  if len(sys.argv) < 2:
48
  print("Usage: python inference.py <path_to_video_clip>")
49
+ print(f"Example: python inference.py {DEFAULT_DATA_DIR}/segment_001.mov")
50
  sys.exit(1)
51
 
52
  clip_path = sys.argv[1]
play_analysis.json CHANGED
@@ -1,2054 +1,2054 @@
1
  {
2
  "clips": [
3
  {
4
- "filename": "segment_001.mov",
5
  "play_state": "play_action",
6
- "confidence": 0.008741466095671058,
7
  "classifications": [
8
  [
9
  "\"catching or throwing baseball\"",
10
- 0.003259257646277547
11
  ],
12
  [
13
  "\"playing cricket\"",
14
- 0.002848330419510603
15
  ],
16
  [
17
- "applauding",
18
- 0.0027428145986050367
19
  ],
20
  [
21
- "\"catching or throwing softball\"",
22
- 0.002633878029882908
23
  ],
24
  [
25
- "\"passing American football (in game)\"",
26
- 0.0025873929262161255
27
  ]
28
  ]
29
  },
30
  {
31
- "filename": "segment_002.mov",
32
  "play_state": "play_action",
33
- "confidence": 0.002587514230981469,
34
  "classifications": [
35
  [
36
  "\"mowing lawn\"",
37
- 0.004539191722869873
38
  ],
39
  [
40
- "\"riding or walking with horse\"",
41
- 0.002820482011884451
42
  ],
43
  [
44
- "\"driving tractor\"",
45
- 0.002591945929452777
46
  ],
47
  [
48
- "\"catching or throwing baseball\"",
49
- 0.002587514230981469
50
  ],
51
  [
52
- "archery",
53
- 0.0025512496940791607
54
  ]
55
  ]
56
  },
57
  {
58
- "filename": "segment_003.mov",
59
  "play_state": "play_action",
60
- "confidence": 0.002635735785588622,
61
  "classifications": [
62
  [
63
  "\"hurling (sport)\"",
64
- 0.0035289316438138485
65
  ],
66
  [
67
  "headbutting",
68
- 0.0029045743867754936
69
  ],
70
  [
71
- "\"passing American football (not in game)\"",
72
- 0.002668950939550996
73
  ],
74
  [
75
- "\"pumping fist\"",
76
- 0.0026475831400603056
77
  ],
78
  [
79
- "\"playing cricket\"",
80
- 0.002635735785588622
81
  ]
82
  ]
83
  },
84
  {
85
- "filename": "segment_004.mov",
86
  "play_state": "non_play",
87
- "confidence": 0.00304257869720459,
88
  "classifications": [
89
  [
90
- "applauding",
91
- 0.00304257869720459
92
  ],
93
  [
94
- "headbutting",
95
- 0.0029725206550210714
96
  ],
97
  [
98
- "\"pumping fist\"",
99
- 0.0029444803949445486
100
  ],
101
  [
102
- "\"hurling (sport)\"",
103
- 0.0027822419069707394
104
  ],
105
  [
106
- "\"shaking hands\"",
107
- 0.002624393440783024
108
  ]
109
  ]
110
  },
111
  {
112
- "filename": "segment_005.mov",
113
- "play_state": "play_action",
114
- "confidence": 0.003370030550286174,
115
  "classifications": [
116
  [
117
- "\"catching or throwing baseball\"",
118
- 0.003370030550286174
119
  ],
120
  [
121
- "\"pumping fist\"",
122
- 0.00289507070556283
123
  ],
124
  [
125
- "\"catching or throwing frisbee\"",
126
- 0.0026615660171955824
127
  ],
128
  [
129
- "\"eating hotdog\"",
130
- 0.002651733811944723
131
  ],
132
  [
133
- "\"javelin throw\"",
134
- 0.0026478723157197237
135
  ]
136
  ]
137
  },
138
  {
139
- "filename": "segment_006.mov",
140
  "play_state": "unknown",
141
  "confidence": 0.0,
142
  "classifications": [
143
  [
144
- "\"riding mountain bike\"",
145
- 0.0030539515428245068
146
  ],
147
  [
148
- "\"bench pressing\"",
149
- 0.0030068582855165005
150
  ],
151
  [
152
- "\"changing wheel\"",
153
- 0.0028557234909385443
154
  ],
155
  [
156
- "\"checking tires\"",
157
- 0.002828161232173443
158
  ],
159
  [
160
- "\"changing oil\"",
161
- 0.0025825132615864277
162
  ]
163
  ]
164
  },
165
  {
166
- "filename": "segment_007.mov",
167
  "play_state": "unknown",
168
  "confidence": 0.0,
169
  "classifications": [
170
  [
171
- "\"changing oil\"",
172
- 0.003507673041895032
173
  ],
174
  [
175
- "\"pushing wheelchair\"",
176
- 0.0028540242929011583
177
  ],
178
  [
179
  "motorcycling",
180
- 0.002735486486926675
181
  ],
182
  [
183
- "\"checking tires\"",
184
- 0.0026065800338983536
185
  ],
186
  [
187
- "\"changing wheel\"",
188
- 0.0026001674123108387
189
  ]
190
  ]
191
  },
192
  {
193
- "filename": "segment_008.mov",
194
  "play_state": "unknown",
195
  "confidence": 0.0,
196
  "classifications": [
197
  [
198
- "motorcycling",
199
- 0.0034892940893769264
200
  ],
201
  [
202
- "\"riding mountain bike\"",
203
- 0.0027264610398560762
204
  ],
205
  [
206
- "\"pushing wheelchair\"",
207
- 0.0026729153469204903
208
  ],
209
  [
210
- "\"changing oil\"",
211
- 0.002655936172232032
212
  ],
213
  [
214
- "snowmobiling",
215
- 0.002622972708195448
216
  ]
217
  ]
218
  },
219
  {
220
- "filename": "segment_009.mov",
221
  "play_state": "play_active",
222
- "confidence": 0.02098492393270135,
223
  "classifications": [
224
  [
225
- "\"kicking field goal\"",
226
- 0.0051559642888605595
227
  ],
228
  [
229
- "\"tossing coin\"",
230
- 0.002858997555449605
231
  ],
232
  [
233
- "\"passing American football (in game)\"",
234
- 0.002840855158865452
235
  ],
236
  [
237
- "\"high kick\"",
238
- 0.0024956425186246634
239
  ],
240
  [
241
  "headbutting",
242
- 0.002494481625035405
243
  ]
244
  ]
245
  },
246
  {
247
- "filename": "segment_010.mov",
248
  "play_state": "play_active",
249
- "confidence": 0.011602595914155245,
250
  "classifications": [
251
  [
252
- "\"tossing coin\"",
253
- 0.003494303673505783
254
  ],
255
  [
256
- "headbutting",
257
- 0.003139702370390296
258
  ],
259
  [
260
- "\"kicking field goal\"",
261
- 0.003000226803123951
262
  ],
263
  [
264
- "\"passing American football (in game)\"",
265
- 0.0028010711539536715
266
  ],
267
  [
268
- "\"pumping fist\"",
269
- 0.0026133027859032154
270
  ]
271
  ]
272
  },
273
  {
274
- "filename": "segment_011.mov",
275
  "play_state": "play_active",
276
- "confidence": 0.01098605478182435,
277
  "classifications": [
278
  [
279
- "headbutting",
280
- 0.0035944455303251743
281
  ],
282
  [
283
- "\"kicking field goal\"",
284
- 0.002746515441685915
285
  ],
286
  [
287
- "\"passing American football (in game)\"",
288
- 0.00274651194922626
289
  ],
290
  [
291
- "cheerleading",
292
- 0.0027097328566014767
293
  ],
294
  [
295
- "\"playing ice hockey\"",
296
- 0.002675419207662344
297
  ]
298
  ]
299
  },
300
  {
301
- "filename": "segment_012.mov",
302
  "play_state": "non_play",
303
- "confidence": 0.0027217946480959654,
304
  "classifications": [
305
- [
306
- "cheerleading",
307
- 0.0033036908134818077
308
- ],
309
  [
310
  "\"dancing macarena\"",
311
- 0.0031919179018586874
312
  ],
313
  [
314
- "applauding",
315
- 0.0027217946480959654
316
  ],
317
  [
318
  "\"hitting baseball\"",
319
- 0.0026708708610385656
 
 
 
 
320
  ],
321
  [
322
  "\"garbage collecting\"",
323
- 0.0026213040109723806
324
  ]
325
  ]
326
  },
327
  {
328
- "filename": "segment_013.mov",
329
  "play_state": "play_active",
330
- "confidence": 0.005543170962482691,
331
  "classifications": [
 
 
 
 
332
  [
333
  "\"pumping fist\"",
334
- 0.0035472228191792965
335
  ],
336
  [
337
  "\"kicking field goal\"",
338
- 0.0027715854812413454
339
  ],
340
  [
341
  "\"dunking basketball\"",
342
- 0.0027416404336690903
343
- ],
344
- [
345
- "applauding",
346
- 0.002673310926184058
347
  ],
348
  [
349
  "celebrating",
350
- 0.002629267517477274
351
  ]
352
  ]
353
  },
354
  {
355
- "filename": "segment_014.mov",
356
- "play_state": "unknown",
357
- "confidence": 0.0,
358
  "classifications": [
359
  [
360
  "headbutting",
361
- 0.0038350492250174284
362
  ],
363
  [
364
- "bobsledding",
365
- 0.002937863813713193
366
  ],
367
  [
368
- "\"playing ice hockey\"",
369
- 0.002785387681797147
370
  ],
371
  [
372
- "\"punching person (boxing)\"",
373
- 0.002671806840226054
374
  ],
375
  [
376
- "\"changing wheel\"",
377
- 0.0026315213181078434
378
  ]
379
  ]
380
  },
381
  {
382
- "filename": "segment_015.mov",
383
  "play_state": "play_active",
384
- "confidence": 0.020375477615743876,
385
  "classifications": [
386
  [
387
- "\"passing American football (in game)\"",
388
- 0.00389948021620512
389
  ],
390
  [
391
- "\"side kick\"",
392
- 0.003301523393020034
393
  ],
394
  [
395
- "\"kicking field goal\"",
396
- 0.002986735198646784
397
  ],
398
  [
399
- "\"passing American football (not in game)\"",
400
- 0.0026217757258564234
401
  ],
402
  [
403
- "\"catching or throwing baseball\"",
404
- 0.002540471963584423
405
  ]
406
  ]
407
  },
408
  {
409
- "filename": "segment_016.mov",
410
  "play_state": "play_active",
411
- "confidence": 0.02814871072769165,
412
  "classifications": [
413
  [
414
- "\"passing American football (in game)\"",
415
- 0.006536518689244986
416
  ],
417
  [
418
- "\"side kick\"",
419
- 0.0025378491263836622
420
  ],
421
  [
422
- "\"passing American football (not in game)\"",
423
- 0.0025076796300709248
424
  ],
425
  [
426
- "\"kicking field goal\"",
427
- 0.002507618861272931
428
  ],
429
  [
430
- "\"high kick\"",
431
- 0.0024923686869442463
432
  ]
433
  ]
434
  },
435
  {
436
- "filename": "segment_017.mov",
437
  "play_state": "play_active",
438
- "confidence": 0.026049073319882154,
439
  "classifications": [
440
- [
441
- "\"passing American football (in game)\"",
442
- 0.004528654273599386
443
- ],
444
  [
445
  "\"kicking field goal\"",
446
- 0.003415569895878434
447
  ],
448
  [
449
  "\"passing American football (not in game)\"",
450
- 0.0026175878010690212
451
  ],
452
  [
453
  "\"side kick\"",
454
- 0.0025776273105293512
455
  ],
456
  [
457
- "\"high kick\"",
458
- 0.0025026851799339056
 
 
 
 
459
  ]
460
  ]
461
  },
462
  {
463
- "filename": "segment_018.mov",
464
  "play_state": "play_active",
465
- "confidence": 0.02609291672706604,
466
  "classifications": [
467
  [
468
- "\"passing American football (in game)\"",
469
- 0.004061450716108084
470
  ],
471
  [
472
- "\"side kick\"",
473
- 0.0038009993731975555
474
  ],
475
  [
476
- "\"kicking field goal\"",
477
- 0.002601894084364176
478
  ],
479
  [
480
- "\"high kick\"",
481
- 0.002582114189863205
482
  ],
483
  [
484
- "\"passing American football (not in game)\"",
485
- 0.0025175546761602163
486
  ]
487
  ]
488
  },
489
  {
490
- "filename": "segment_019.mov",
491
  "play_state": "play_active",
492
- "confidence": 0.023120349273085594,
493
  "classifications": [
 
 
 
 
494
  [
495
  "\"passing American football (in game)\"",
496
- 0.006576324347406626
497
  ],
498
  [
499
  "\"passing American football (not in game)\"",
500
- 0.002554940525442362
501
  ],
502
  [
503
- "\"kicking field goal\"",
504
- 0.0024935186374932528
505
  ],
506
  [
507
  "\"side kick\"",
508
- 0.0024903316516429186
509
- ],
510
- [
511
- "\"catching or throwing frisbee\"",
512
- 0.002489960053935647
513
  ]
514
  ]
515
  },
516
  {
517
- "filename": "segment_020.mov",
518
  "play_state": "play_active",
519
- "confidence": 0.018470022827386856,
520
  "classifications": [
521
  [
522
  "\"passing American football (in game)\"",
523
- 0.006745155900716782
524
  ],
525
  [
526
  "\"passing American football (not in game)\"",
527
- 0.002495990600436926
528
  ],
529
  [
530
  "\"kicking field goal\"",
531
- 0.0024898555129766464
532
  ],
533
  [
534
  "headbutting",
535
- 0.002489602193236351
536
  ],
537
  [
538
- "\"shaking hands\"",
539
- 0.0024894699454307556
540
  ]
541
  ]
542
  },
543
  {
544
- "filename": "segment_021.mov",
545
- "play_state": "play_active",
546
- "confidence": 0.00977520551532507,
547
  "classifications": [
548
  [
549
- "\"passing American football (in game)\"",
550
- 0.004887602757662535
551
  ],
552
  [
553
- "\"passing American football (not in game)\"",
554
- 0.002793429885059595
555
  ],
556
  [
557
- "situp",
558
- 0.0026539755053818226
559
  ],
560
  [
561
- "\"dribbling basketball\"",
562
- 0.0026028482243418694
563
  ],
564
  [
565
- "\"throwing ball\"",
566
- 0.002529650926589966
567
  ]
568
  ]
569
  },
570
  {
571
- "filename": "segment_022.mov",
572
- "play_state": "play_active",
573
- "confidence": 0.005674467422068119,
574
  "classifications": [
575
  [
576
- "\"pumping fist\"",
577
- 0.002948896726593375
578
  ],
579
  [
580
- "\"passing American football (in game)\"",
581
- 0.0028372337110340595
582
  ],
583
  [
584
- "\"tossing coin\"",
585
- 0.0027690029237419367
586
  ],
587
  [
588
- "\"shaking hands\"",
589
- 0.0027542426250874996
590
  ],
591
  [
592
- "headbutting",
593
- 0.0026179237756878138
594
  ]
595
  ]
596
  },
597
  {
598
- "filename": "segment_023.mov",
599
  "play_state": "unknown",
600
  "confidence": 0.0,
601
  "classifications": [
602
  [
603
- "\"pumping fist\"",
604
- 0.003991341684013605
605
  ],
606
  [
607
- "headbutting",
608
- 0.002623251872137189
609
  ],
610
  [
611
- "motorcycling",
612
- 0.0025920518673956394
613
  ],
614
  [
615
- "skydiving",
616
- 0.0025866003707051277
617
  ],
618
  [
619
- "bobsledding",
620
- 0.0025851819664239883
621
  ]
622
  ]
623
  },
624
  {
625
- "filename": "segment_024.mov",
626
  "play_state": "unknown",
627
  "confidence": 0.0,
628
  "classifications": [
629
  [
630
  "\"riding a bike\"",
631
- 0.0037740382831543684
632
  ],
633
  [
634
- "motorcycling",
635
- 0.002751761581748724
636
  ],
637
  [
638
- "bobsledding",
639
- 0.0026172574143856764
640
  ],
641
  [
642
- "\"riding unicycle\"",
643
- 0.0025924895890057087
644
  ],
645
  [
646
- "\"pumping fist\"",
647
- 0.0025839442387223244
648
  ]
649
  ]
650
  },
651
  {
652
- "filename": "segment_025.mov",
653
  "play_state": "unknown",
654
  "confidence": 0.0,
655
  "classifications": [
656
  [
657
  "bobsledding",
658
- 0.004564006347209215
659
  ],
660
  [
661
- "\"shaking hands\"",
662
- 0.0026650093495845795
663
  ],
664
  [
665
- "motorcycling",
666
- 0.002605688525363803
667
  ],
668
  [
669
- "\"pumping fist\"",
670
- 0.0026000377256423235
671
  ],
672
  [
673
- "skydiving",
674
- 0.0025698416866362095
675
  ]
676
  ]
677
  },
678
  {
679
- "filename": "segment_026.mov",
680
- "play_state": "play_active",
681
- "confidence": 0.010059342719614506,
682
  "classifications": [
683
  [
684
- "\"tossing coin\"",
685
- 0.005768336355686188
686
  ],
687
  [
688
- "squat",
689
- 0.0025260422844439745
690
  ],
691
  [
692
- "\"side kick\"",
693
- 0.0025187088176608086
694
  ],
695
  [
696
- "\"shaking hands\"",
697
- 0.0025166154373437166
698
  ],
699
  [
700
- "\"kicking field goal\"",
701
- 0.0025109625421464443
702
  ]
703
  ]
704
  },
705
  {
706
- "filename": "segment_027.mov",
707
  "play_state": "play_active",
708
- "confidence": 0.005376111716032028,
709
  "classifications": [
710
  [
711
- "\"carrying baby\"",
712
- 0.0028944576624780893
713
  ],
714
  [
715
- "\"side kick\"",
716
- 0.002688055858016014
717
  ],
718
  [
719
- "\"salsa dancing\"",
720
- 0.002644676947966218
721
  ],
722
  [
723
- "\"hula hooping\"",
724
- 0.0026000014040619135
725
  ],
726
  [
727
- "archery",
728
- 0.002581424079835415
729
  ]
730
  ]
731
  },
732
  {
733
- "filename": "segment_028.mov",
734
  "play_state": "unknown",
735
  "confidence": 0.0,
736
  "classifications": [
737
  [
738
  "\"stretching arm\"",
739
- 0.004183173179626465
740
  ],
741
  [
742
- "archery",
743
- 0.0028685072902590036
744
  ],
745
  [
746
- "\"carrying baby\"",
747
- 0.002629334107041359
748
  ],
749
  [
750
- "yoga",
751
- 0.0025525041855871677
752
  ],
753
  [
754
- "\"stretching leg\"",
755
- 0.0025523642543703318
756
  ]
757
  ]
758
  },
759
  {
760
- "filename": "segment_029.mov",
761
  "play_state": "unknown",
762
  "confidence": 0.0,
763
  "classifications": [
764
  [
765
- "\"getting a tattoo\"",
766
- 0.0036486154422163963
767
  ],
768
  [
769
- "archery",
770
- 0.0027306571137160063
771
  ],
772
  [
773
- "\"punching person (boxing)\"",
774
- 0.0027052827645093203
775
  ],
776
  [
777
- "\"punching bag\"",
778
- 0.002618985017761588
779
  ],
780
  [
781
- "squat",
782
- 0.0026112094055861235
783
  ]
784
  ]
785
  },
786
  {
787
- "filename": "segment_030.mov",
788
  "play_state": "unknown",
789
  "confidence": 0.0,
790
  "classifications": [
791
  [
792
  "\"spray painting\"",
793
- 0.004089465364813805
794
  ],
795
  [
796
  "\"getting a tattoo\"",
797
- 0.002762633841484785
798
  ],
799
  [
800
- "\"playing paintball\"",
801
- 0.0027071302756667137
802
  ],
803
  [
804
- "\"changing wheel\"",
805
- 0.0026773668359965086
806
  ],
807
  [
808
- "bobsledding",
809
- 0.0025922050699591637
810
  ]
811
  ]
812
  },
813
  {
814
- "filename": "segment_031.mov",
815
  "play_state": "play_action",
816
- "confidence": 0.0028556634206324816,
817
  "classifications": [
818
  [
819
- "\"mowing lawn\"",
820
- 0.0034001749008893967
821
  ],
822
  [
823
- "\"passing American football (not in game)\"",
824
- 0.003030994674190879
825
  ],
826
  [
827
- "\"catching or throwing baseball\"",
828
- 0.0028556634206324816
829
  ],
830
  [
831
- "\"pumping fist\"",
832
- 0.002578843617811799
833
  ],
834
  [
835
  "\"riding or walking with horse\"",
836
- 0.002575062680989504
837
  ]
838
  ]
839
  },
840
  {
841
- "filename": "segment_032.mov",
842
  "play_state": "play_active",
843
- "confidence": 0.011570594273507595,
844
  "classifications": [
845
  [
846
- "\"passing American football (in game)\"",
847
- 0.003045632503926754
848
  ],
849
  [
850
- "marching",
851
- 0.0030235128942877054
852
  ],
853
  [
854
- "\"passing American football (not in game)\"",
855
- 0.0029362209606915712
856
  ],
857
  [
858
- "\"kicking field goal\"",
859
- 0.0027396646328270435
860
  ],
861
  [
862
- "\"hurling (sport)\"",
863
- 0.002676320029422641
864
  ]
865
  ]
866
  },
867
  {
868
- "filename": "segment_033.mov",
869
- "play_state": "unknown",
870
- "confidence": 0.0,
871
  "classifications": [
872
  [
873
- "\"mowing lawn\"",
874
- 0.004852019250392914
875
  ],
876
  [
877
  "\"passing American football (not in game)\"",
878
- 0.002654429292306304
879
  ],
880
  [
881
  "\"hurling (sport)\"",
882
- 0.002581879962235689
883
  ],
884
  [
885
- "\"kicking soccer ball\"",
886
- 0.0025664607528597116
887
  ],
888
  [
889
- "\"juggling soccer ball\"",
890
- 0.002544356742873788
891
  ]
892
  ]
893
  },
894
  {
895
- "filename": "segment_034.mov",
896
- "play_state": "unknown",
897
- "confidence": 0.0,
898
  "classifications": [
899
  [
900
  "archery",
901
- 0.004724352620542049
902
  ],
903
  [
904
- "\"trimming or shaving beard\"",
905
- 0.0026578360702842474
906
  ],
907
  [
908
- "\"golf driving\"",
909
- 0.002610759809613228
910
  ],
911
  [
912
- "\"tossing coin\"",
913
- 0.002541653113439679
914
  ],
915
  [
916
- "\"mowing lawn\"",
917
- 0.0025332642253488302
918
  ]
919
  ]
920
  },
921
  {
922
- "filename": "segment_035.mov",
923
  "play_state": "unknown",
924
  "confidence": 0.0,
925
  "classifications": [
926
  [
927
  "\"playing harmonica\"",
928
- 0.006103646010160446
929
  ],
930
  [
931
- "whistling",
932
- 0.002615551697090268
933
  ],
934
  [
935
- "smoking",
936
- 0.0025100400671362877
937
  ],
938
  [
939
- "yawning",
940
- 0.0025017866864800453
941
  ],
942
  [
943
- "\"playing ukulele\"",
944
- 0.0025011510588228703
945
  ]
946
  ]
947
  },
948
  {
949
- "filename": "segment_036.mov",
950
  "play_state": "play_active",
951
- "confidence": 0.028179258573800325,
952
  "classifications": [
953
  [
954
- "\"passing American football (in game)\"",
955
- 0.006577454507350922
956
  ],
957
  [
958
- "\"passing American football (not in game)\"",
959
- 0.002514705527573824
960
  ],
961
  [
962
- "\"kicking field goal\"",
963
- 0.0025104687083512545
964
  ],
965
  [
966
- "\"side kick\"",
967
- 0.0025097192265093327
968
  ],
969
  [
970
- "\"high kick\"",
971
- 0.002491986844688654
972
  ]
973
  ]
974
  },
975
  {
976
- "filename": "segment_037.mov",
977
  "play_state": "play_active",
978
- "confidence": 0.028456952422857285,
979
  "classifications": [
980
  [
981
  "\"passing American football (in game)\"",
982
- 0.006760087329894304
983
  ],
984
  [
985
  "\"passing American football (not in game)\"",
986
- 0.0024913023225963116
987
  ],
988
  [
989
  "\"kicking field goal\"",
990
- 0.00248970789834857
991
  ],
992
  [
993
- "\"side kick\"",
994
- 0.002489360049366951
995
  ],
996
  [
997
- "\"high kick\"",
998
- 0.002489320933818817
999
  ]
1000
  ]
1001
  },
1002
  {
1003
- "filename": "segment_038.mov",
1004
  "play_state": "play_active",
1005
- "confidence": 0.022881739307194948,
1006
  "classifications": [
1007
- [
1008
- "\"passing American football (in game)\"",
1009
- 0.0062811062671244144
1010
- ],
1011
  [
1012
  "\"kicking field goal\"",
1013
- 0.0026691341772675514
1014
  ],
1015
  [
1016
  "\"passing American football (not in game)\"",
1017
- 0.002501868177205324
1018
  ],
1019
  [
1020
- "\"side kick\"",
1021
- 0.0024906292092055082
1022
  ],
1023
  [
1024
  "\"tossing coin\"",
1025
- 0.0024903123266994953
 
 
 
 
1026
  ]
1027
  ]
1028
  },
1029
  {
1030
- "filename": "segment_039.mov",
1031
  "play_state": "play_active",
1032
- "confidence": 0.014970289077609777,
1033
  "classifications": [
1034
- [
1035
- "\"passing American football (in game)\"",
1036
- 0.004427704028785229
1037
- ],
1038
  [
1039
  "\"kicking field goal\"",
1040
- 0.00305744051001966
1041
  ],
1042
  [
1043
  "\"passing American football (not in game)\"",
1044
- 0.0028497367165982723
1045
  ],
1046
  [
1047
- "\"shaking hands\"",
1048
- 0.0025244825519621372
1049
  ],
1050
  [
1051
- "\"tossing coin\"",
1052
- 0.0025086107198148966
 
 
 
 
1053
  ]
1054
  ]
1055
  },
1056
  {
1057
- "filename": "segment_040.mov",
1058
  "play_state": "play_active",
1059
- "confidence": 0.015308882109820843,
1060
  "classifications": [
1061
  [
1062
- "\"passing American football (in game)\"",
1063
- 0.00507122790440917
1064
  ],
1065
  [
1066
- "\"tossing coin\"",
1067
- 0.0028494407888501883
1068
  ],
1069
  [
1070
  "\"kicking field goal\"",
1071
- 0.0025832131505012512
1072
  ],
1073
  [
1074
- "\"shaking hands\"",
1075
- 0.0025662044063210487
1076
  ],
1077
  [
1078
- "\"passing American football (not in game)\"",
1079
- 0.0025347082410007715
1080
  ]
1081
  ]
1082
  },
1083
  {
1084
- "filename": "segment_041.mov",
1085
- "play_state": "play_active",
1086
- "confidence": 0.011110966093838215,
1087
  "classifications": [
1088
  [
1089
- "\"passing American football (in game)\"",
1090
- 0.002910151146352291
1091
  ],
1092
  [
1093
- "\"tossing coin\"",
1094
- 0.00288573419675231
1095
  ],
1096
  [
1097
- "bobsledding",
1098
- 0.0027363626286387444
1099
  ],
1100
  [
1101
- "\"changing wheel\"",
1102
- 0.0027150516398251057
1103
  ],
1104
  [
1105
- "\"kicking field goal\"",
1106
- 0.0026453319005668163
1107
  ]
1108
  ]
1109
  },
1110
  {
1111
- "filename": "segment_042.mov",
1112
- "play_state": "non_play",
1113
- "confidence": 0.0026662067975848913,
1114
  "classifications": [
1115
  [
1116
  "bobsledding",
1117
- 0.0029746112413704395
1118
  ],
1119
  [
1120
- "marching",
1121
- 0.0026662067975848913
1122
  ],
1123
  [
1124
- "\"riding mountain bike\"",
1125
- 0.0026005373802036047
1126
  ],
1127
  [
1128
- "archery",
1129
- 0.002575363963842392
1130
  ],
1131
  [
1132
- "\"passing American football (not in game)\"",
1133
- 0.0025738172698765993
1134
  ]
1135
  ]
1136
  },
1137
  {
1138
- "filename": "segment_043.mov",
1139
  "play_state": "unknown",
1140
  "confidence": 0.0,
1141
  "classifications": [
1142
  [
1143
- "bobsledding",
1144
- 0.0032584425061941147
1145
  ],
1146
  [
1147
- "\"changing wheel\"",
1148
- 0.002937484998255968
1149
  ],
1150
  [
1151
- "\"driving car\"",
1152
- 0.0028462321497499943
1153
  ],
1154
  [
1155
- "motorcycling",
1156
- 0.00263536861166358
1157
  ],
1158
  [
1159
- "skateboarding",
1160
- 0.002625212771818042
1161
  ]
1162
  ]
1163
  },
1164
  {
1165
- "filename": "segment_044.mov",
1166
- "play_state": "unknown",
1167
- "confidence": 0.0,
1168
  "classifications": [
1169
  [
1170
- "archery",
1171
- 0.0029061429668217897
1172
  ],
1173
  [
1174
- "bobsledding",
1175
- 0.002719373907893896
1176
  ],
1177
  [
1178
- "\"golf driving\"",
1179
- 0.0027050392236560583
1180
  ],
1181
  [
1182
- "barbequing",
1183
- 0.0025971110444515944
1184
  ],
1185
  [
1186
- "\"golf putting\"",
1187
- 0.0025699003599584103
1188
  ]
1189
  ]
1190
  },
1191
  {
1192
- "filename": "segment_045.mov",
1193
- "play_state": "unknown",
1194
- "confidence": 0.0,
1195
  "classifications": [
1196
  [
1197
- "barbequing",
1198
- 0.003022523829713464
1199
  ],
1200
  [
1201
- "\"changing wheel\"",
1202
- 0.002754890127107501
1203
  ],
1204
  [
1205
- "\"mowing lawn\"",
1206
- 0.0026360696647316217
1207
  ],
1208
  [
1209
- "auctioning",
1210
- 0.0026054272893816233
1211
  ],
1212
  [
1213
- "\"changing oil\"",
1214
- 0.0025794513057917356
1215
  ]
1216
  ]
1217
  },
1218
  {
1219
- "filename": "segment_046.mov",
1220
  "play_state": "play_active",
1221
- "confidence": 0.011618297547101974,
1222
  "classifications": [
1223
  [
1224
  "\"tossing coin\"",
1225
- 0.003568414831534028
1226
  ],
1227
  [
1228
- "\"side kick\"",
1229
- 0.003212416311725974
1230
  ],
1231
  [
1232
- "\"rock scissors paper\"",
1233
- 0.002615532139316201
1234
  ],
1235
  [
1236
- "\"punching person (boxing)\"",
1237
- 0.0026119472458958626
1238
  ],
1239
  [
1240
- "\"high kick\"",
1241
- 0.002596732461825013
1242
  ]
1243
  ]
1244
  },
1245
  {
1246
- "filename": "segment_047.mov",
1247
- "play_state": "play_active",
1248
- "confidence": 0.0062158494256436825,
1249
  "classifications": [
1250
  [
1251
- "\"passing American football (in game)\"",
1252
- 0.0031079247128218412
1253
  ],
1254
  [
1255
- "\"juggling soccer ball\"",
1256
- 0.0028041608165949583
1257
  ],
1258
  [
1259
- "\"passing American football (not in game)\"",
1260
- 0.002784370444715023
1261
  ],
1262
  [
1263
- "\"catching or throwing baseball\"",
1264
- 0.0027656129095703363
1265
  ],
1266
  [
1267
- "\"tossing coin\"",
1268
- 0.0027509713545441628
1269
  ]
1270
  ]
1271
  },
1272
  {
1273
- "filename": "segment_048.mov",
1274
- "play_state": "play_active",
1275
- "confidence": 0.011231131386011839,
1276
  "classifications": [
1277
  [
1278
- "\"tossing coin\"",
1279
- 0.004612566903233528
1280
  ],
1281
  [
1282
- "\"passing American football (in game)\"",
1283
- 0.0030128920916467905
1284
  ],
1285
  [
1286
- "\"side kick\"",
1287
- 0.002602673601359129
1288
  ],
1289
  [
1290
- "\"passing American football (not in game)\"",
1291
- 0.0025423497427254915
1292
  ],
1293
  [
1294
- "\"rock scissors paper\"",
1295
- 0.0025353787932544947
1296
  ]
1297
  ]
1298
  },
1299
  {
1300
- "filename": "segment_049.mov",
1301
  "play_state": "unknown",
1302
  "confidence": 0.0,
1303
  "classifications": [
1304
  [
1305
- "beatboxing",
1306
- 0.002776292385533452
1307
  ],
1308
  [
1309
  "\"pumping fist\"",
1310
- 0.0027726562693715096
1311
  ],
1312
  [
1313
- "\"shaking hands\"",
1314
- 0.0027530265506356955
1315
  ],
1316
  [
1317
- "\"playing poker\"",
1318
- 0.002649413887411356
1319
  ],
1320
  [
1321
- "\"arm wrestling\"",
1322
- 0.0026053758338093758
1323
  ]
1324
  ]
1325
  },
1326
  {
1327
- "filename": "segment_050.mov",
1328
  "play_state": "unknown",
1329
  "confidence": 0.0,
1330
  "classifications": [
1331
- [
1332
- "crying",
1333
- 0.0032352209091186523
1334
- ],
1335
  [
1336
  "beatboxing",
1337
- 0.002813587663695216
1338
  ],
1339
  [
1340
- "\"fixing hair\"",
1341
- 0.002721605822443962
1342
  ],
1343
  [
1344
  "\"pumping fist\"",
1345
- 0.002583273220807314
 
 
 
 
1346
  ],
1347
  [
1348
- "\"brushing hair\"",
1349
- 0.0025578502099961042
1350
  ]
1351
  ]
1352
  },
1353
  {
1354
- "filename": "segment_051.mov",
1355
  "play_state": "play_active",
1356
- "confidence": 0.025842799339443445,
1357
  "classifications": [
1358
  [
1359
- "\"passing American football (in game)\"",
1360
- 0.005108952056616545
1361
  ],
1362
  [
1363
  "\"passing American football (not in game)\"",
1364
- 0.002873431658372283
1365
  ],
1366
  [
1367
- "\"side kick\"",
1368
- 0.002661630278453231
1369
  ],
1370
  [
1371
- "\"kicking field goal\"",
1372
- 0.0026403891388326883
1373
  ],
1374
  [
1375
- "\"high kick\"",
1376
- 0.0025104281958192587
1377
  ]
1378
  ]
1379
  },
1380
  {
1381
- "filename": "segment_052.mov",
1382
  "play_state": "play_active",
1383
- "confidence": 0.027170647867023945,
1384
  "classifications": [
1385
- [
1386
- "\"passing American football (in game)\"",
1387
- 0.0058504920452833176
1388
- ],
1389
  [
1390
  "\"kicking field goal\"",
1391
- 0.0027115345001220703
1392
  ],
1393
  [
1394
  "\"passing American football (not in game)\"",
1395
- 0.0026032112073153257
1396
  ],
1397
  [
1398
- "\"side kick\"",
1399
- 0.0025289678014814854
1400
  ],
1401
  [
1402
- "\"high kick\"",
1403
- 0.002494329586625099
 
 
 
 
1404
  ]
1405
  ]
1406
  },
1407
  {
1408
- "filename": "segment_053.mov",
1409
  "play_state": "play_active",
1410
- "confidence": 0.028335395734757185,
1411
  "classifications": [
1412
  [
1413
  "\"passing American football (in game)\"",
1414
- 0.006694582756608725
1415
  ],
1416
  [
1417
  "\"passing American football (not in game)\"",
1418
- 0.0025113301817327738
1419
  ],
1420
  [
1421
- "\"side kick\"",
1422
- 0.0024927803315222263
1423
  ],
1424
  [
1425
- "\"kicking field goal\"",
1426
- 0.0024906357284635305
1427
  ],
1428
  [
1429
- "\"high kick\"",
1430
- 0.002489699050784111
1431
  ]
1432
  ]
1433
  },
1434
  {
1435
- "filename": "segment_054.mov",
1436
  "play_state": "play_active",
1437
- "confidence": 0.023368800524622202,
1438
  "classifications": [
1439
  [
1440
- "\"passing American football (in game)\"",
1441
- 0.006701494567096233
1442
  ],
1443
  [
1444
- "\"passing American football (not in game)\"",
1445
- 0.0025095203891396523
1446
  ],
1447
  [
1448
  "\"kicking field goal\"",
1449
- 0.0024933733511716127
1450
  ],
1451
  [
1452
- "\"side kick\"",
1453
- 0.002489532344043255
1454
  ],
1455
  [
1456
- "headbutting",
1457
- 0.002489422680810094
1458
  ]
1459
  ]
1460
  },
1461
  {
1462
- "filename": "segment_055.mov",
1463
- "play_state": "play_active",
1464
- "confidence": 0.016918597742915154,
1465
  "classifications": [
1466
  [
1467
- "\"passing American football (in game)\"",
1468
- 0.005614574532955885
1469
  ],
1470
  [
1471
- "\"kicking field goal\"",
1472
- 0.002844724338501692
1473
  ],
1474
  [
1475
- "\"tossing coin\"",
1476
- 0.0025539705529809
1477
  ],
1478
  [
1479
- "\"passing American football (not in game)\"",
1480
- 0.0025522371288388968
1481
  ],
1482
  [
1483
- "headbutting",
1484
- 0.0024937023408710957
1485
  ]
1486
  ]
1487
  },
1488
  {
1489
- "filename": "segment_056.mov",
1490
- "play_state": "play_active",
1491
- "confidence": 0.005358790513128042,
1492
  "classifications": [
1493
  [
1494
  "headbutting",
1495
- 0.003259368008002639
1496
  ],
1497
  [
1498
- "\"pumping fist\"",
1499
- 0.0029684980399906635
1500
  ],
1501
  [
1502
- "\"playing ice hockey\"",
1503
- 0.0029396419413387775
1504
  ],
1505
  [
1506
- "\"shaking hands\"",
1507
- 0.002817715285345912
1508
  ],
1509
  [
1510
- "\"passing American football (in game)\"",
1511
- 0.002679395256564021
1512
  ]
1513
  ]
1514
  },
1515
  {
1516
- "filename": "segment_057.mov",
1517
  "play_state": "unknown",
1518
  "confidence": 0.0,
1519
  "classifications": [
1520
  [
1521
  "bobsledding",
1522
- 0.004842189606279135
1523
  ],
1524
  [
1525
- "\"pumping fist\"",
1526
- 0.002615878591313958
1527
  ],
1528
  [
1529
- "\"driving car\"",
1530
- 0.002567970659583807
1531
  ],
1532
  [
1533
  "\"playing poker\"",
1534
- 0.0025621275417506695
1535
  ],
1536
  [
1537
- "\"playing ice hockey\"",
1538
- 0.002544831018894911
1539
  ]
1540
  ]
1541
  },
1542
  {
1543
- "filename": "segment_058.mov",
1544
  "play_state": "unknown",
1545
  "confidence": 0.0,
1546
  "classifications": [
1547
  [
1548
- "motorcycling",
1549
- 0.002834487706422806
1550
  ],
1551
  [
1552
- "\"driving car\"",
1553
- 0.002728639403358102
1554
  ],
1555
  [
1556
- "\"changing wheel\"",
1557
- 0.0027119864244014025
1558
  ],
1559
  [
1560
- "bobsledding",
1561
- 0.002644300926476717
1562
  ],
1563
  [
1564
- "kissing",
1565
- 0.002592987846583128
1566
  ]
1567
  ]
1568
  },
1569
  {
1570
- "filename": "segment_059.mov",
1571
- "play_state": "unknown",
1572
- "confidence": 0.0,
1573
  "classifications": [
1574
  [
1575
  "bobsledding",
1576
- 0.004265598952770233
1577
  ],
1578
  [
1579
  "\"playing ice hockey\"",
1580
- 0.0030175303108990192
1581
  ],
1582
  [
1583
  "\"playing paintball\"",
1584
- 0.002638093428686261
1585
  ],
1586
  [
1587
- "motorcycling",
1588
- 0.0025540166534483433
1589
  ],
1590
  [
1591
- "\"riding mountain bike\"",
1592
- 0.002545550698414445
1593
  ]
1594
  ]
1595
  },
1596
  {
1597
- "filename": "segment_060.mov",
1598
  "play_state": "play_active",
1599
- "confidence": 0.02252253331243992,
1600
  "classifications": [
1601
  [
1602
- "\"passing American football (in game)\"",
1603
- 0.005962858442217112
1604
  ],
1605
  [
1606
- "\"kicking field goal\"",
1607
- 0.002803174778819084
1608
  ],
1609
  [
1610
- "\"passing American football (not in game)\"",
1611
- 0.0025008893571794033
1612
  ],
1613
  [
1614
- "\"side kick\"",
1615
- 0.0024952334351837635
1616
  ],
1617
  [
1618
- "headbutting",
1619
- 0.002492264611646533
1620
  ]
1621
  ]
1622
  },
1623
  {
1624
- "filename": "segment_061.mov",
1625
  "play_state": "play_active",
1626
- "confidence": 0.02844324568286538,
1627
  "classifications": [
1628
  [
1629
  "\"passing American football (in game)\"",
1630
- 0.006750195287168026
1631
  ],
1632
  [
1633
- "\"kicking field goal\"",
1634
- 0.0024920343421399593
1635
  ],
1636
  [
1637
- "\"passing American football (not in game)\"",
1638
- 0.002491830848157406
1639
  ],
1640
  [
1641
  "\"side kick\"",
1642
- 0.0024899402633309364
1643
  ],
1644
  [
1645
- "\"high kick\"",
1646
- 0.002489452948793769
1647
  ]
1648
  ]
1649
  },
1650
  {
1651
- "filename": "segment_062.mov",
1652
  "play_state": "play_active",
1653
- "confidence": 0.017440007533878088,
1654
  "classifications": [
1655
  [
1656
- "\"passing American football (in game)\"",
1657
- 0.006219817325472832
1658
  ],
1659
  [
1660
- "\"passing American football (not in game)\"",
1661
- 0.002605071058496833
1662
  ],
1663
  [
1664
- "headbutting",
1665
- 0.0025401373859494925
1666
  ],
1667
  [
1668
- "\"kicking field goal\"",
1669
- 0.0025001864414662123
1670
  ],
1671
  [
1672
- "\"pumping fist\"",
1673
- 0.002497575245797634
1674
  ]
1675
  ]
1676
  },
1677
  {
1678
- "filename": "segment_063.mov",
1679
  "play_state": "play_active",
1680
- "confidence": 0.011441640090197325,
1681
  "classifications": [
1682
  [
1683
- "marching",
1684
- 0.003558160038664937
1685
  ],
1686
  [
1687
  "\"passing American football (in game)\"",
1688
- 0.0030603946652263403
1689
  ],
1690
  [
1691
- "\"tango dancing\"",
1692
- 0.00266551086679101
1693
  ],
1694
  [
1695
- "\"side kick\"",
1696
- 0.002660425379872322
1697
  ],
1698
  [
1699
- "\"passing American football (not in game)\"",
1700
- 0.002627450041472912
1701
  ]
1702
  ]
1703
  },
1704
  {
1705
- "filename": "segment_064.mov",
1706
  "play_state": "play_active",
1707
- "confidence": 0.016178474761545658,
1708
  "classifications": [
1709
  [
1710
- "\"passing American football (in game)\"",
1711
- 0.00557365408167243
1712
  ],
1713
  [
1714
- "\"passing American football (not in game)\"",
1715
- 0.0027207054663449526
1716
  ],
1717
  [
1718
- "headbutting",
1719
- 0.0026054433546960354
1720
  ],
1721
  [
1722
- "\"pumping fist\"",
1723
- 0.00251823291182518
1724
  ],
1725
  [
1726
- "\"kicking field goal\"",
1727
- 0.002515583299100399
1728
  ]
1729
  ]
1730
  },
1731
  {
1732
- "filename": "segment_065.mov",
1733
  "play_state": "play_active",
1734
- "confidence": 0.016939261462539434,
1735
  "classifications": [
1736
  [
1737
- "\"side kick\"",
1738
- 0.005902828648686409
1739
  ],
1740
  [
1741
- "\"high kick\"",
1742
- 0.0025668020825833082
1743
  ],
1744
  [
1745
- "wrestling",
1746
- 0.0025415299460291862
1747
  ],
1748
  [
1749
- "squat",
1750
- 0.0025292884092777967
1751
  ],
1752
  [
1753
- "\"drop kicking\"",
1754
- 0.00251045823097229
1755
  ]
1756
  ]
1757
  },
1758
  {
1759
- "filename": "segment_066.mov",
1760
  "play_state": "unknown",
1761
  "confidence": 0.0,
1762
  "classifications": [
1763
  [
1764
  "bobsledding",
1765
- 0.003806664375588298
1766
  ],
1767
  [
1768
- "\"changing wheel\"",
1769
- 0.0029659303836524487
1770
  ],
1771
  [
1772
- "\"punching bag\"",
1773
- 0.0027637933380901814
1774
  ],
1775
  [
1776
- "headbutting",
1777
- 0.00258650747127831
1778
  ],
1779
  [
1780
- "motorcycling",
1781
- 0.002585215028375387
1782
  ]
1783
  ]
1784
  },
1785
  {
1786
- "filename": "segment_067.mov",
1787
  "play_state": "unknown",
1788
  "confidence": 0.0,
1789
  "classifications": [
1790
  [
1791
- "\"changing wheel\"",
1792
- 0.0038947509601712227
1793
  ],
1794
  [
1795
  "\"pushing car\"",
1796
- 0.002689485903829336
1797
  ],
1798
  [
1799
- "\"driving car\"",
1800
- 0.00266862940043211
1801
  ],
1802
  [
1803
- "\"changing oil\"",
1804
- 0.0026266295462846756
1805
  ],
1806
  [
1807
  "\"arm wrestling\"",
1808
- 0.0025696069933474064
1809
  ]
1810
  ]
1811
  },
1812
  {
1813
- "filename": "segment_068.mov",
1814
- "play_state": "play_active",
1815
- "confidence": 0.01660818513482809,
1816
  "classifications": [
1817
  [
1818
- "\"passing American football (not in game)\"",
1819
- 0.0030197601299732924
1820
  ],
1821
  [
1822
- "\"passing American football (in game)\"",
1823
- 0.0029855112079530954
1824
  ],
1825
  [
1826
- "\"kicking field goal\"",
1827
- 0.0027115403208881617
1828
  ],
1829
  [
1830
- "\"catching or throwing baseball\"",
1831
- 0.0026096913497895002
1832
  ],
1833
  [
1834
- "\"high kick\"",
1835
- 0.0026070410385727882
1836
  ]
1837
  ]
1838
  },
1839
  {
1840
- "filename": "segment_069.mov",
1841
- "play_state": "play_active",
1842
- "confidence": 0.026435311883687973,
1843
  "classifications": [
1844
  [
1845
- "\"passing American football (in game)\"",
1846
- 0.005361294839531183
1847
  ],
1848
  [
1849
- "\"kicking field goal\"",
1850
- 0.002796306274831295
1851
  ],
1852
  [
1853
- "\"passing American football (not in game)\"",
1854
- 0.0027009581681340933
1855
  ],
1856
  [
1857
- "\"side kick\"",
1858
- 0.002553092548623681
1859
  ],
1860
  [
1861
- "\"high kick\"",
1862
- 0.002506962278857827
1863
  ]
1864
  ]
1865
  },
1866
  {
1867
- "filename": "segment_070.mov",
1868
- "play_state": "play_active",
1869
- "confidence": 0.021383000537753105,
1870
  "classifications": [
1871
  [
1872
- "\"passing American football (in game)\"",
1873
- 0.005472357384860516
1874
- ],
1875
- [
1876
- "\"passing American football (not in game)\"",
1877
- 0.002799208741635084
1878
  ],
1879
  [
1880
  "\"kicking field goal\"",
1881
- 0.0027042534202337265
1882
  ],
1883
  [
1884
- "\"side kick\"",
1885
- 0.0025148894637823105
1886
  ],
1887
  [
1888
  "\"catching or throwing baseball\"",
1889
- 0.002496932167559862
 
 
 
 
1890
  ]
1891
  ]
1892
  },
1893
  {
1894
- "filename": "segment_071.mov",
1895
- "play_state": "play_active",
1896
- "confidence": 0.020379168447107077,
1897
  "classifications": [
1898
  [
1899
- "\"side kick\"",
1900
- 0.003893344197422266
1901
  ],
1902
  [
1903
- "\"passing American football (in game)\"",
1904
- 0.0035547567531466484
1905
  ],
1906
  [
1907
- "\"kicking field goal\"",
1908
- 0.002741483272984624
1909
  ],
1910
  [
1911
- "\"passing American football (not in game)\"",
1912
- 0.0026810814160853624
1913
  ],
1914
  [
1915
- "\"catching or throwing baseball\"",
1916
- 0.0025338695850223303
1917
  ]
1918
  ]
1919
  },
1920
  {
1921
- "filename": "segment_072.mov",
1922
- "play_state": "play_active",
1923
- "confidence": 0.021664625965058804,
1924
  "classifications": [
1925
  [
1926
- "\"passing American football (in game)\"",
1927
- 0.005563896149396896
1928
  ],
1929
  [
1930
- "\"passing American football (not in game)\"",
1931
- 0.0027015593368560076
1932
  ],
1933
  [
1934
- "\"side kick\"",
1935
- 0.002657951321452856
1936
  ],
1937
  [
1938
- "\"kicking field goal\"",
1939
- 0.0026104655116796494
1940
  ],
1941
  [
1942
- "\"catching or throwing baseball\"",
1943
- 0.0024953498505055904
1944
  ]
1945
  ]
1946
  },
1947
  {
1948
- "filename": "segment_073.mov",
1949
- "play_state": "play_active",
1950
- "confidence": 0.027981781866401434,
1951
  "classifications": [
1952
  [
1953
- "\"passing American football (in game)\"",
1954
- 0.006470989435911179
1955
  ],
1956
  [
1957
- "\"passing American football (not in game)\"",
1958
- 0.0025515288580209017
1959
  ],
1960
  [
1961
- "\"side kick\"",
1962
- 0.0025365715846419334
1963
  ],
1964
  [
1965
- "\"kicking field goal\"",
1966
- 0.002492384286597371
1967
  ],
1968
  [
1969
- "\"high kick\"",
1970
- 0.002490945626050234
1971
  ]
1972
  ]
1973
  },
1974
  {
1975
- "filename": "segment_074.mov",
1976
- "play_state": "play_active",
1977
- "confidence": 0.01849909545853734,
1978
  "classifications": [
1979
  [
1980
- "\"passing American football (in game)\"",
1981
- 0.004092047456651926
1982
  ],
1983
  [
1984
- "\"passing American football (not in game)\"",
1985
- 0.0037548826076090336
1986
  ],
1987
  [
1988
- "\"side kick\"",
1989
- 0.0026034193579107523
1990
  ],
1991
  [
1992
- "\"kicking field goal\"",
1993
- 0.0025540809147059917
1994
  ],
1995
  [
1996
- "\"catching or throwing baseball\"",
1997
- 0.0025116554461419582
1998
  ]
1999
  ]
2000
  },
2001
  {
2002
- "filename": "segment_075.mov",
2003
- "play_state": "play_active",
2004
- "confidence": 0.01760141272097826,
2005
  "classifications": [
2006
  [
2007
- "\"passing American football (in game)\"",
2008
- 0.006258341949433088
2009
  ],
2010
  [
2011
  "\"passing American football (not in game)\"",
2012
- 0.002621858147904277
2013
  ],
2014
  [
2015
  "\"kicking field goal\"",
2016
- 0.0025423644110560417
2017
  ],
2018
  [
2019
- "\"catching or throwing baseball\"",
2020
- 0.0024970977101475
2021
  ],
2022
  [
2023
- "\"pumping fist\"",
2024
- 0.0024926913902163506
2025
  ]
2026
  ]
2027
  },
2028
  {
2029
- "filename": "segment_076.mov",
2030
- "play_state": "play_active",
2031
- "confidence": 0.010840331669896841,
2032
  "classifications": [
2033
  [
2034
  "\"hurling (sport)\"",
2035
- 0.003916610963642597
2036
  ],
2037
  [
2038
  "headbutting",
2039
- 0.0029018200002610683
2040
  ],
2041
  [
2042
- "\"passing American football (in game)\"",
2043
- 0.0027735705953091383
2044
  ],
2045
  [
2046
- "\"passing American football (not in game)\"",
2047
- 0.00273358216509223
2048
  ],
2049
  [
2050
- "\"kicking field goal\"",
2051
- 0.0026465952396392822
2052
  ]
2053
  ]
2054
  },
@@ -2063,149 +2063,125 @@
2063
  {
2064
  "type": "play_end",
2065
  "clip_index": 2,
2066
- "clip_name": "segment_003.mov",
2067
- "confidence": 0.002635735785588622
2068
- },
2069
- {
2070
- "type": "play_start",
2071
- "clip_index": 4,
2072
- "clip_name": "segment_005.mov",
2073
- "confidence": 0.003370030550286174
2074
- },
2075
- {
2076
- "type": "play_end",
2077
- "clip_index": 4,
2078
- "clip_name": "segment_005.mov",
2079
- "confidence": 0.003370030550286174
2080
  },
2081
  {
2082
  "type": "play_start",
2083
  "clip_index": 8,
2084
- "clip_name": "segment_009.mov",
2085
- "confidence": 0.02098492393270135
2086
  },
2087
  {
2088
  "type": "play_end",
2089
  "clip_index": 10,
2090
- "clip_name": "segment_011.mov",
2091
- "confidence": 0.01098605478182435
2092
  },
2093
  {
2094
  "type": "play_start",
2095
  "clip_index": 12,
2096
- "clip_name": "segment_013.mov",
2097
- "confidence": 0.005543170962482691
2098
- },
2099
- {
2100
- "type": "play_end",
2101
- "clip_index": 12,
2102
- "clip_name": "segment_013.mov",
2103
- "confidence": 0.005543170962482691
2104
- },
2105
- {
2106
- "type": "play_start",
2107
- "clip_index": 14,
2108
- "clip_name": "segment_015.mov",
2109
- "confidence": 0.020375477615743876
2110
  },
2111
  {
2112
  "type": "play_end",
2113
- "clip_index": 21,
2114
- "clip_name": "segment_022.mov",
2115
- "confidence": 0.005674467422068119
2116
  },
2117
  {
2118
  "type": "play_start",
2119
- "clip_index": 25,
2120
- "clip_name": "segment_026.mov",
2121
- "confidence": 0.010059342719614506
2122
  },
2123
  {
2124
  "type": "play_end",
2125
  "clip_index": 26,
2126
- "clip_name": "segment_027.mov",
2127
- "confidence": 0.005376111716032028
2128
  },
2129
  {
2130
  "type": "play_start",
2131
  "clip_index": 30,
2132
- "clip_name": "segment_031.mov",
2133
- "confidence": 0.0028556634206324816
2134
  },
2135
  {
2136
  "type": "play_end",
2137
- "clip_index": 31,
2138
- "clip_name": "segment_032.mov",
2139
- "confidence": 0.011570594273507595
2140
  },
2141
  {
2142
  "type": "play_start",
2143
  "clip_index": 35,
2144
- "clip_name": "segment_036.mov",
2145
- "confidence": 0.028179258573800325
2146
  },
2147
  {
2148
  "type": "play_end",
2149
- "clip_index": 40,
2150
- "clip_name": "segment_041.mov",
2151
- "confidence": 0.011110966093838215
2152
  },
2153
  {
2154
  "type": "play_start",
2155
- "clip_index": 45,
2156
- "clip_name": "segment_046.mov",
2157
- "confidence": 0.011618297547101974
2158
  },
2159
  {
2160
  "type": "play_end",
2161
- "clip_index": 47,
2162
- "clip_name": "segment_048.mov",
2163
- "confidence": 0.011231131386011839
2164
  },
2165
  {
2166
  "type": "play_start",
2167
  "clip_index": 50,
2168
- "clip_name": "segment_051.mov",
2169
- "confidence": 0.025842799339443445
2170
  },
2171
  {
2172
  "type": "play_end",
2173
- "clip_index": 55,
2174
- "clip_name": "segment_056.mov",
2175
- "confidence": 0.005358790513128042
2176
  },
2177
  {
2178
  "type": "play_start",
2179
- "clip_index": 59,
2180
- "clip_name": "segment_060.mov",
2181
- "confidence": 0.02252253331243992
2182
  },
2183
  {
2184
  "type": "play_end",
2185
  "clip_index": 64,
2186
- "clip_name": "segment_065.mov",
2187
- "confidence": 0.016939261462539434
2188
  },
2189
  {
2190
  "type": "play_start",
2191
  "clip_index": 67,
2192
- "clip_name": "segment_068.mov",
2193
- "confidence": 0.01660818513482809
2194
  },
2195
  {
2196
  "type": "play_end",
2197
  "clip_index": 75,
2198
- "clip_name": "segment_076.mov",
2199
- "confidence": 0.010840331669896841
2200
  }
2201
  ],
2202
  "summary": {
2203
  "total_clips": 77,
2204
- "play_active_clips": 45,
2205
- "play_action_clips": 5,
2206
- "non_play_clips": 3,
2207
- "unknown_clips": 24,
2208
- "detected_play_starts": 11,
2209
- "detected_play_ends": 12
2210
  }
2211
  }
 
1
  {
2
  "clips": [
3
  {
4
+ "filename": "segment_001_yolo.mov",
5
  "play_state": "play_action",
6
+ "confidence": 0.009108579251915216,
7
  "classifications": [
8
  [
9
  "\"catching or throwing baseball\"",
10
+ 0.003380856942385435
11
  ],
12
  [
13
  "\"playing cricket\"",
14
+ 0.003095965599641204
15
  ],
16
  [
17
+ "\"playing ice hockey\"",
18
+ 0.0027383891865611076
19
  ],
20
  [
21
+ "\"ice skating\"",
22
+ 0.0026859112549573183
23
  ],
24
  [
25
+ "\"catching or throwing softball\"",
26
+ 0.0026317567098885775
27
  ]
28
  ]
29
  },
30
  {
31
+ "filename": "segment_002_yolo.mov",
32
  "play_state": "play_action",
33
+ "confidence": 0.0025854785926640034,
34
  "classifications": [
35
  [
36
  "\"mowing lawn\"",
37
+ 0.003576691960915923
38
  ],
39
  [
40
+ "\"golf driving\"",
41
+ 0.002836523810401559
42
  ],
43
  [
44
+ "archery",
45
+ 0.0026338244788348675
46
  ],
47
  [
48
+ "\"driving tractor\"",
49
+ 0.002595097990706563
50
  ],
51
  [
52
+ "\"catching or throwing baseball\"",
53
+ 0.0025854785926640034
54
  ]
55
  ]
56
  },
57
  {
58
+ "filename": "segment_003_yolo.mov",
59
  "play_state": "play_action",
60
+ "confidence": 0.0027307451236993074,
61
  "classifications": [
62
  [
63
  "\"hurling (sport)\"",
64
+ 0.0039045403245836496
65
  ],
66
  [
67
  "headbutting",
68
+ 0.002825796138495207
69
  ],
70
  [
71
+ "\"playing cricket\"",
72
+ 0.0027307451236993074
73
  ],
74
  [
75
+ "\"passing American football (not in game)\"",
76
+ 0.0026762450579553843
77
  ],
78
  [
79
+ "applauding",
80
+ 0.0026124196592718363
81
  ]
82
  ]
83
  },
84
  {
85
+ "filename": "segment_004_yolo.mov",
86
  "play_state": "non_play",
87
+ "confidence": 0.0026764876674860716,
88
  "classifications": [
89
  [
90
+ "headbutting",
91
+ 0.004119096323847771
92
  ],
93
  [
94
+ "\"hurling (sport)\"",
95
+ 0.0029537260998040438
96
  ],
97
  [
98
+ "applauding",
99
+ 0.0026764876674860716
100
  ],
101
  [
102
+ "\"passing American football (not in game)\"",
103
+ 0.002594469813629985
104
  ],
105
  [
106
+ "\"playing ice hockey\"",
107
+ 0.0025658044032752514
108
  ]
109
  ]
110
  },
111
  {
112
+ "filename": "segment_005_yolo.mov",
113
+ "play_state": "unknown",
114
+ "confidence": 0.0,
115
  "classifications": [
116
  [
117
+ "\"javelin throw\"",
118
+ 0.0033433844801038504
119
  ],
120
  [
121
+ "\"eating hotdog\"",
122
+ 0.00290647498331964
123
  ],
124
  [
125
+ "\"throwing discus\"",
126
+ 0.0027681186329573393
127
  ],
128
  [
129
+ "\"catching or throwing frisbee\"",
130
+ 0.002742217620834708
131
  ],
132
  [
133
+ "\"shot put\"",
134
+ 0.00260338606312871
135
  ]
136
  ]
137
  },
138
  {
139
+ "filename": "segment_006_yolo.mov",
140
  "play_state": "unknown",
141
  "confidence": 0.0,
142
  "classifications": [
143
  [
144
+ "\"spray painting\"",
145
+ 0.002744637429714203
146
  ],
147
  [
148
+ "\"checking tires\"",
149
+ 0.002715102629736066
150
  ],
151
  [
152
+ "\"bench pressing\"",
153
+ 0.002695797011256218
154
  ],
155
  [
156
+ "\"making pizza\"",
157
+ 0.002596484264358878
158
  ],
159
  [
160
+ "barbequing",
161
+ 0.0025805369950830936
162
  ]
163
  ]
164
  },
165
  {
166
+ "filename": "segment_007_yolo.mov",
167
  "play_state": "unknown",
168
  "confidence": 0.0,
169
  "classifications": [
170
  [
171
+ "\"pushing wheelchair\"",
172
+ 0.0030422406271100044
173
  ],
174
  [
175
+ "\"mowing lawn\"",
176
+ 0.0028666346333920956
177
  ],
178
  [
179
  "motorcycling",
180
+ 0.0027028322219848633
181
  ],
182
  [
183
+ "\"changing oil\"",
184
+ 0.0026753153651952744
185
  ],
186
  [
187
+ "\"riding mountain bike\"",
188
+ 0.0026005778927356005
189
  ]
190
  ]
191
  },
192
  {
193
+ "filename": "segment_008_yolo.mov",
194
  "play_state": "unknown",
195
  "confidence": 0.0,
196
  "classifications": [
197
  [
198
+ "\"pushing wheelchair\"",
199
+ 0.0028705329168587923
200
  ],
201
  [
202
+ "bobsledding",
203
+ 0.002846728079020977
204
  ],
205
  [
206
+ "headbutting",
207
+ 0.0026647611521184444
208
  ],
209
  [
210
+ "\"driving car\"",
211
+ 0.0026486360002309084
212
  ],
213
  [
214
+ "motorcycling",
215
+ 0.002630403032526374
216
  ]
217
  ]
218
  },
219
  {
220
+ "filename": "segment_009_yolo.mov",
221
  "play_state": "play_active",
222
+ "confidence": 0.010849987156689167,
223
  "classifications": [
224
  [
225
+ "bobsledding",
226
+ 0.002958092140033841
227
  ],
228
  [
229
+ "\"high kick\"",
230
+ 0.002759539056569338
231
  ],
232
  [
233
+ "\"milking cow\"",
234
+ 0.0027191024273633957
235
  ],
236
  [
237
+ "\"kicking field goal\"",
238
+ 0.0026654545217752457
239
  ],
240
  [
241
  "headbutting",
242
+ 0.002656013937667012
243
  ]
244
  ]
245
  },
246
  {
247
+ "filename": "segment_010_yolo.mov",
248
  "play_state": "play_active",
249
+ "confidence": 0.010626845993101597,
250
  "classifications": [
251
  [
252
+ "headbutting",
253
+ 0.0029409260023385286
254
  ],
255
  [
256
+ "\"shaking hands\"",
257
+ 0.0026740378234535456
258
  ],
259
  [
260
+ "\"high kick\"",
261
+ 0.0026704464107751846
262
  ],
263
  [
264
+ "\"kicking field goal\"",
265
+ 0.002642976585775614
266
  ],
267
  [
268
+ "celebrating",
269
+ 0.002638082252815366
270
  ]
271
  ]
272
  },
273
  {
274
+ "filename": "segment_011_yolo.mov",
275
  "play_state": "play_active",
276
+ "confidence": 0.008274616673588753,
277
  "classifications": [
278
  [
279
+ "\"kicking field goal\"",
280
+ 0.004137308336794376
281
  ],
282
  [
283
+ "applauding",
284
+ 0.0026362661737948656
285
  ],
286
  [
287
+ "\"playing volleyball\"",
288
+ 0.0026246444322168827
289
  ],
290
  [
291
+ "\"passing American football (not in game)\"",
292
+ 0.002608613111078739
293
  ],
294
  [
295
+ "headbutting",
296
+ 0.0025905300863087177
297
  ]
298
  ]
299
  },
300
  {
301
+ "filename": "segment_012_yolo.mov",
302
  "play_state": "non_play",
303
+ "confidence": 0.002713675843551755,
304
  "classifications": [
 
 
 
 
305
  [
306
  "\"dancing macarena\"",
307
+ 0.003159651532769203
308
  ],
309
  [
310
+ "cheerleading",
311
+ 0.0030827471055090427
312
  ],
313
  [
314
  "\"hitting baseball\"",
315
+ 0.00298778316937387
316
+ ],
317
+ [
318
+ "applauding",
319
+ 0.002713675843551755
320
  ],
321
  [
322
  "\"garbage collecting\"",
323
+ 0.0025780571158975363
324
  ]
325
  ]
326
  },
327
  {
328
+ "filename": "segment_013_yolo.mov",
329
  "play_state": "play_active",
330
+ "confidence": 0.005786340218037367,
331
  "classifications": [
332
+ [
333
+ "applauding",
334
+ 0.0031382013112306595
335
+ ],
336
  [
337
  "\"pumping fist\"",
338
+ 0.0029212948866188526
339
  ],
340
  [
341
  "\"kicking field goal\"",
342
+ 0.0028931701090186834
343
  ],
344
  [
345
  "\"dunking basketball\"",
346
+ 0.002754194661974907
 
 
 
 
347
  ],
348
  [
349
  "celebrating",
350
+ 0.0026313187554478645
351
  ]
352
  ]
353
  },
354
  {
355
+ "filename": "segment_014_yolo.mov",
356
+ "play_state": "play_active",
357
+ "confidence": 0.005094448570162058,
358
  "classifications": [
359
  [
360
  "headbutting",
361
+ 0.003813667455688119
362
  ],
363
  [
364
+ "\"punching person (boxing)\"",
365
+ 0.003006032668054104
366
  ],
367
  [
368
+ "\"punching bag\"",
369
+ 0.0028552233707159758
370
  ],
371
  [
372
+ "\"pumping fist\"",
373
+ 0.002737470669671893
374
  ],
375
  [
376
+ "\"high kick\"",
377
+ 0.002547224285081029
378
  ]
379
  ]
380
  },
381
  {
382
+ "filename": "segment_015_yolo.mov",
383
  "play_state": "play_active",
384
+ "confidence": 0.013546076137572527,
385
  "classifications": [
386
  [
387
+ "\"kicking field goal\"",
388
+ 0.0041602421551942825
389
  ],
390
  [
391
+ "\"passing American football (not in game)\"",
392
+ 0.0028576047625392675
393
  ],
394
  [
395
+ "\"juggling soccer ball\"",
396
+ 0.002675252500921488
397
  ],
398
  [
399
+ "\"catching or throwing baseball\"",
400
+ 0.0026170925702899694
401
  ],
402
  [
403
+ "\"passing American football (in game)\"",
404
+ 0.002612795913591981
405
  ]
406
  ]
407
  },
408
  {
409
+ "filename": "segment_016_yolo.mov",
410
  "play_state": "play_active",
411
+ "confidence": 0.01208669226616621,
412
  "classifications": [
413
  [
414
+ "\"passing American football (not in game)\"",
415
+ 0.003784941276535392
416
  ],
417
  [
418
+ "\"kicking field goal\"",
419
+ 0.003416945692151785
420
  ],
421
  [
422
+ "\"passing American football (in game)\"",
423
+ 0.00262640044093132
424
  ],
425
  [
426
+ "\"catching or throwing baseball\"",
427
+ 0.002601443789899349
428
  ],
429
  [
430
+ "\"juggling soccer ball\"",
431
+ 0.0025872692931443453
432
  ]
433
  ]
434
  },
435
  {
436
+ "filename": "segment_017_yolo.mov",
437
  "play_state": "play_active",
438
+ "confidence": 0.012740084901452065,
439
  "classifications": [
 
 
 
 
440
  [
441
  "\"kicking field goal\"",
442
+ 0.0037378345150500536
443
  ],
444
  [
445
  "\"passing American football (not in game)\"",
446
+ 0.003414766862988472
447
  ],
448
  [
449
  "\"side kick\"",
450
+ 0.0026322079356759787
451
  ],
452
  [
453
+ "\"juggling soccer ball\"",
454
+ 0.002602929715067148
455
+ ],
456
+ [
457
+ "\"golf driving\"",
458
+ 0.0025708479806780815
459
  ]
460
  ]
461
  },
462
  {
463
+ "filename": "segment_018_yolo.mov",
464
  "play_state": "play_active",
465
+ "confidence": 0.016729621216654778,
466
  "classifications": [
467
  [
468
+ "\"passing American football (not in game)\"",
469
+ 0.0037206721026450396
470
  ],
471
  [
472
+ "\"kicking field goal\"",
473
+ 0.002938193967565894
474
  ],
475
  [
476
+ "\"passing American football (in game)\"",
477
+ 0.002730895997956395
478
  ],
479
  [
480
+ "\"side kick\"",
481
+ 0.0026957206428050995
482
  ],
483
  [
484
+ "\"drop kicking\"",
485
+ 0.0025700011756271124
486
  ]
487
  ]
488
  },
489
  {
490
+ "filename": "segment_019_yolo.mov",
491
  "play_state": "play_active",
492
+ "confidence": 0.019121667835861444,
493
  "classifications": [
494
+ [
495
+ "\"kicking field goal\"",
496
+ 0.004053364507853985
497
+ ],
498
  [
499
  "\"passing American football (in game)\"",
500
+ 0.002966024214401841
501
  ],
502
  [
503
  "\"passing American football (not in game)\"",
504
+ 0.0029187898617237806
505
  ],
506
  [
507
+ "\"catching or throwing softball\"",
508
+ 0.002588861621916294
509
  ],
510
  [
511
  "\"side kick\"",
512
+ 0.0025414451956748962
 
 
 
 
513
  ]
514
  ]
515
  },
516
  {
517
+ "filename": "segment_020_yolo.mov",
518
  "play_state": "play_active",
519
+ "confidence": 0.017321025021374226,
520
  "classifications": [
521
  [
522
  "\"passing American football (in game)\"",
523
+ 0.0060860407538712025
524
  ],
525
  [
526
  "\"passing American football (not in game)\"",
527
+ 0.002620777813717723
528
  ],
529
  [
530
  "\"kicking field goal\"",
531
+ 0.0025744717568159103
532
  ],
533
  [
534
  "headbutting",
535
+ 0.0025153872556984425
536
  ],
537
  [
538
+ "celebrating",
539
+ 0.002494904212653637
540
  ]
541
  ]
542
  },
543
  {
544
+ "filename": "segment_021_yolo.mov",
545
+ "play_state": "non_play",
546
+ "confidence": 0.0025599778164178133,
547
  "classifications": [
548
  [
549
+ "situp",
550
+ 0.003232956863939762
551
  ],
552
  [
553
+ "\"shaking hands\"",
554
+ 0.0026444634422659874
555
  ],
556
  [
557
+ "headbutting",
558
+ 0.0026111530605703592
559
  ],
560
  [
561
+ "squat",
562
+ 0.0025693371426314116
563
  ],
564
  [
565
+ "applauding",
566
+ 0.0025599778164178133
567
  ]
568
  ]
569
  },
570
  {
571
+ "filename": "segment_022_yolo.mov",
572
+ "play_state": "unknown",
573
+ "confidence": 0.0,
574
  "classifications": [
575
  [
576
+ "bobsledding",
577
+ 0.004598633851855993
578
  ],
579
  [
580
+ "\"pumping fist\"",
581
+ 0.0028625635895878077
582
  ],
583
  [
584
+ "headbutting",
585
+ 0.0026447612326592207
586
  ],
587
  [
588
+ "\"playing ice hockey\"",
589
+ 0.0025648341979831457
590
  ],
591
  [
592
+ "\"dancing macarena\"",
593
+ 0.002560875378549099
594
  ]
595
  ]
596
  },
597
  {
598
+ "filename": "segment_023_yolo.mov",
599
  "play_state": "unknown",
600
  "confidence": 0.0,
601
  "classifications": [
602
  [
603
+ "headbutting",
604
+ 0.003026276594027877
605
  ],
606
  [
607
+ "\"pumping fist\"",
608
+ 0.003016588045284152
609
  ],
610
  [
611
+ "\"shaking hands\"",
612
+ 0.0029406026005744934
613
  ],
614
  [
615
+ "\"punching bag\"",
616
+ 0.002610028488561511
617
  ],
618
  [
619
+ "celebrating",
620
+ 0.002597728744149208
621
  ]
622
  ]
623
  },
624
  {
625
+ "filename": "segment_024_yolo.mov",
626
  "play_state": "unknown",
627
  "confidence": 0.0,
628
  "classifications": [
629
  [
630
  "\"riding a bike\"",
631
+ 0.003389883553609252
632
  ],
633
  [
634
+ "\"riding unicycle\"",
635
+ 0.002759563969448209
636
  ],
637
  [
638
+ "\"pushing wheelchair\"",
639
+ 0.00266478955745697
640
  ],
641
  [
642
+ "bobsledding",
643
+ 0.002594699151813984
644
  ],
645
  [
646
+ "\"using segway\"",
647
+ 0.0025696929078549147
648
  ]
649
  ]
650
  },
651
  {
652
+ "filename": "segment_025_yolo.mov",
653
  "play_state": "unknown",
654
  "confidence": 0.0,
655
  "classifications": [
656
  [
657
  "bobsledding",
658
+ 0.00413712952286005
659
  ],
660
  [
661
+ "\"pumping gas\"",
662
+ 0.002761297859251499
663
  ],
664
  [
665
+ "\"pushing wheelchair\"",
666
+ 0.0026046608109027147
667
  ],
668
  [
669
+ "\"shaking hands\"",
670
+ 0.0025861081667244434
671
  ],
672
  [
673
+ "\"driving car\"",
674
+ 0.0025819505099207163
675
  ]
676
  ]
677
  },
678
  {
679
+ "filename": "segment_026_yolo.mov",
680
+ "play_state": "unknown",
681
+ "confidence": 0.0,
682
  "classifications": [
683
  [
684
+ "situp",
685
+ 0.002735298592597246
686
  ],
687
  [
688
+ "headbutting",
689
+ 0.002719511976465583
690
  ],
691
  [
692
+ "\"front raises\"",
693
+ 0.0027034783270210028
694
  ],
695
  [
696
+ "squat",
697
+ 0.002610066905617714
698
  ],
699
  [
700
+ "\"punching bag\"",
701
+ 0.0025977541226893663
702
  ]
703
  ]
704
  },
705
  {
706
+ "filename": "segment_027_yolo.mov",
707
  "play_state": "play_active",
708
+ "confidence": 0.0052817570976912975,
709
  "classifications": [
710
  [
711
+ "\"punching bag\"",
712
+ 0.0028936448507010937
713
  ],
714
  [
715
+ "\"salsa dancing\"",
716
+ 0.002698739757761359
717
  ],
718
  [
719
+ "squat",
720
+ 0.0026973364874720573
721
  ],
722
  [
723
+ "\"high kick\"",
724
+ 0.0026408785488456488
725
  ],
726
  [
727
+ "\"punching person (boxing)\"",
728
+ 0.00262483605183661
729
  ]
730
  ]
731
  },
732
  {
733
+ "filename": "segment_028_yolo.mov",
734
  "play_state": "unknown",
735
  "confidence": 0.0,
736
  "classifications": [
737
  [
738
  "\"stretching arm\"",
739
+ 0.003101934678852558
740
  ],
741
  [
742
+ "squat",
743
+ 0.002811474958434701
744
  ],
745
  [
746
+ "\"stretching leg\"",
747
+ 0.002715714741498232
748
  ],
749
  [
750
+ "archery",
751
+ 0.002612082054838538
752
  ],
753
  [
754
+ "\"pull ups\"",
755
+ 0.002611397299915552
756
  ]
757
  ]
758
  },
759
  {
760
+ "filename": "segment_029_yolo.mov",
761
  "play_state": "unknown",
762
  "confidence": 0.0,
763
  "classifications": [
764
  [
765
+ "\"punching person (boxing)\"",
766
+ 0.0027347488794475794
767
  ],
768
  [
769
+ "\"punching bag\"",
770
+ 0.0026767239905893803
771
  ],
772
  [
773
+ "headbutting",
774
+ 0.002651121001690626
775
  ],
776
  [
777
+ "\"giving or receiving award\"",
778
+ 0.00259765749797225
779
  ],
780
  [
781
+ "\"playing didgeridoo\"",
782
+ 0.002594605553895235
783
  ]
784
  ]
785
  },
786
  {
787
+ "filename": "segment_030_yolo.mov",
788
  "play_state": "unknown",
789
  "confidence": 0.0,
790
  "classifications": [
791
  [
792
  "\"spray painting\"",
793
+ 0.004010719712823629
794
  ],
795
  [
796
  "\"getting a tattoo\"",
797
+ 0.0027368718292564154
798
  ],
799
  [
800
+ "spraying",
801
+ 0.0026767917443066835
802
  ],
803
  [
804
+ "\"shining shoes\"",
805
+ 0.0026643385645002127
806
  ],
807
  [
808
+ "welding",
809
+ 0.002579066436737776
810
  ]
811
  ]
812
  },
813
  {
814
+ "filename": "segment_031_yolo.mov",
815
  "play_state": "play_action",
816
+ "confidence": 0.002990459091961384,
817
  "classifications": [
818
  [
819
+ "\"catching or throwing baseball\"",
820
+ 0.002990459091961384
821
  ],
822
  [
823
+ "\"mowing lawn\"",
824
+ 0.002973067807033658
825
  ],
826
  [
827
+ "\"passing American football (not in game)\"",
828
+ 0.0027338452637195587
829
  ],
830
  [
831
+ "archery",
832
+ 0.0026218006387352943
833
  ],
834
  [
835
  "\"riding or walking with horse\"",
836
+ 0.002567233517765999
837
  ]
838
  ]
839
  },
840
  {
841
+ "filename": "segment_032_yolo.mov",
842
  "play_state": "play_active",
843
+ "confidence": 0.005362235475331545,
844
  "classifications": [
845
  [
846
+ "\"passing American football (not in game)\"",
847
+ 0.003110721008852124
848
  ],
849
  [
850
+ "\"catching or throwing frisbee\"",
851
+ 0.002702908357605338
852
  ],
853
  [
854
+ "\"throwing discus\"",
855
+ 0.002692757174372673
856
  ],
857
  [
858
+ "\"catching or throwing softball\"",
859
+ 0.0026826413813978434
860
  ],
861
  [
862
+ "\"kicking field goal\"",
863
+ 0.0026811177376657724
864
  ]
865
  ]
866
  },
867
  {
868
+ "filename": "segment_033_yolo.mov",
869
+ "play_state": "play_active",
870
+ "confidence": 0.011440601665526628,
871
  "classifications": [
872
  [
873
+ "\"kicking field goal\"",
874
+ 0.0030596000142395496
875
  ],
876
  [
877
  "\"passing American football (not in game)\"",
878
+ 0.003047410398721695
879
  ],
880
  [
881
  "\"hurling (sport)\"",
882
+ 0.0028581060469150543
883
  ],
884
  [
885
+ "\"passing American football (in game)\"",
886
+ 0.0026607008185237646
887
  ],
888
  [
889
+ "\"catching or throwing frisbee\"",
890
+ 0.0026246460620313883
891
  ]
892
  ]
893
  },
894
  {
895
+ "filename": "segment_034_yolo.mov",
896
+ "play_state": "play_action",
897
+ "confidence": 0.002519050380215049,
898
  "classifications": [
899
  [
900
  "archery",
901
+ 0.005329258274286985
902
  ],
903
  [
904
+ "\"golf driving\"",
905
+ 0.002683610888198018
906
  ],
907
  [
908
+ "\"mowing lawn\"",
909
+ 0.0025359978899359703
910
  ],
911
  [
912
+ "\"training dog\"",
913
+ 0.002534035127609968
914
  ],
915
  [
916
+ "\"catching or throwing baseball\"",
917
+ 0.002519050380215049
918
  ]
919
  ]
920
  },
921
  {
922
+ "filename": "segment_035_yolo.mov",
923
  "play_state": "unknown",
924
  "confidence": 0.0,
925
  "classifications": [
926
  [
927
  "\"playing harmonica\"",
928
+ 0.005811899900436401
929
  ],
930
  [
931
+ "archery",
932
+ 0.0025510459672659636
933
  ],
934
  [
935
+ "\"tasting food\"",
936
+ 0.002534489845857024
937
  ],
938
  [
939
+ "\"recording music\"",
940
+ 0.0025342984590679407
941
  ],
942
  [
943
+ "whistling",
944
+ 0.0025266206357628107
945
  ]
946
  ]
947
  },
948
  {
949
+ "filename": "segment_036_yolo.mov",
950
  "play_state": "play_active",
951
+ "confidence": 0.010484811384230852,
952
  "classifications": [
953
  [
954
+ "\"hitting baseball\"",
955
+ 0.003244782332330942
956
  ],
957
  [
958
+ "\"catching or throwing baseball\"",
959
+ 0.0027166034560650587
960
  ],
961
  [
962
+ "\"passing American football (in game)\"",
963
+ 0.0026306253857910633
964
  ],
965
  [
966
+ "\"kicking field goal\"",
967
+ 0.0026117803063243628
968
  ],
969
  [
970
+ "headbutting",
971
+ 0.00260060653090477
972
  ]
973
  ]
974
  },
975
  {
976
+ "filename": "segment_037_yolo.mov",
977
  "play_state": "play_active",
978
+ "confidence": 0.01849189167842269,
979
  "classifications": [
980
  [
981
  "\"passing American football (in game)\"",
982
+ 0.00362950237467885
983
  ],
984
  [
985
  "\"passing American football (not in game)\"",
986
+ 0.0031450875103473663
987
  ],
988
  [
989
  "\"kicking field goal\"",
990
+ 0.0030490232165902853
991
  ],
992
  [
993
+ "\"juggling soccer ball\"",
994
+ 0.0026247703935950994
995
  ],
996
  [
997
+ "\"side kick\"",
998
+ 0.0025674202479422092
999
  ]
1000
  ]
1001
  },
1002
  {
1003
+ "filename": "segment_038_yolo.mov",
1004
  "play_state": "play_active",
1005
+ "confidence": 0.021035106852650642,
1006
  "classifications": [
 
 
 
 
1007
  [
1008
  "\"kicking field goal\"",
1009
+ 0.005301924888044596
1010
  ],
1011
  [
1012
  "\"passing American football (not in game)\"",
1013
+ 0.0027062150184065104
1014
  ],
1015
  [
1016
+ "\"passing American football (in game)\"",
1017
+ 0.002696603536605835
1018
  ],
1019
  [
1020
  "\"tossing coin\"",
1021
+ 0.002529331250116229
1022
+ ],
1023
+ [
1024
+ "\"high kick\"",
1025
+ 0.0025190250016748905
1026
  ]
1027
  ]
1028
  },
1029
  {
1030
+ "filename": "segment_039_yolo.mov",
1031
  "play_state": "play_active",
1032
+ "confidence": 0.006499986629933119,
1033
  "classifications": [
 
 
 
 
1034
  [
1035
  "\"kicking field goal\"",
1036
+ 0.0032499933149665594
1037
  ],
1038
  [
1039
  "\"passing American football (not in game)\"",
1040
+ 0.002700796350836754
1041
  ],
1042
  [
1043
+ "celebrating",
1044
+ 0.0026449142023921013
1045
  ],
1046
  [
1047
+ "headbutting",
1048
+ 0.0026088778395205736
1049
+ ],
1050
+ [
1051
+ "\"salsa dancing\"",
1052
+ 0.0026004016399383545
1053
  ]
1054
  ]
1055
  },
1056
  {
1057
+ "filename": "segment_040_yolo.mov",
1058
  "play_state": "play_active",
1059
+ "confidence": 0.01089101005345583,
1060
  "classifications": [
1061
  [
1062
+ "headbutting",
1063
+ 0.00319631933234632
1064
  ],
1065
  [
1066
+ "\"shaking hands\"",
1067
+ 0.0029544702265411615
1068
  ],
1069
  [
1070
  "\"kicking field goal\"",
1071
+ 0.0027249432168900967
1072
  ],
1073
  [
1074
+ "\"passing American football (in game)\"",
1075
+ 0.002720561809837818
1076
  ],
1077
  [
1078
+ "\"punching bag\"",
1079
+ 0.0026230227667838335
1080
  ]
1081
  ]
1082
  },
1083
  {
1084
+ "filename": "segment_041_yolo.mov",
1085
+ "play_state": "unknown",
1086
+ "confidence": 0.0,
1087
  "classifications": [
1088
  [
1089
+ "\"bench pressing\"",
1090
+ 0.0029412382282316685
1091
  ],
1092
  [
1093
+ "headbutting",
1094
+ 0.0027938159182667732
1095
  ],
1096
  [
1097
+ "\"punching bag\"",
1098
+ 0.002758623566478491
1099
  ],
1100
  [
1101
+ "situp",
1102
+ 0.0027124176267534494
1103
  ],
1104
  [
1105
+ "\"punching person (boxing)\"",
1106
+ 0.0026869422290474176
1107
  ]
1108
  ]
1109
  },
1110
  {
1111
+ "filename": "segment_042_yolo.mov",
1112
+ "play_state": "unknown",
1113
+ "confidence": 0.0,
1114
  "classifications": [
1115
  [
1116
  "bobsledding",
1117
+ 0.0031595875043421984
1118
  ],
1119
  [
1120
+ "headbutting",
1121
+ 0.0026680785231292248
1122
  ],
1123
  [
1124
+ "jetskiing",
1125
+ 0.002612100448459387
1126
  ],
1127
  [
1128
+ "celebrating",
1129
+ 0.0025999643839895725
1130
  ],
1131
  [
1132
+ "\"eating hotdog\"",
1133
+ 0.0025896395090967417
1134
  ]
1135
  ]
1136
  },
1137
  {
1138
+ "filename": "segment_043_yolo.mov",
1139
  "play_state": "unknown",
1140
  "confidence": 0.0,
1141
  "classifications": [
1142
  [
1143
+ "archery",
1144
+ 0.002769744023680687
1145
  ],
1146
  [
1147
+ "bobsledding",
1148
+ 0.0027562822215259075
1149
  ],
1150
  [
1151
+ "headbutting",
1152
+ 0.002659587422385812
1153
  ],
1154
  [
1155
+ "\"canoeing or kayaking\"",
1156
+ 0.0025809509679675102
1157
  ],
1158
  [
1159
+ "\"news anchoring\"",
1160
+ 0.002565130591392517
1161
  ]
1162
  ]
1163
  },
1164
  {
1165
+ "filename": "segment_044_yolo.mov",
1166
+ "play_state": "play_action",
1167
+ "confidence": 0.002654637908563018,
1168
  "classifications": [
1169
  [
1170
+ "\"golf driving\"",
1171
+ 0.002660238416865468
1172
  ],
1173
  [
1174
+ "\"catching or throwing baseball\"",
1175
+ 0.002654637908563018
1176
  ],
1177
  [
1178
+ "archery",
1179
+ 0.0026385339442640543
1180
  ],
1181
  [
1182
+ "\"golf putting\"",
1183
+ 0.002600783482193947
1184
  ],
1185
  [
1186
+ "\"bouncing on trampoline\"",
1187
+ 0.002554363803938031
1188
  ]
1189
  ]
1190
  },
1191
  {
1192
+ "filename": "segment_045_yolo.mov",
1193
+ "play_state": "play_action",
1194
+ "confidence": 0.0025843221228569746,
1195
  "classifications": [
1196
  [
1197
+ "\"golf driving\"",
1198
+ 0.0026563010178506374
1199
  ],
1200
  [
1201
+ "\"canoeing or kayaking\"",
1202
+ 0.002589839743450284
1203
  ],
1204
  [
1205
+ "\"catching or throwing baseball\"",
1206
+ 0.0025843221228569746
1207
  ],
1208
  [
1209
+ "archery",
1210
+ 0.002583845052868128
1211
  ],
1212
  [
1213
+ "\"golf putting\"",
1214
+ 0.002583371941000223
1215
  ]
1216
  ]
1217
  },
1218
  {
1219
+ "filename": "segment_046_yolo.mov",
1220
  "play_state": "play_active",
1221
+ "confidence": 0.010898207314312458,
1222
  "classifications": [
1223
  [
1224
  "\"tossing coin\"",
1225
+ 0.0030327935237437487
1226
  ],
1227
  [
1228
+ "\"passing American football (not in game)\"",
1229
+ 0.002856971463188529
1230
  ],
1231
  [
1232
+ "\"kicking field goal\"",
1233
+ 0.002726062433794141
1234
  ],
1235
  [
1236
+ "\"passing American football (in game)\"",
1237
+ 0.002723041223362088
1238
  ],
1239
  [
1240
+ "headbutting",
1241
+ 0.002688512671738863
1242
  ]
1243
  ]
1244
  },
1245
  {
1246
+ "filename": "segment_047_yolo.mov",
1247
+ "play_state": "non_play",
1248
+ "confidence": 0.0025910602416843176,
1249
  "classifications": [
1250
  [
1251
+ "headbutting",
1252
+ 0.003339409828186035
1253
  ],
1254
  [
1255
+ "\"shaking hands\"",
1256
+ 0.003244070801883936
1257
  ],
1258
  [
1259
+ "celebrating",
1260
+ 0.0026113842613995075
1261
  ],
1262
  [
1263
+ "\"tossing coin\"",
1264
+ 0.002604146720841527
1265
  ],
1266
  [
1267
+ "applauding",
1268
+ 0.0025910602416843176
1269
  ]
1270
  ]
1271
  },
1272
  {
1273
+ "filename": "segment_048_yolo.mov",
1274
+ "play_state": "unknown",
1275
+ "confidence": 0.0,
1276
  "classifications": [
1277
  [
1278
+ "\"playing didgeridoo\"",
1279
+ 0.002998597687110305
1280
  ],
1281
  [
1282
+ "\"tying knot (not on a tie)\"",
1283
+ 0.002664106199517846
1284
  ],
1285
  [
1286
+ "\"punching person (boxing)\"",
1287
+ 0.0026295355055481195
1288
  ],
1289
  [
1290
+ "archery",
1291
+ 0.002614056458696723
1292
  ],
1293
  [
1294
+ "\"punching bag\"",
1295
+ 0.002602426568046212
1296
  ]
1297
  ]
1298
  },
1299
  {
1300
+ "filename": "segment_049_yolo.mov",
1301
  "play_state": "unknown",
1302
  "confidence": 0.0,
1303
  "classifications": [
1304
  [
1305
+ "\"shaking hands\"",
1306
+ 0.0028212147299200296
1307
  ],
1308
  [
1309
  "\"pumping fist\"",
1310
+ 0.0027190211694687605
1311
  ],
1312
  [
1313
+ "crying",
1314
+ 0.002711821347475052
1315
  ],
1316
  [
1317
+ "beatboxing",
1318
+ 0.0027061770670115948
1319
  ],
1320
  [
1321
+ "archery",
1322
+ 0.0026165973395109177
1323
  ]
1324
  ]
1325
  },
1326
  {
1327
+ "filename": "segment_050_yolo.mov",
1328
  "play_state": "unknown",
1329
  "confidence": 0.0,
1330
  "classifications": [
 
 
 
 
1331
  [
1332
  "beatboxing",
1333
+ 0.003699116175994277
1334
  ],
1335
  [
1336
+ "crying",
1337
+ 0.0026820709463208914
1338
  ],
1339
  [
1340
  "\"pumping fist\"",
1341
+ 0.002612361451610923
1342
+ ],
1343
+ [
1344
+ "\"fixing hair\"",
1345
+ 0.0025948460679501295
1346
  ],
1347
  [
1348
+ "\"answering questions\"",
1349
+ 0.0025929072871804237
1350
  ]
1351
  ]
1352
  },
1353
  {
1354
+ "filename": "segment_051_yolo.mov",
1355
  "play_state": "play_active",
1356
+ "confidence": 0.024815138895064592,
1357
  "classifications": [
1358
  [
1359
+ "\"kicking field goal\"",
1360
+ 0.004578351974487305
1361
  ],
1362
  [
1363
  "\"passing American football (not in game)\"",
1364
+ 0.0026734094135463238
1365
  ],
1366
  [
1367
+ "\"passing American football (in game)\"",
1368
+ 0.002669935580343008
1369
  ],
1370
  [
1371
+ "\"high kick\"",
1372
+ 0.002588945673778653
1373
  ],
1374
  [
1375
+ "\"side kick\"",
1376
+ 0.0025703362189233303
1377
  ]
1378
  ]
1379
  },
1380
  {
1381
+ "filename": "segment_052_yolo.mov",
1382
  "play_state": "play_active",
1383
+ "confidence": 0.026417993009090424,
1384
  "classifications": [
 
 
 
 
1385
  [
1386
  "\"kicking field goal\"",
1387
+ 0.0055681997910141945
1388
  ],
1389
  [
1390
  "\"passing American football (not in game)\"",
1391
+ 0.0027117645367980003
1392
  ],
1393
  [
1394
+ "\"high kick\"",
1395
+ 0.0025820170994848013
1396
  ],
1397
  [
1398
+ "\"passing American football (in game)\"",
1399
+ 0.0025415276177227497
1400
+ ],
1401
+ [
1402
+ "\"side kick\"",
1403
+ 0.0025172519963234663
1404
  ]
1405
  ]
1406
  },
1407
  {
1408
+ "filename": "segment_053_yolo.mov",
1409
  "play_state": "play_active",
1410
+ "confidence": 0.01574951270595193,
1411
  "classifications": [
1412
  [
1413
  "\"passing American football (in game)\"",
1414
+ 0.005285617895424366
1415
  ],
1416
  [
1417
  "\"passing American football (not in game)\"",
1418
+ 0.003025428391993046
1419
  ],
1420
  [
1421
+ "\"kicking field goal\"",
1422
+ 0.0025891384575515985
1423
  ],
1424
  [
1425
+ "hurdling",
1426
+ 0.0024980036541819572
1427
  ],
1428
  [
1429
+ "\"dribbling basketball\"",
1430
+ 0.002496924251317978
1431
  ]
1432
  ]
1433
  },
1434
  {
1435
+ "filename": "segment_054_yolo.mov",
1436
  "play_state": "play_active",
1437
+ "confidence": 0.010882065631449223,
1438
  "classifications": [
1439
  [
1440
+ "\"passing American football (not in game)\"",
1441
+ 0.003872552188113332
1442
  ],
1443
  [
1444
+ "\"dribbling basketball\"",
1445
+ 0.0030753780156373978
1446
  ],
1447
  [
1448
  "\"kicking field goal\"",
1449
+ 0.0027650834526866674
1450
  ],
1451
  [
1452
+ "\"passing American football (in game)\"",
1453
+ 0.002675949363037944
1454
  ],
1455
  [
1456
+ "\"playing basketball\"",
1457
+ 0.002576695755124092
1458
  ]
1459
  ]
1460
  },
1461
  {
1462
+ "filename": "segment_055_yolo.mov",
1463
+ "play_state": "play_action",
1464
+ "confidence": 0.0026663222815841436,
1465
  "classifications": [
1466
  [
1467
+ "\"catching or throwing baseball\"",
1468
+ 0.0026663222815841436
1469
  ],
1470
  [
1471
+ "\"juggling soccer ball\"",
1472
+ 0.0026123772840946913
1473
  ],
1474
  [
1475
+ "\"robot dancing\"",
1476
+ 0.0025953492149710655
1477
  ],
1478
  [
1479
+ "zumba",
1480
+ 0.00258544716052711
1481
  ],
1482
  [
1483
+ "\"shaking hands\"",
1484
+ 0.002576549304649234
1485
  ]
1486
  ]
1487
  },
1488
  {
1489
+ "filename": "segment_056_yolo.mov",
1490
+ "play_state": "unknown",
1491
+ "confidence": 0.0,
1492
  "classifications": [
1493
  [
1494
  "headbutting",
1495
+ 0.0033332169987261295
1496
  ],
1497
  [
1498
+ "\"playing ice hockey\"",
1499
+ 0.0029790825210511684
1500
  ],
1501
  [
1502
+ "\"pumping fist\"",
1503
+ 0.002842084737494588
1504
  ],
1505
  [
1506
+ "bobsledding",
1507
+ 0.0026699050795286894
1508
  ],
1509
  [
1510
+ "\"shaking hands\"",
1511
+ 0.0026647481136024
1512
  ]
1513
  ]
1514
  },
1515
  {
1516
+ "filename": "segment_057_yolo.mov",
1517
  "play_state": "unknown",
1518
  "confidence": 0.0,
1519
  "classifications": [
1520
  [
1521
  "bobsledding",
1522
+ 0.005422221962362528
1523
  ],
1524
  [
1525
+ "\"playing ice hockey\"",
1526
+ 0.0025597589556127787
1527
  ],
1528
  [
1529
+ "\"pumping fist\"",
1530
+ 0.0025510250125080347
1531
  ],
1532
  [
1533
  "\"playing poker\"",
1534
+ 0.0025464443024247885
1535
  ],
1536
  [
1537
+ "\"pushing car\"",
1538
+ 0.0025204005651175976
1539
  ]
1540
  ]
1541
  },
1542
  {
1543
+ "filename": "segment_058_yolo.mov",
1544
  "play_state": "unknown",
1545
  "confidence": 0.0,
1546
  "classifications": [
1547
  [
1548
+ "\"getting a tattoo\"",
1549
+ 0.002656659111380577
1550
  ],
1551
  [
1552
+ "kissing",
1553
+ 0.0026373309083282948
1554
  ],
1555
  [
1556
+ "\"shaking hands\"",
1557
+ 0.002583152847364545
1558
  ],
1559
  [
1560
+ "\"drinking beer\"",
1561
+ 0.00256769685074687
1562
  ],
1563
  [
1564
+ "\"surfing crowd\"",
1565
+ 0.0025616209022700787
1566
  ]
1567
  ]
1568
  },
1569
  {
1570
+ "filename": "segment_059_yolo.mov",
1571
+ "play_state": "play_action",
1572
+ "confidence": 0.0025341541040688753,
1573
  "classifications": [
1574
  [
1575
  "bobsledding",
1576
+ 0.004245623480528593
1577
  ],
1578
  [
1579
  "\"playing ice hockey\"",
1580
+ 0.0029677152633666992
1581
  ],
1582
  [
1583
  "\"playing paintball\"",
1584
+ 0.0026224006433039904
1585
  ],
1586
  [
1587
+ "archery",
1588
+ 0.002558595733717084
1589
  ],
1590
  [
1591
+ "\"catching or throwing baseball\"",
1592
+ 0.0025341541040688753
1593
  ]
1594
  ]
1595
  },
1596
  {
1597
+ "filename": "segment_060_yolo.mov",
1598
  "play_state": "play_active",
1599
+ "confidence": 0.013861088082194328,
1600
  "classifications": [
1601
  [
1602
+ "\"kicking field goal\"",
1603
+ 0.0036240005865693092
1604
  ],
1605
  [
1606
+ "\"passing American football (in game)\"",
1607
+ 0.003306543454527855
1608
  ],
1609
  [
1610
+ "\"dribbling basketball\"",
1611
+ 0.0026300682220607996
1612
  ],
1613
  [
1614
+ "\"playing basketball\"",
1615
+ 0.0026117167435586452
1616
  ],
1617
  [
1618
+ "\"passing American football (not in game)\"",
1619
+ 0.002595077035948634
1620
  ]
1621
  ]
1622
  },
1623
  {
1624
+ "filename": "segment_061_yolo.mov",
1625
  "play_state": "play_active",
1626
+ "confidence": 0.022062829229980707,
1627
  "classifications": [
1628
  [
1629
  "\"passing American football (in game)\"",
1630
+ 0.005980201065540314
1631
  ],
1632
  [
1633
+ "\"passing American football (not in game)\"",
1634
+ 0.002735982881858945
1635
  ],
1636
  [
1637
+ "\"kicking field goal\"",
1638
+ 0.002559477696195245
1639
  ],
1640
  [
1641
  "\"side kick\"",
1642
+ 0.002491735853254795
1643
  ],
1644
  [
1645
+ "hurdling",
1646
+ 0.002491380088031292
1647
  ]
1648
  ]
1649
  },
1650
  {
1651
+ "filename": "segment_062_yolo.mov",
1652
  "play_state": "play_active",
1653
+ "confidence": 0.005221776198595762,
1654
  "classifications": [
1655
  [
1656
+ "\"catching or throwing baseball\"",
1657
+ 0.003453051671385765
1658
  ],
1659
  [
1660
+ "headbutting",
1661
+ 0.0029976735822856426
1662
  ],
1663
  [
1664
+ "\"passing American football (not in game)\"",
1665
+ 0.0027572312392294407
1666
  ],
1667
  [
1668
+ "\"playing basketball\"",
1669
+ 0.0026159172412008047
1670
  ],
1671
  [
1672
+ "\"kicking field goal\"",
1673
+ 0.002610888099297881
1674
  ]
1675
  ]
1676
  },
1677
  {
1678
+ "filename": "segment_063_yolo.mov",
1679
  "play_state": "play_active",
1680
+ "confidence": 0.011794616933912039,
1681
  "classifications": [
1682
  [
1683
+ "\"shaking hands\"",
1684
+ 0.003249020781368017
1685
  ],
1686
  [
1687
  "\"passing American football (in game)\"",
1688
+ 0.002968696178868413
1689
  ],
1690
  [
1691
+ "\"kicking field goal\"",
1692
+ 0.0029286122880876064
1693
  ],
1694
  [
1695
+ "headbutting",
1696
+ 0.0028115534223616123
1697
  ],
1698
  [
1699
+ "celebrating",
1700
+ 0.0026473260950297117
1701
  ]
1702
  ]
1703
  },
1704
  {
1705
+ "filename": "segment_064_yolo.mov",
1706
  "play_state": "play_active",
1707
+ "confidence": 0.01910176407545805,
1708
  "classifications": [
1709
  [
1710
+ "\"kicking field goal\"",
1711
+ 0.0036601137835532427
1712
  ],
1713
  [
1714
+ "\"passing American football (in game)\"",
1715
+ 0.0033671045675873756
1716
  ],
1717
  [
1718
+ "\"passing American football (not in game)\"",
1719
+ 0.0032084467820823193
1720
  ],
1721
  [
1722
+ "\"high kick\"",
1723
+ 0.0025236636865884066
1724
  ],
1725
  [
1726
+ "headbutting",
1727
+ 0.002520572626963258
1728
  ]
1729
  ]
1730
  },
1731
  {
1732
+ "filename": "segment_065_yolo.mov",
1733
  "play_state": "play_active",
1734
+ "confidence": 0.010609124321490526,
1735
  "classifications": [
1736
  [
1737
+ "squat",
1738
+ 0.004455567337572575
1739
  ],
1740
  [
1741
+ "\"side kick\"",
1742
+ 0.0027356701903045177
1743
  ],
1744
  [
1745
+ "\"tai chi\"",
1746
+ 0.002618422731757164
1747
  ],
1748
  [
1749
+ "\"high kick\"",
1750
+ 0.0025688919704407454
1751
  ],
1752
  [
1753
+ "\"bench pressing\"",
1754
+ 0.0025475008878856897
1755
  ]
1756
  ]
1757
  },
1758
  {
1759
+ "filename": "segment_066_yolo.mov",
1760
  "play_state": "unknown",
1761
  "confidence": 0.0,
1762
  "classifications": [
1763
  [
1764
  "bobsledding",
1765
+ 0.0033308248966932297
1766
  ],
1767
  [
1768
+ "headbutting",
1769
+ 0.0031743308063596487
1770
  ],
1771
  [
1772
+ "\"milking cow\"",
1773
+ 0.002937618177384138
1774
  ],
1775
  [
1776
+ "\"punching bag\"",
1777
+ 0.0027583763003349304
1778
  ],
1779
  [
1780
+ "\"punching person (boxing)\"",
1781
+ 0.0025923149660229683
1782
  ]
1783
  ]
1784
  },
1785
  {
1786
+ "filename": "segment_067_yolo.mov",
1787
  "play_state": "unknown",
1788
  "confidence": 0.0,
1789
  "classifications": [
1790
  [
1791
+ "\"bench pressing\"",
1792
+ 0.0029304653871804476
1793
  ],
1794
  [
1795
  "\"pushing car\"",
1796
+ 0.002887815935537219
1797
  ],
1798
  [
1799
+ "\"massaging back\"",
1800
+ 0.0027693593874573708
1801
  ],
1802
  [
1803
+ "squat",
1804
+ 0.002698527416214347
1805
  ],
1806
  [
1807
  "\"arm wrestling\"",
1808
+ 0.002601209795102477
1809
  ]
1810
  ]
1811
  },
1812
  {
1813
+ "filename": "segment_068_yolo.mov",
1814
+ "play_state": "play_action",
1815
+ "confidence": 0.005456733051687479,
1816
  "classifications": [
1817
  [
1818
+ "\"hitting baseball\"",
1819
+ 0.003601266536861658
1820
  ],
1821
  [
1822
+ "\"catching or throwing baseball\"",
1823
+ 0.0028322539292275906
1824
  ],
1825
  [
1826
+ "\"playing cricket\"",
1827
+ 0.0026244791224598885
1828
  ],
1829
  [
1830
+ "\"golf putting\"",
1831
+ 0.0026135281659662724
1832
  ],
1833
  [
1834
+ "archery",
1835
+ 0.0025685506407171488
1836
  ]
1837
  ]
1838
  },
1839
  {
1840
+ "filename": "segment_069_yolo.mov",
1841
+ "play_state": "play_action",
1842
+ "confidence": 0.005354859866201878,
1843
  "classifications": [
1844
  [
1845
+ "\"stretching leg\"",
1846
+ 0.003092997008934617
1847
  ],
1848
  [
1849
+ "\"catching or throwing softball\"",
1850
+ 0.0027329849544912577
1851
  ],
1852
  [
1853
+ "\"stretching arm\"",
1854
+ 0.002648310735821724
1855
  ],
1856
  [
1857
+ "\"kicking field goal\"",
1858
+ 0.0026460480876266956
1859
  ],
1860
  [
1861
+ "\"catching or throwing baseball\"",
1862
+ 0.00262187491171062
1863
  ]
1864
  ]
1865
  },
1866
  {
1867
+ "filename": "segment_070_yolo.mov",
1868
+ "play_state": "play_action",
1869
+ "confidence": 0.005918602691963315,
1870
  "classifications": [
1871
  [
1872
+ "\"catching or throwing softball\"",
1873
+ 0.003247001674026251
 
 
 
 
1874
  ],
1875
  [
1876
  "\"kicking field goal\"",
1877
+ 0.002695336937904358
1878
  ],
1879
  [
1880
+ "\"passing American football (not in game)\"",
1881
+ 0.0026748699601739645
1882
  ],
1883
  [
1884
  "\"catching or throwing baseball\"",
1885
+ 0.002671601017937064
1886
+ ],
1887
+ [
1888
+ "\"hitting baseball\"",
1889
+ 0.002642728155478835
1890
  ]
1891
  ]
1892
  },
1893
  {
1894
+ "filename": "segment_071_yolo.mov",
1895
+ "play_state": "play_action",
1896
+ "confidence": 0.005609527695924044,
1897
  "classifications": [
1898
  [
1899
+ "\"hitting baseball\"",
1900
+ 0.0030939432326704264
1901
  ],
1902
  [
1903
+ "\"catching or throwing softball\"",
1904
+ 0.0028539237100631
1905
  ],
1906
  [
1907
+ "\"catching or throwing baseball\"",
1908
+ 0.002755603985860944
1909
  ],
1910
  [
1911
+ "\"stretching leg\"",
1912
+ 0.002734230598434806
1913
  ],
1914
  [
1915
+ "\"kicking field goal\"",
1916
+ 0.002713371068239212
1917
  ]
1918
  ]
1919
  },
1920
  {
1921
+ "filename": "segment_072_yolo.mov",
1922
+ "play_state": "play_action",
1923
+ "confidence": 0.0027391111943870783,
1924
  "classifications": [
1925
  [
1926
+ "\"hitting baseball\"",
1927
+ 0.0027466765604913235
1928
  ],
1929
  [
1930
+ "\"stretching leg\"",
1931
+ 0.0027434169314801693
1932
  ],
1933
  [
1934
+ "\"catching or throwing softball\"",
1935
+ 0.0027391111943870783
1936
  ],
1937
  [
1938
+ "\"passing American football (not in game)\"",
1939
+ 0.0027261157520115376
1940
  ],
1941
  [
1942
+ "\"golf putting\"",
1943
+ 0.0027199701871722937
1944
  ]
1945
  ]
1946
  },
1947
  {
1948
+ "filename": "segment_073_yolo.mov",
1949
+ "play_state": "play_action",
1950
+ "confidence": 0.005418551154434681,
1951
  "classifications": [
1952
  [
1953
+ "\"passing American football (not in game)\"",
1954
+ 0.003243114333599806
1955
  ],
1956
  [
1957
+ "\"catching or throwing softball\"",
1958
+ 0.002755112247541547
1959
  ],
1960
  [
1961
+ "\"hitting baseball\"",
1962
+ 0.0027126993518322706
1963
  ],
1964
  [
1965
+ "\"catching or throwing baseball\"",
1966
+ 0.002663438906893134
1967
  ],
1968
  [
1969
+ "dodgeball",
1970
+ 0.002640771446749568
1971
  ]
1972
  ]
1973
  },
1974
  {
1975
+ "filename": "segment_074_yolo.mov",
1976
+ "play_state": "play_action",
1977
+ "confidence": 0.00601238920353353,
1978
  "classifications": [
1979
  [
1980
+ "\"catching or throwing softball\"",
1981
+ 0.003232127521187067
1982
  ],
1983
  [
1984
+ "\"catching or throwing baseball\"",
1985
+ 0.002780261682346463
1986
  ],
1987
  [
1988
+ "\"kicking field goal\"",
1989
+ 0.00266905571334064
1990
  ],
1991
  [
1992
+ "\"passing American football (not in game)\"",
1993
+ 0.0026120333932340145
1994
  ],
1995
  [
1996
+ "\"hitting baseball\"",
1997
+ 0.0025939152110368013
1998
  ]
1999
  ]
2000
  },
2001
  {
2002
+ "filename": "segment_075_yolo.mov",
2003
+ "play_state": "play_action",
2004
+ "confidence": 0.007192079443484545,
2005
  "classifications": [
2006
  [
2007
+ "\"catching or throwing baseball\"",
2008
+ 0.004522757604718208
2009
  ],
2010
  [
2011
  "\"passing American football (not in game)\"",
2012
+ 0.0029215679969638586
2013
  ],
2014
  [
2015
  "\"kicking field goal\"",
2016
+ 0.0026764352805912495
2017
  ],
2018
  [
2019
+ "\"catching or throwing softball\"",
2020
+ 0.0026693218387663364
2021
  ],
2022
  [
2023
+ "\"hitting baseball\"",
2024
+ 0.0025645860005170107
2025
  ]
2026
  ]
2027
  },
2028
  {
2029
+ "filename": "segment_076_yolo.mov",
2030
+ "play_state": "play_action",
2031
+ "confidence": 0.005287838634103537,
2032
  "classifications": [
2033
  [
2034
  "\"hurling (sport)\"",
2035
+ 0.0032000483479350805
2036
  ],
2037
  [
2038
  "headbutting",
2039
+ 0.0027553813997656107
2040
  ],
2041
  [
2042
+ "\"hitting baseball\"",
2043
+ 0.0027151587419211864
2044
  ],
2045
  [
2046
+ "\"playing cricket\"",
2047
+ 0.002658894518390298
2048
  ],
2049
  [
2050
+ "\"catching or throwing baseball\"",
2051
+ 0.0026289441157132387
2052
  ]
2053
  ]
2054
  },
 
2063
  {
2064
  "type": "play_end",
2065
  "clip_index": 2,
2066
+ "clip_name": "segment_003_yolo.mov",
2067
+ "confidence": 0.0027307451236993074
 
 
 
 
 
 
 
 
 
 
 
 
2068
  },
2069
  {
2070
  "type": "play_start",
2071
  "clip_index": 8,
2072
+ "clip_name": "segment_009_yolo.mov",
2073
+ "confidence": 0.010849987156689167
2074
  },
2075
  {
2076
  "type": "play_end",
2077
  "clip_index": 10,
2078
+ "clip_name": "segment_011_yolo.mov",
2079
+ "confidence": 0.008274616673588753
2080
  },
2081
  {
2082
  "type": "play_start",
2083
  "clip_index": 12,
2084
+ "clip_name": "segment_013_yolo.mov",
2085
+ "confidence": 0.005786340218037367
 
 
 
 
 
 
 
 
 
 
 
 
2086
  },
2087
  {
2088
  "type": "play_end",
2089
+ "clip_index": 19,
2090
+ "clip_name": "segment_020_yolo.mov",
2091
+ "confidence": 0.017321025021374226
2092
  },
2093
  {
2094
  "type": "play_start",
2095
+ "clip_index": 26,
2096
+ "clip_name": "segment_027_yolo.mov",
2097
+ "confidence": 0.0052817570976912975
2098
  },
2099
  {
2100
  "type": "play_end",
2101
  "clip_index": 26,
2102
+ "clip_name": "segment_027_yolo.mov",
2103
+ "confidence": 0.0052817570976912975
2104
  },
2105
  {
2106
  "type": "play_start",
2107
  "clip_index": 30,
2108
+ "clip_name": "segment_031_yolo.mov",
2109
+ "confidence": 0.002990459091961384
2110
  },
2111
  {
2112
  "type": "play_end",
2113
+ "clip_index": 33,
2114
+ "clip_name": "segment_034_yolo.mov",
2115
+ "confidence": 0.002519050380215049
2116
  },
2117
  {
2118
  "type": "play_start",
2119
  "clip_index": 35,
2120
+ "clip_name": "segment_036_yolo.mov",
2121
+ "confidence": 0.010484811384230852
2122
  },
2123
  {
2124
  "type": "play_end",
2125
+ "clip_index": 39,
2126
+ "clip_name": "segment_040_yolo.mov",
2127
+ "confidence": 0.01089101005345583
2128
  },
2129
  {
2130
  "type": "play_start",
2131
+ "clip_index": 43,
2132
+ "clip_name": "segment_044_yolo.mov",
2133
+ "confidence": 0.002654637908563018
2134
  },
2135
  {
2136
  "type": "play_end",
2137
+ "clip_index": 45,
2138
+ "clip_name": "segment_046_yolo.mov",
2139
+ "confidence": 0.010898207314312458
2140
  },
2141
  {
2142
  "type": "play_start",
2143
  "clip_index": 50,
2144
+ "clip_name": "segment_051_yolo.mov",
2145
+ "confidence": 0.024815138895064592
2146
  },
2147
  {
2148
  "type": "play_end",
2149
+ "clip_index": 54,
2150
+ "clip_name": "segment_055_yolo.mov",
2151
+ "confidence": 0.0026663222815841436
2152
  },
2153
  {
2154
  "type": "play_start",
2155
+ "clip_index": 58,
2156
+ "clip_name": "segment_059_yolo.mov",
2157
+ "confidence": 0.0025341541040688753
2158
  },
2159
  {
2160
  "type": "play_end",
2161
  "clip_index": 64,
2162
+ "clip_name": "segment_065_yolo.mov",
2163
+ "confidence": 0.010609124321490526
2164
  },
2165
  {
2166
  "type": "play_start",
2167
  "clip_index": 67,
2168
+ "clip_name": "segment_068_yolo.mov",
2169
+ "confidence": 0.005456733051687479
2170
  },
2171
  {
2172
  "type": "play_end",
2173
  "clip_index": 75,
2174
+ "clip_name": "segment_076_yolo.mov",
2175
+ "confidence": 0.005287838634103537
2176
  }
2177
  ],
2178
  "summary": {
2179
  "total_clips": 77,
2180
+ "play_active_clips": 30,
2181
+ "play_action_clips": 18,
2182
+ "non_play_clips": 4,
2183
+ "unknown_clips": 25,
2184
+ "detected_play_starts": 9,
2185
+ "detected_play_ends": 10
2186
  }
2187
  }
requirements.txt CHANGED
@@ -6,3 +6,5 @@ huggingface_hub
6
  ffmpeg-python
7
  # For high-quality NFL broadcast audio transcription
8
  openai-whisper
 
 
 
6
  ffmpeg-python
7
  # For high-quality NFL broadcast audio transcription
8
  openai-whisper
9
+ # For YOLO object detection preprocessing
10
+ ultralytics
run_all_clips.py CHANGED
@@ -21,18 +21,21 @@ from typing import Dict, List, Any, Optional
21
  # Import from new modular structure
22
  from video import predict_clip, analyze_play_state, detect_play_boundaries
23
  from audio import transcribe_clip
 
24
  from config import (
25
  SUPPORTED_VIDEO_FORMATS, DEFAULT_CLASSIFICATION_FILE, DEFAULT_TRANSCRIPT_FILE,
26
- DEFAULT_PLAY_ANALYSIS_FILE, VIDEO_SAVE_INTERVAL, AUDIO_SAVE_INTERVAL
 
27
  )
28
 
29
 
30
- def main(input_dir: str = "data",
31
  classification_file: str = DEFAULT_CLASSIFICATION_FILE,
32
  transcript_file: str = DEFAULT_TRANSCRIPT_FILE,
33
  play_analysis_file: str = DEFAULT_PLAY_ANALYSIS_FILE,
34
  skip_audio: bool = False,
35
- max_clips: Optional[int] = None) -> Dict[str, Any]:
 
36
  """
37
  Main processing function for NFL play detection pipeline.
38
 
@@ -43,6 +46,7 @@ def main(input_dir: str = "data",
43
  play_analysis_file: Output file for play analysis results
44
  skip_audio: If True, skip audio transcription (Phase 2)
45
  max_clips: Limit processing to first N clips (for testing)
 
46
 
47
  Returns:
48
  Dictionary with processing statistics and results
@@ -60,6 +64,46 @@ def main(input_dir: str = "data",
60
  if max_clips and max_clips > 0:
61
  clips = clips[:max_clips]
62
  print(f"🧪 TESTING MODE: Limited to first {len(clips)} clips")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
63
 
64
  classification_results = {}
65
  transcript_results = {}
@@ -187,9 +231,12 @@ def main(input_dir: str = "data",
187
  print("=" * 60)
188
  print("Processing all audio files in batch...")
189
 
190
- for i, clip in enumerate(clips, 1):
 
 
 
191
  clip_name = os.path.basename(clip)
192
- print(f"\n[{i}/{len(clips)}] Transcribing audio: {clip_name}")
193
 
194
  try:
195
  transcript = transcribe_clip(clip)
@@ -203,7 +250,7 @@ def main(input_dir: str = "data",
203
  transcript_results[clip_name] = ""
204
 
205
  # Write incremental results after every N clips or at the end
206
- if i % AUDIO_SAVE_INTERVAL == 0 or i == len(clips):
207
  try:
208
  with open(transcript_file, 'w') as f:
209
  json.dump(transcript_results, f, indent=2)
@@ -214,8 +261,10 @@ def main(input_dir: str = "data",
214
  print(f"\n��� PHASE 2 COMPLETE - AUDIO TRANSCRIPTION")
215
  print("=" * 60)
216
  transcribed_clips = len([t for t in transcript_results.values() if t.strip()])
217
- print(f" Clips with transcripts: {transcribed_clips}/{len(clips)}")
218
  print(f" ✓ Transcripts saved to {transcript_file}")
 
 
219
  else:
220
  print(f"\n⏭️ PHASE 2 SKIPPED - Audio transcription disabled")
221
  print("=" * 60)
@@ -236,15 +285,18 @@ def main(input_dir: str = "data",
236
  "video_processed": len(clips),
237
  "audio_processed": len(transcript_results) if not skip_audio else 0,
238
  "play_boundaries": len(boundaries),
 
239
  "processing_time_saved": "~85% faster" if skip_audio else "full processing"
240
  }
241
 
242
 
243
  if __name__ == "__main__":
244
  parser = argparse.ArgumentParser(description='NFL Play Detection Pipeline - Optimized for continuous processing')
245
- parser.add_argument('--input-dir', default='data', help='Directory containing video clips (default: data)')
246
  parser.add_argument('--video-only', action='store_true', help='Process only video classification (85%% faster)')
247
  parser.add_argument('--audio-only', action='store_true', help='Process only audio transcription (requires existing classification.json)')
 
 
248
  parser.add_argument('--max-clips', type=int, help='Limit processing to first N clips (for testing)')
249
  parser.add_argument('--classification-file', default=DEFAULT_CLASSIFICATION_FILE, help='Video classification output file')
250
  parser.add_argument('--transcript-file', default=DEFAULT_TRANSCRIPT_FILE, help='Audio transcript output file')
@@ -267,7 +319,22 @@ if __name__ == "__main__":
267
  try:
268
  with open(args.classification_file, 'r') as f:
269
  classification_data = json.load(f)
270
- clips = [os.path.join(args.input_dir, clip_name) for clip_name in classification_data.keys()]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
271
 
272
  # Limit clips for testing if specified
273
  if args.max_clips and args.max_clips > 0:
@@ -275,6 +342,8 @@ if __name__ == "__main__":
275
  print(f"🧪 TESTING MODE: Limited to first {len(clips)} clips")
276
  else:
277
  print(f"Found {len(clips)} clips from existing classification data")
 
 
278
  except Exception as e:
279
  print(f"[ERROR] Failed to load classification file: {e}")
280
  exit(1)
@@ -314,6 +383,14 @@ if __name__ == "__main__":
314
  skip_audio = args.video_only
315
  start_time = time.time()
316
 
 
 
 
 
 
 
 
 
317
  if skip_audio:
318
  print("🚀 VIDEO-ONLY MODE: Fast video classification and play analysis")
319
  print("=" * 70)
@@ -327,7 +404,8 @@ if __name__ == "__main__":
327
  transcript_file=args.transcript_file,
328
  play_analysis_file=args.play_analysis_file,
329
  skip_audio=skip_audio,
330
- max_clips=args.max_clips
 
331
  )
332
 
333
  elapsed = time.time() - start_time
 
21
  # Import from new modular structure
22
  from video import predict_clip, analyze_play_state, detect_play_boundaries
23
  from audio import transcribe_clip
24
+ from yolo_processor import FootballDetector, preprocess_segments_with_yolo
25
  from config import (
26
  SUPPORTED_VIDEO_FORMATS, DEFAULT_CLASSIFICATION_FILE, DEFAULT_TRANSCRIPT_FILE,
27
+ DEFAULT_PLAY_ANALYSIS_FILE, VIDEO_SAVE_INTERVAL, AUDIO_SAVE_INTERVAL,
28
+ DEFAULT_DATA_DIR, DEFAULT_SEGMENTS_DIR, DEFAULT_YOLO_OUTPUT_DIR
29
  )
30
 
31
 
32
+ def main(input_dir: str = DEFAULT_SEGMENTS_DIR,
33
  classification_file: str = DEFAULT_CLASSIFICATION_FILE,
34
  transcript_file: str = DEFAULT_TRANSCRIPT_FILE,
35
  play_analysis_file: str = DEFAULT_PLAY_ANALYSIS_FILE,
36
  skip_audio: bool = False,
37
+ max_clips: Optional[int] = None,
38
+ use_yolo: bool = None) -> Dict[str, Any]:
39
  """
40
  Main processing function for NFL play detection pipeline.
41
 
 
46
  play_analysis_file: Output file for play analysis results
47
  skip_audio: If True, skip audio transcription (Phase 2)
48
  max_clips: Limit processing to first N clips (for testing)
49
+ use_yolo: If True, preprocess clips with YOLO. If None, auto-enable for segments directory
50
 
51
  Returns:
52
  Dictionary with processing statistics and results
 
64
  if max_clips and max_clips > 0:
65
  clips = clips[:max_clips]
66
  print(f"🧪 TESTING MODE: Limited to first {len(clips)} clips")
67
+
68
+ # Auto-enable YOLO for segments directory if not explicitly specified
69
+ if use_yolo is None:
70
+ use_yolo = (input_dir == DEFAULT_SEGMENTS_DIR or input_dir.endswith('segments'))
71
+ if use_yolo:
72
+ print(f"🎯 AUTO-ENABLING YOLO: Detected segments directory '{input_dir}'")
73
+ print(f" Use --no-yolo to disable YOLO preprocessing")
74
+
75
+ # PHASE 0: YOLO Preprocessing (if enabled)
76
+ yolo_clips_map = {} # Map original clip -> YOLO processed clip
77
+ original_clips = clips.copy() # Keep original clips for audio processing
78
+
79
+ if use_yolo:
80
+ print(f"\n🎯 PHASE 0: YOLO OBJECT DETECTION PREPROCESSING")
81
+ print("=" * 70)
82
+ print("Preprocessing clips with YOLOv11 football detection...")
83
+
84
+ # Process clips with YOLO if input_dir is segments
85
+ if input_dir == DEFAULT_SEGMENTS_DIR or input_dir.endswith('segments'):
86
+ football_detector = FootballDetector(
87
+ segments_dir=input_dir,
88
+ yolo_output_dir=DEFAULT_YOLO_OUTPUT_DIR
89
+ )
90
+
91
+ processed_clips = football_detector.process_all_segments(max_clips=max_clips)
92
+
93
+ # Create mapping from original clips to YOLO processed clips
94
+ for original_clip in clips:
95
+ yolo_clip = football_detector.get_processed_clip_path(original_clip)
96
+ if yolo_clip:
97
+ yolo_clips_map[original_clip] = yolo_clip
98
+
99
+ # Use YOLO processed clips for video classification
100
+ clips = [yolo_clips_map.get(clip, clip) for clip in clips]
101
+
102
+ print(f"✓ YOLO preprocessing complete: {len(processed_clips)} clips processed")
103
+ else:
104
+ print(f"⚠️ YOLO preprocessing skipped: not processing segments directory")
105
+ print(f" Current input directory: {input_dir}")
106
+ print(f" YOLO preprocessing only works with '{DEFAULT_SEGMENTS_DIR}' directory")
107
 
108
  classification_results = {}
109
  transcript_results = {}
 
231
  print("=" * 60)
232
  print("Processing all audio files in batch...")
233
 
234
+ # Use original clips for audio transcription (not YOLO processed)
235
+ audio_clips = original_clips if use_yolo else clips
236
+
237
+ for i, clip in enumerate(audio_clips, 1):
238
  clip_name = os.path.basename(clip)
239
+ print(f"\n[{i}/{len(audio_clips)}] Transcribing audio: {clip_name}")
240
 
241
  try:
242
  transcript = transcribe_clip(clip)
 
250
  transcript_results[clip_name] = ""
251
 
252
  # Write incremental results after every N clips or at the end
253
+ if i % AUDIO_SAVE_INTERVAL == 0 or i == len(audio_clips):
254
  try:
255
  with open(transcript_file, 'w') as f:
256
  json.dump(transcript_results, f, indent=2)
 
261
  print(f"\n��� PHASE 2 COMPLETE - AUDIO TRANSCRIPTION")
262
  print("=" * 60)
263
  transcribed_clips = len([t for t in transcript_results.values() if t.strip()])
264
+ print(f" Clips with transcripts: {transcribed_clips}/{len(audio_clips)}")
265
  print(f" ✓ Transcripts saved to {transcript_file}")
266
+ if use_yolo:
267
+ print(f" ℹ️ Audio processed from original clips (not YOLO-annotated)")
268
  else:
269
  print(f"\n⏭️ PHASE 2 SKIPPED - Audio transcription disabled")
270
  print("=" * 60)
 
285
  "video_processed": len(clips),
286
  "audio_processed": len(transcript_results) if not skip_audio else 0,
287
  "play_boundaries": len(boundaries),
288
+ "yolo_processed": len(yolo_clips_map) if use_yolo else 0,
289
  "processing_time_saved": "~85% faster" if skip_audio else "full processing"
290
  }
291
 
292
 
293
  if __name__ == "__main__":
294
  parser = argparse.ArgumentParser(description='NFL Play Detection Pipeline - Optimized for continuous processing')
295
+ parser.add_argument('--input-dir', default=DEFAULT_SEGMENTS_DIR, help=f'Directory containing video clips (default: {DEFAULT_SEGMENTS_DIR})')
296
  parser.add_argument('--video-only', action='store_true', help='Process only video classification (85%% faster)')
297
  parser.add_argument('--audio-only', action='store_true', help='Process only audio transcription (requires existing classification.json)')
298
+ parser.add_argument('--use-yolo', action='store_true', help='Force enable YOLOv11 object detection preprocessing')
299
+ parser.add_argument('--no-yolo', action='store_true', help='Disable YOLOv11 preprocessing (overrides auto-enable for segments)')
300
  parser.add_argument('--max-clips', type=int, help='Limit processing to first N clips (for testing)')
301
  parser.add_argument('--classification-file', default=DEFAULT_CLASSIFICATION_FILE, help='Video classification output file')
302
  parser.add_argument('--transcript-file', default=DEFAULT_TRANSCRIPT_FILE, help='Audio transcript output file')
 
319
  try:
320
  with open(args.classification_file, 'r') as f:
321
  classification_data = json.load(f)
322
+
323
+ # For audio-only mode, always use original clips (not YOLO processed)
324
+ clips = []
325
+ for clip_name in classification_data.keys():
326
+ if clip_name.endswith('_yolo.mov') or clip_name.endswith('_yolo.mp4'):
327
+ # Remove _yolo suffix to get original clip name
328
+ original_name = clip_name.replace('_yolo.mov', '.mov').replace('_yolo.mp4', '.mp4')
329
+ original_path = os.path.join(args.input_dir, original_name)
330
+ if os.path.exists(original_path):
331
+ clips.append(original_path)
332
+ else:
333
+ print(f"[WARN] Original clip not found for {clip_name}, using processed version")
334
+ clips.append(os.path.join(args.input_dir, clip_name))
335
+ else:
336
+ # Use clip as-is
337
+ clips.append(os.path.join(args.input_dir, clip_name))
338
 
339
  # Limit clips for testing if specified
340
  if args.max_clips and args.max_clips > 0:
 
342
  print(f"🧪 TESTING MODE: Limited to first {len(clips)} clips")
343
  else:
344
  print(f"Found {len(clips)} clips from existing classification data")
345
+
346
+ print(f"ℹ️ Audio processing will use original clips (not YOLO-processed)")
347
  except Exception as e:
348
  print(f"[ERROR] Failed to load classification file: {e}")
349
  exit(1)
 
383
  skip_audio = args.video_only
384
  start_time = time.time()
385
 
386
+ # Determine YOLO usage: explicit flags override auto-detection
387
+ if args.no_yolo:
388
+ use_yolo_setting = False
389
+ elif args.use_yolo:
390
+ use_yolo_setting = True
391
+ else:
392
+ use_yolo_setting = None # Let main() auto-detect based on directory
393
+
394
  if skip_audio:
395
  print("🚀 VIDEO-ONLY MODE: Fast video classification and play analysis")
396
  print("=" * 70)
 
404
  transcript_file=args.transcript_file,
405
  play_analysis_file=args.play_analysis_file,
406
  skip_audio=skip_audio,
407
+ max_clips=args.max_clips,
408
+ use_yolo=use_yolo_setting
409
  )
410
 
411
  elapsed = time.time() - start_time
speed_test.py CHANGED
@@ -7,6 +7,7 @@ import time
7
  import os
8
  import glob
9
  from inference import predict_clip, transcribe_clip, analyze_play_state
 
10
 
11
  def test_single_clip_speed(clip_path: str, num_runs: int = 5):
12
  """Test speed of processing a single clip multiple times"""
@@ -53,7 +54,7 @@ def test_single_clip_speed(clip_path: str, num_runs: int = 5):
53
 
54
  return avg_video, avg_audio, avg_total
55
 
56
- def test_batch_speed(input_dir: str = "data", max_clips: int = 10):
57
  """Test speed of batch processing"""
58
  print(f"\n=== Batch Processing Speed Test ===")
59
 
@@ -101,7 +102,7 @@ def test_batch_speed(input_dir: str = "data", max_clips: int = 10):
101
 
102
  return total_time, avg_clip_time
103
 
104
- def test_pipeline_modes(input_dir: str = "data", max_clips: int = 5):
105
  """Compare different pipeline processing modes"""
106
  print(f"\n=== Pipeline Mode Comparison ===")
107
 
 
7
  import os
8
  import glob
9
  from inference import predict_clip, transcribe_clip, analyze_play_state
10
+ from config import DEFAULT_DATA_DIR
11
 
12
  def test_single_clip_speed(clip_path: str, num_runs: int = 5):
13
  """Test speed of processing a single clip multiple times"""
 
54
 
55
  return avg_video, avg_audio, avg_total
56
 
57
+ def test_batch_speed(input_dir: str = DEFAULT_DATA_DIR, max_clips: int = 10):
58
  """Test speed of batch processing"""
59
  print(f"\n=== Batch Processing Speed Test ===")
60
 
 
102
 
103
  return total_time, avg_clip_time
104
 
105
+ def test_pipeline_modes(input_dir: str = DEFAULT_DATA_DIR, max_clips: int = 5):
106
  """Compare different pipeline processing modes"""
107
  print(f"\n=== Pipeline Mode Comparison ===")
108
 
video.py CHANGED
@@ -27,7 +27,7 @@ from config import (
27
  KINETICS_LABELS_URL, KINETICS_LABELS_PATH, VIDEO_MEAN, VIDEO_STD,
28
  PLAY_CONFIDENCE_THRESHOLD, PLAY_BOUNDARY_WINDOW_SIZE,
29
  PLAY_START_INDICATORS, PLAY_ACTION_INDICATORS, NON_PLAY_INDICATORS,
30
- ENABLE_DEBUG_PRINTS, ENABLE_FRAME_SHAPE_DEBUG
31
  )
32
 
33
 
@@ -61,11 +61,22 @@ class VideoClassifier:
61
  if ENABLE_DEBUG_PRINTS:
62
  print(f"Loading X3D model: {self.model_name}")
63
 
64
- self.model = torch.hub.load(
65
- "facebookresearch/pytorchvideo",
66
- self.model_name,
67
- pretrained=True
68
- ).to(self.device).eval()
 
 
 
 
 
 
 
 
 
 
 
69
 
70
  if ENABLE_DEBUG_PRINTS:
71
  print(f"Model loaded successfully on {self.device}")
 
27
  KINETICS_LABELS_URL, KINETICS_LABELS_PATH, VIDEO_MEAN, VIDEO_STD,
28
  PLAY_CONFIDENCE_THRESHOLD, PLAY_BOUNDARY_WINDOW_SIZE,
29
  PLAY_START_INDICATORS, PLAY_ACTION_INDICATORS, NON_PLAY_INDICATORS,
30
+ ENABLE_DEBUG_PRINTS, ENABLE_FRAME_SHAPE_DEBUG, TORCH_HUB_CACHE_DIR
31
  )
32
 
33
 
 
61
  if ENABLE_DEBUG_PRINTS:
62
  print(f"Loading X3D model: {self.model_name}")
63
 
64
+ # Set torch hub cache directory if configured
65
+ original_cache_dir = None
66
+ if TORCH_HUB_CACHE_DIR:
67
+ original_cache_dir = torch.hub.get_dir()
68
+ torch.hub.set_dir(TORCH_HUB_CACHE_DIR)
69
+
70
+ try:
71
+ self.model = torch.hub.load(
72
+ "facebookresearch/pytorchvideo",
73
+ self.model_name,
74
+ pretrained=True
75
+ ).to(self.device).eval()
76
+ finally:
77
+ # Restore original cache directory if it was changed
78
+ if original_cache_dir is not None:
79
+ torch.hub.set_dir(original_cache_dir)
80
 
81
  if ENABLE_DEBUG_PRINTS:
82
  print(f"Model loaded successfully on {self.device}")
yolo_processor.py ADDED
@@ -0,0 +1,327 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ YOLO11 Football Object Detection and Video Preprocessing Module.
3
+
4
+ This module integrates YOLOv11-based object detection into the NFL play detection pipeline.
5
+ It processes raw video clips to add bounding box annotations for football players, balls,
6
+ and other sports objects before video classification.
7
+
8
+ Key Components:
9
+ - YOLOProcessor: Main class for YOLO-based video preprocessing
10
+ - FootballDetector: Football-specific object detection functionality
11
+ - VideoAnnotator: Video annotation and output management
12
+
13
+ Integration Flow:
14
+ 1. Raw clips in /segments/ are processed by YOLO11
15
+ 2. Annotated clips are saved to /segments/yolo/
16
+ 3. Video classification uses annotated clips
17
+ 4. Audio transcription continues to use original clips
18
+ """
19
+
20
+ import os
21
+ import shutil
22
+ import tempfile
23
+ import subprocess
24
+ import glob
25
+ from typing import Optional, Tuple, List
26
+ from pathlib import Path
27
+
28
+ from ultralytics import YOLO
29
+ from huggingface_hub import hf_hub_download
30
+
31
+ from config import (
32
+ ENABLE_DEBUG_PRINTS, DEFAULT_SEGMENTS_DIR, DEFAULT_YOLO_OUTPUT_DIR,
33
+ DEFAULT_TEMP_DIR, HUGGINGFACE_CACHE_DIR
34
+ )
35
+
36
+
37
+ class YOLOProcessor:
38
+ """
39
+ YOLOv11-based video processor for football object detection.
40
+
41
+ Downloads and manages YOLOv11 models, processes video clips to add
42
+ object detection annotations, and manages output directories.
43
+ """
44
+
45
+ def __init__(self, model_size: str = "nano", confidence_threshold: float = 0.25):
46
+ """
47
+ Initialize YOLO processor.
48
+
49
+ Args:
50
+ model_size: YOLO model size (nano, small, medium, large, xlarge)
51
+ confidence_threshold: Detection confidence threshold
52
+ """
53
+ self.model_size = model_size
54
+ self.confidence_threshold = confidence_threshold
55
+ self.model = None
56
+ self._load_model()
57
+
58
+ def _load_model(self) -> None:
59
+ """Download and load YOLOv11 model."""
60
+ model_filename = f"yolo11{self.model_size[0]}.pt" # nano -> yolo11n.pt
61
+
62
+ if ENABLE_DEBUG_PRINTS:
63
+ print(f"Loading YOLOv11 model: {model_filename}")
64
+
65
+ try:
66
+ # Set cache directory if configured
67
+ download_kwargs = {
68
+ "repo_id": "Ultralytics/YOLO11",
69
+ "filename": model_filename,
70
+ "repo_type": "model"
71
+ }
72
+ if HUGGINGFACE_CACHE_DIR:
73
+ download_kwargs["cache_dir"] = HUGGINGFACE_CACHE_DIR
74
+
75
+ model_path = hf_hub_download(**download_kwargs)
76
+ self.model = YOLO(model_path)
77
+
78
+ if ENABLE_DEBUG_PRINTS:
79
+ print(f"YOLOv11 model loaded successfully from {model_path}")
80
+
81
+ except Exception as e:
82
+ print(f"[ERROR] Failed to load YOLOv11 model: {e}")
83
+ raise
84
+
85
+ def process_clip(self, input_path: str, output_dir: str) -> Optional[str]:
86
+ """
87
+ Process a single video clip with YOLO object detection.
88
+
89
+ Args:
90
+ input_path: Path to input video clip
91
+ output_dir: Directory for output annotated clip
92
+
93
+ Returns:
94
+ Path to annotated clip with audio, or None if processing failed
95
+ """
96
+ if not os.path.exists(input_path):
97
+ print(f"[ERROR] Input video not found: {input_path}")
98
+ return None
99
+
100
+ # Create output directory if it doesn't exist
101
+ os.makedirs(output_dir, exist_ok=True)
102
+
103
+ # Create temporary directory for processing
104
+ temp_dir = DEFAULT_TEMP_DIR if DEFAULT_TEMP_DIR else None
105
+ with tempfile.TemporaryDirectory(dir=temp_dir) as tmp_dir:
106
+ try:
107
+ return self._process_in_temp_dir(input_path, output_dir, tmp_dir)
108
+ except Exception as e:
109
+ print(f"[ERROR] Failed to process {input_path}: {e}")
110
+ return None
111
+
112
+ def _process_in_temp_dir(self, input_path: str, output_dir: str, tmp_dir: str) -> str:
113
+ """Process video in temporary directory and return final output path."""
114
+ base_name = os.path.basename(input_path)
115
+ name_without_ext = os.path.splitext(base_name)[0]
116
+ _, ext = os.path.splitext(base_name)
117
+
118
+ # Stage input file in temp directory
119
+ temp_input = os.path.join(tmp_dir, base_name)
120
+ shutil.copy(input_path, temp_input)
121
+
122
+ # Run YOLO inference
123
+ if ENABLE_DEBUG_PRINTS:
124
+ print(f"Running YOLO inference on {base_name}")
125
+
126
+ self.model.predict(
127
+ source=temp_input,
128
+ imgsz=640,
129
+ conf=self.confidence_threshold,
130
+ save=True,
131
+ project=tmp_dir,
132
+ name="yolo_out",
133
+ exist_ok=True,
134
+ verbose=False # Reduce YOLO output noise
135
+ )
136
+
137
+ # Find the annotated output
138
+ yolo_out_dir = os.path.join(tmp_dir, "yolo_out")
139
+ annotated_files = glob.glob(os.path.join(yolo_out_dir, "*"))
140
+
141
+ if not annotated_files:
142
+ raise FileNotFoundError(f"No YOLO output found in {yolo_out_dir}")
143
+
144
+ # Get the largest file (should be the annotated video)
145
+ annotated_video = max(annotated_files, key=lambda f: os.path.getsize(f))
146
+
147
+ # Create final output path
148
+ final_output = os.path.join(output_dir, f"{name_without_ext}_yolo{ext}")
149
+
150
+ # Mux original audio with annotated video using FFmpeg
151
+ self._mux_audio(annotated_video, input_path, final_output)
152
+
153
+ if ENABLE_DEBUG_PRINTS:
154
+ print(f"YOLO processing complete: {final_output}")
155
+
156
+ return final_output
157
+
158
+ def _mux_audio(self, video_path: str, audio_source: str, output_path: str) -> None:
159
+ """
160
+ Combine annotated video with original audio using FFmpeg.
161
+
162
+ Args:
163
+ video_path: Path to annotated video (without audio)
164
+ audio_source: Path to original video (with audio)
165
+ output_path: Path for final output with both video and audio
166
+ """
167
+ cmd = [
168
+ "ffmpeg", "-y", # Overwrite output file
169
+ "-i", video_path, # Annotated video input
170
+ "-i", audio_source, # Original audio source
171
+ "-map", "0:v:0", # Map video from first input
172
+ "-map", "1:a:0", # Map audio from second input
173
+ "-c:v", "copy", # Copy video without re-encoding
174
+ "-c:a", "copy", # Copy audio without re-encoding
175
+ output_path
176
+ ]
177
+
178
+ try:
179
+ subprocess.run(
180
+ cmd,
181
+ check=True,
182
+ stdout=subprocess.DEVNULL,
183
+ stderr=subprocess.DEVNULL
184
+ )
185
+ except subprocess.CalledProcessError as e:
186
+ raise RuntimeError(f"FFmpeg audio muxing failed: {e}")
187
+
188
+
189
+ class FootballDetector:
190
+ """
191
+ High-level interface for football-specific object detection pipeline.
192
+
193
+ Manages the integration between raw video clips and the NFL play detection
194
+ system by preprocessing clips with YOLO object detection.
195
+ """
196
+
197
+ def __init__(self,
198
+ segments_dir: str = DEFAULT_SEGMENTS_DIR,
199
+ yolo_output_dir: str = DEFAULT_YOLO_OUTPUT_DIR,
200
+ model_size: str = "nano",
201
+ confidence: float = 0.25):
202
+ """
203
+ Initialize football detector.
204
+
205
+ Args:
206
+ segments_dir: Directory containing raw video segments
207
+ yolo_output_dir: Directory for YOLO-processed clips
208
+ model_size: YOLO model size for detection
209
+ confidence: Detection confidence threshold
210
+ """
211
+ self.segments_dir = segments_dir
212
+ self.yolo_output_dir = yolo_output_dir
213
+ self.processor = YOLOProcessor(model_size=model_size, confidence_threshold=confidence)
214
+
215
+ # Ensure output directory exists
216
+ os.makedirs(self.yolo_output_dir, exist_ok=True)
217
+
218
+ def process_all_segments(self, max_clips: Optional[int] = None) -> List[str]:
219
+ """
220
+ Process all video segments in the segments directory.
221
+
222
+ Args:
223
+ max_clips: Maximum number of clips to process (for testing)
224
+
225
+ Returns:
226
+ List of paths to processed YOLO clips
227
+ """
228
+ # Find all video files in segments directory
229
+ video_patterns = ["*.mov", "*.mp4"]
230
+ video_files = []
231
+
232
+ for pattern in video_patterns:
233
+ video_files.extend(glob.glob(os.path.join(self.segments_dir, pattern)))
234
+
235
+ video_files = sorted(video_files)
236
+
237
+ if max_clips:
238
+ video_files = video_files[:max_clips]
239
+
240
+ if not video_files:
241
+ print(f"No video files found in {self.segments_dir}")
242
+ return []
243
+
244
+ print(f"🎯 YOLO PREPROCESSING: Processing {len(video_files)} clips")
245
+ print("=" * 60)
246
+
247
+ processed_clips = []
248
+
249
+ for i, video_path in enumerate(video_files, 1):
250
+ clip_name = os.path.basename(video_path)
251
+ print(f"[{i}/{len(video_files)}] Processing: {clip_name}")
252
+
253
+ # Check if already processed
254
+ name_without_ext = os.path.splitext(clip_name)[0]
255
+ _, ext = os.path.splitext(clip_name)
256
+ expected_output = os.path.join(self.yolo_output_dir, f"{name_without_ext}_yolo{ext}")
257
+
258
+ if os.path.exists(expected_output):
259
+ print(f" ✓ Already processed: {expected_output}")
260
+ processed_clips.append(expected_output)
261
+ continue
262
+
263
+ # Process with YOLO
264
+ output_path = self.processor.process_clip(video_path, self.yolo_output_dir)
265
+
266
+ if output_path:
267
+ processed_clips.append(output_path)
268
+ print(f" ✓ YOLO annotations added: {os.path.basename(output_path)}")
269
+ else:
270
+ print(f" ✗ Processing failed for {clip_name}")
271
+
272
+ print(f"\n🎯 YOLO PREPROCESSING COMPLETE")
273
+ print(f" Processed clips: {len(processed_clips)}")
274
+ print(f" Output directory: {self.yolo_output_dir}")
275
+
276
+ return processed_clips
277
+
278
+ def get_processed_clip_path(self, original_clip_path: str) -> Optional[str]:
279
+ """
280
+ Get the path to the YOLO-processed version of a clip.
281
+
282
+ Args:
283
+ original_clip_path: Path to original clip
284
+
285
+ Returns:
286
+ Path to YOLO-processed clip, or None if not found
287
+ """
288
+ clip_name = os.path.basename(original_clip_path)
289
+ name_without_ext = os.path.splitext(clip_name)[0]
290
+ _, ext = os.path.splitext(clip_name)
291
+
292
+ yolo_clip_path = os.path.join(self.yolo_output_dir, f"{name_without_ext}_yolo{ext}")
293
+
294
+ return yolo_clip_path if os.path.exists(yolo_clip_path) else None
295
+
296
+
297
+ # ============================================================================
298
+ # CONVENIENCE FUNCTIONS
299
+ # ============================================================================
300
+
301
+ def preprocess_segments_with_yolo(segments_dir: str = DEFAULT_SEGMENTS_DIR,
302
+ max_clips: Optional[int] = None) -> List[str]:
303
+ """
304
+ Convenience function to preprocess all segments with YOLO detection.
305
+
306
+ Args:
307
+ segments_dir: Directory containing video segments
308
+ max_clips: Maximum clips to process (for testing)
309
+
310
+ Returns:
311
+ List of paths to YOLO-processed clips
312
+ """
313
+ detector = FootballDetector(segments_dir=segments_dir)
314
+ return detector.process_all_segments(max_clips=max_clips)
315
+
316
+ def get_yolo_clip_for_original(original_path: str) -> Optional[str]:
317
+ """
318
+ Get YOLO-processed version of an original clip.
319
+
320
+ Args:
321
+ original_path: Path to original clip
322
+
323
+ Returns:
324
+ Path to YOLO-processed clip or None
325
+ """
326
+ detector = FootballDetector()
327
+ return detector.get_processed_clip_path(original_path)