Skip to content

About

Golf ball detection and tracking using Faster R-CNN (Detecto/PyTorch). Fine-tuned on a custom dataset with bounding box predictions and heatmap visualizations. Originally run on Google Colab for an IdeasLab interview project.

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

Repository files navigation

Golf Ball Detection (Colab Run Documentation)

This project documents a golf ball detection workflow using the Detecto library. Detecto is built on top of PyTorch and uses the Faster R-CNN model as its core architecture for object detection.

Project Background

This project was prepared as part of an interview process for IdeasLab. Before the interview process finished, I accepted an offer from another company. Even so, I still completed this project and submitted it to IdeasLab.

Dataset Note

The datasets used in this project were provided directly by IdeasLab. Because of that, the dataset files are not included and cannot be publicly shared in this repository.

Features

  • Object Detection: Detects golf balls in images using a pre-trained Faster R-CNN model.

  • Custom Training: Fine-tuning the model with a custom dataset of golf ball images.

Code Description

The notebook follows a simple end-to-end pipeline:

  1. Prepare and extract detection/tracking datasets.
  2. Convert XML annotations into CSV format.
  3. Build datasets/loaders and train or load the Detecto model.
  4. Run predictions and visualize results with bounding boxes and heatmaps.
  5. Evaluate tracking sequences and export summary GIF/JPG outputs.

Sample Results

Below are examples of the golf ball detection tested on the testing datasets. Each row contains three images:

  1. Original Image: The input image.
  2. Detection with Bounding Box: The output image showing the detected golf balls with bounding boxes.
  3. Heatmap: A visualization using a heatmap to indicate the detected golf ball(s).

Golf Ball Detection Example 1 Golf Ball Detection Example 1 Golf Ball Detection Example 1 Golf Ball Detection Example 1 Golf Ball Detection Example 1 Golf Ball Detection Example 1 Golf Ball Detection Example 1 Golf Ball Detection Example 1 Golf Ball Detection Example 1 Golf Ball Detection Example 1 Golf Ball Detection Example 1 Golf Ball Detection Example 1 Golf Ball Detection Example 1 Golf Ball Detection Example 1 Golf Ball Detection Example 1 Golf Ball Detection Example 1

About

Golf ball detection and tracking using Faster R-CNN (Detecto/PyTorch). Fine-tuned on a custom dataset with bounding box predictions and heatmap visualizations. Originally run on Google Colab for an IdeasLab interview project.

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages