You are browsing as a guest. Sign up (or log in) to start making projects!

Yolo_baseball_track

  • 5 Devlogs
  • 15 Total hours

The project is designed to imitate MLB's Statcast and ABS systems. It's also built to analyze baseball trajectory.

Ship #1 Changes requested

This project specializes in detecting baseballs in high-resolution and high-speed pitching videos, recognizing pitcher arm-swing release points, tracking motion trajectories, and reconstructing 3D WebGL spatial visualizations. Because a baseball occupies only a tiny pixel region (often just a dozen pixels) and moves at extremely high speeds, traditional object detectors suffer from missed detections, background interference, or fragmented trajectories.

  • 5 devlogs
  • 15h
Try project → See source code →
Open comments for this post

7h 1m 56s logged

Gemini help me build a data visualization website.

  • It can import .csv tracking data and show the trajectory of the baseball analyed by yolo model.
  • Users can upload their own baseball pitching video on the website. They can also download the result video which includes the small trajectory window in the bottom-right.
0
0
6
Open comments for this post

5h 41m 42s logged

To overcome the challenge of detecting small baseballs against complex backgrounds (pitcher’s mound, crowd, grass), run.py implements the following pre-processing techniques:

  • Dynamic Image Sharpening: Calculates difference maps via Gaussian Blur and addWeighted to sharpen localized high-frequency edge features of fast-moving baseballs.
  • MOG2 Background Subtraction & Sky ROI Mask (Optional): Utilizes BackgroundSubtractorMOG2 to extract dynamic foregrounds and sky masks for background noise suppression.
  • Dynamic Local ROI Cropping: When a ball is detected in the previous frame, the subsequent frame dynamically crops a 500×500 pixel window centered at the ball’s coordinates for YOLO inference. If the trajectory is lost for over 30 consecutive frames, it resets to default initial bounds, dramatically accelerating inference speed and eliminating background false positives.
0
0
4

Delete project?

Are you sure you want to permanently delete this project? This action cannot be undone.

All devlogs, followers, and associated data will be removed.

Followers

Loading…