Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

I built an open-source basketball highlight pipeline here's how I improved vertical framing from 49% to 94%

Описание и применение

Пользователь улучшил вертикальное кадрирование баскетбольных видео, увеличив попадание мяча в кадр с 49% до 94% с помощью специализированной модели YOLOv8, компенсации движения камеры и планирования кадра.

Задача

Standard basketball broadcasts are 16:9, but vertical short‑form videos are 9:16, causing important action such as the ball, players and rim to be cropped out.

Результат

Ball inside crop increased from 49% to 94%; rim visibility from 43% to 98%; backboard edge visibility from 32% to 96% in evaluated frames.

Рабочий процесс

  • Sample 256 frames from 32 NBA Finals highlights and label ball positions with Claude vision agents.
  • Replace generic detector with E‑BARD basketball‑trained YOLOv8n.
  • Apply a 0.10 confidence threshold and filter false positives using size, shape and position.
  • Use OpenCV cv2.phaseCorrelate to estimate camera motion and link ball detections into tracks.
  • Read scoreboard OCR to identify scoring moments.
  • Plan a crop path that pans with ball trajectory and rim visibility, avoiding continuous zoom.
  • Render 9:16 clips and measure ball and rim visibility against labeled moments.

Доказательства

In the rendered vertical clips, the first version kept the ball inside the crop in just 85 of 172 evaluated frames: 49%.

Источник

The new basketball pipeline is available in version 2.1.

Источник

Instead of building a detector from scratch, I integrated E-BARD's basketball-trained YOLOv8n detection model.

Источник

The results from the first version compared with the current version were: Ball inside the crop: 85 of 172 frames (49%) in the first version, compared with 162 of 172 (94%) now.

Источник

The pipeline still struggles with some close‑ups, free throws, replays and broadcasts with closer camera angles.

Источник

  • Дата записи: 2026-10-21T21:11:23.481Z