Skip to main content

Package d'analyse des touches de balle au football

Project description

FootAP

FootAP (FOOTball Analysis Package) is a Python package for analyzing ball touches in football videos.

Installation

pip install footap

Usage

You can use FootAP in two ways:

1. Command Line Interface

The simplest way to use FootAP is through the command line:

# Basic analysis (generates only results file)
footap video.mp4

# Analysis with real-time display
footap video.mp4 --display

# Analysis with video output
footap video.mp4 --save-video

# Full analysis with all options
footap video.mp4 --save-video -o output.mp4 -r results.txt --orientation 90 --display

Available options:

  • --save-video: Generate an annotated output video
  • --display: Show real-time processing
  • -o, --output: Specify output video name (only with --save-video)
  • -r, --results: Specify results file name
  • --orientation: Video orientation in degrees (0, 90, 180, 270)

2. Python API

from footap import analyze_ball_touch

# Basic analysis
analyze_ball_touch("video.mp4")

# Full analysis with all options
analyze_ball_touch(
    input_video_path="video.mp4",
    display_processing=True,    # Show real-time processing
    generate_video=True,        # Generate output video
    video_orientation=90        # Rotate video if needed
)

Output

The program generates:

  1. Results file (always generated):

    Left Foot Touches: 5
    Right Foot Touches: 12
    
    Touch Sequence:
    Touch 1: Right
    Touch 2: Left
    Touch 3: Right
    ...
    
  2. Annotated video (optional, with --save-video):

    • Ball detection
    • Feet tracking
    • Real-time touch counter

Dependencies

  • OpenCV (opencv-contrib-python)
  • MediaPipe
  • NumPy
  • Ultralytics (YOLO)
  • Pillow

License

This project is licensed under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

footap-1.0.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

footap-1.0-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file footap-1.0.tar.gz.

File metadata

  • Download URL: footap-1.0.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.0

File hashes

Hashes for footap-1.0.tar.gz
Algorithm Hash digest
SHA256 fce8b5bc75989d07effe5ecfb797833d2b35a499cb6195cc82d19ef646b4f10c
MD5 93b1210cca775509ffd2c2a4b6d080c3
BLAKE2b-256 0d8756c25961e5007c48f7e179e5b3c7e535312c211b341e073847127f580e0a

See more details on using hashes here.

File details

Details for the file footap-1.0-py3-none-any.whl.

File metadata

  • Download URL: footap-1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.0

File hashes

Hashes for footap-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 069f843b41466a221ae349b9bdf269bd3ce5624b26850c1fa1f8a77d489546c7
MD5 1cbbfe8f32853d4d62594ee0ea5a3034
BLAKE2b-256 58ff5f900c0ee282257fc2f948d1949f785d2b1110108ee5ce9c1d417c24ad22

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page