A humble image tracking code
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.ndarrayof 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}
}
Metadata
Release files for tracking-markers 0.12.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| tracking_markers-0.12.0.tar.gz | 8.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tracking_markers-0.12.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.4 kB
Release files / tracking_markers-0.12.0.tar.gz
| Download URL | tracking_markers-0.12.0.tar.gz |
|---|---|
| Size | 8.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
377a3066d4f757ad8c7053c070c9a4cce65371c680bdd335a63897486d578a59
|
|
BLAKE2b-256 checksum How to use checksums |
8deabf48da35b059953a8d523f9cbca9715a54bda7d99ed63f5652607dc32290
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Release files / tracking_markers-0.12.0-py3-none-any.whl
| Download URL | tracking_markers-0.12.0-py3-none-any.whl |
|---|---|
| Size | 10.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
139e76eedad7e571217376ff9a8dff636c75c8edf1b170a89679f88f3764cc66
|
|
BLAKE2b-256 checksum How to use checksums |
925082f832721adf4bfd6dc97d29e6ef01dc45f3a477b62d279b00bdcb1f8324
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Security for tracking-markers 0.12.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.