Skip to main content

A humble image tracking code

Project description

A humble image tracking code

Made with Python PyPI - Python Version PyPI PyPI - Wheel Pepy Total Downloads GitHub license Badge

This is a humble image tracking code. It is humble because it does what it can.

Why

Unlike typical tracking software, this code does not require any physical markers to be placed in the scene. It can track arbitrary high-contrast points in the video. The points to be tracked act as virtual markers that are manually selected by the user or loaded from a file. This makes it suitable for tracking points in videos where placing physical markers is not possible or practical.

Installation

Intall latest version directly from PyPI with

pip install tracking-markers

Or install from this repository (assuming your ssh keys are set up in your GitHub account) with

pip install git+ssh://git@github.com/bertoldi-collab/tracking-markers.git@main

Or clone the repository and install with

git clone git@github.com:bertoldi-collab/tracking-markers.git
cd tracking-markers
pip install -e .

How to use

CLI

Run in a terminal

tracking-markers path/to/video.mp4

See tracking-markers --help for more info on all the options.

Python

The main module is tracking_points.py defining the track_points(...) function that actually does the tracking of a given video and the function select_markers(...) that allows for the manual selection of markers. These functions can be used independently. The file tracking_points.py can also be used as a script.

Additional info

  • It is based on the OpenCV library.
  • Allows for markers to be manually selected or an np.ndarray of markers can be loaded from a file.
  • Works best on high-contrast videos.

Development

This project uses uv for dependency management and builds.

uv sync            # create the virtual environment and install dependencies
uv run pytest      # run the test suite
uv build           # build the sdist and wheel into dist/
uv publish         # publish to PyPI

Citation

If you use this code in your research or any other work, please cite it as follows:

@misc{bordiga2023humble,
    title        = {A humble image tracking code},
    author       = {Bordiga, Giovanni},
    year         = {2023},
    howpublished = {\url{https://github.com/bertoldi-collab/tracking-markers}},
    note         = {Bertoldi Group}
}

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

tracking_markers-0.11.0.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

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

tracking_markers-0.11.0-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file tracking_markers-0.11.0.tar.gz.

File metadata

  • Download URL: tracking_markers-0.11.0.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.18 {"installer":{"name":"uv","version":"0.11.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for tracking_markers-0.11.0.tar.gz
Algorithm Hash digest
SHA256 37183a37b8434664090e7ee1617e3201624f802e4ddb2eb7b92289212e96e8e4
MD5 eacdc5524dab5f8d6c1367520cbf24c5
BLAKE2b-256 61db95c287cb257a4dd202e5adb523a493762f6d52d38d8f0f57d10308944076

See more details on using hashes here.

File details

Details for the file tracking_markers-0.11.0-py3-none-any.whl.

File metadata

  • Download URL: tracking_markers-0.11.0-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.18 {"installer":{"name":"uv","version":"0.11.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for tracking_markers-0.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 270ee48f5deed6f0f4b58561f8a82c9578a0fb3afc2e7d4102b14ae8e8f66109
MD5 b4b9610878076ddfcf1eb526ae88453e
BLAKE2b-256 ee3e116675e5c34722533b36d15972b9091d600d501b5c9cfca5e9c1aad42f64

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