A humble image tracking code
Project description
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 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 the manual selection of markers.
These functions can be used independently.
The file tracking_points.py can also be used as a script.
Some 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.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tracking_markers-0.8.0.tar.gz.
File metadata
- Download URL: tracking_markers-0.8.0.tar.gz
- Upload date:
- Size: 7.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.1 CPython/3.12.3 Linux/6.14.0-37-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5fdbd88ce58f6ac0ff2db4384d24a9813e1c40ac809ce3cd9872ce2b5a933b5a
|
|
| MD5 |
fe09a8ed713ee4da148a07b8c435d494
|
|
| BLAKE2b-256 |
fb4fd91e913b33ee007061838dc706284f1f7efbba47f77c20a4033984d992cf
|
File details
Details for the file tracking_markers-0.8.0-py3-none-any.whl.
File metadata
- Download URL: tracking_markers-0.8.0-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.1 CPython/3.12.3 Linux/6.14.0-37-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ddea23d89fd12dd30d392bb34b3986e9af77a29fa1c47f679d1bff2461ec8d0
|
|
| MD5 |
61dfe2ef49b4eefea6f8326f46d30418
|
|
| BLAKE2b-256 |
ca1924f4e4fec45aace2e7280cbe0b57376503052446a7ffa68ac4023e546aad
|