Player Detection Script

Introduction

This Python script, player_detection.py, is designed for detecting players in images using computer vision techniques. It utilizes OpenCV, a powerful library for image processing and computer vision tasks. The script contains functions for applying horizontal dilation and Sobel gradient methods to process images and detect player-like features.

Requirements

Python 3.8 OpenCV NumPy

Installation

To use this script, you need to have Python installed on your system. Additionally, you will need the OpenCV and NumPy libraries. You can install these libraries using pip:

pip3 install opencv-python numpy

Usage

After installing the required libraries, you can run the script as follows:

python3 player_detection.py