Thank you for your interest in contributing to the Trackers library! Your help—whether it’s fixing bugs, improving documentation, or adding new algorithms—is essential to the success of the project. We’re building this library with the goal of making state-of-the-art object tracking accessible under a fully open license.
- How to Contribute
- CLA Signing
- Clean Room Requirements
- Google-Style Docstrings and Type Hints
- Reporting Bugs
- License
Contributions come in many forms: improving features, fixing bugs, suggesting ideas, improving documentation, or adding new tracking methods. Here’s a high-level overview to get you started:
-
Fork the Repository: Click the “Fork” button on our GitHub page to create your own copy.
-
Clone Locally: Download your fork to your local development environment.
-
Create a Branch: Use a descriptive name to create a new branch:
git checkout -b feature/your-descriptive-name
-
Develop Your Changes: Make your updates, ensuring your commit messages clearly describe your modifications.
-
Commit and Push: Run:
git add . git commit -m "A brief description of your changes" git push -u origin your-descriptive-name
-
Open a Pull Request: Submit your pull request against the main development branch. Please detail your changes and link any related issues.
Before merging, check that all tests pass and that your changes adhere to our development and documentation standards.
In order to maintain the integrity of our project, every pull request must include a signed Contributor License Agreement (CLA). This confirms that your contributions are properly licensed under our Apache 2.0 License. After opening your pull request, simply add a comment stating:
I have read the CLA Document and I sign the CLA.
This step is essential before any merge can occur.
Trackers package is developed under the Apache 2.0 license, which allows for wide adoption, commercial use, and integration with other open-source tools. However, many object tracking methods released alongside academic papers are published under more restrictive licenses (GPL, AGPL, etc.), which limit redistribution or usage in commercial contexts.
To ensure Trackers remains fully open and legally safe to use:
- All algorithms must be clean room re-implementations, meaning they are developed from scratch without referencing restricted source code.
- You must not copy, adapt, or even consult source code under restrictive licenses.
You can use the following as reference:
- The original academic papers that describe the algorithm.
- Existing implementations released under permissive open-source licenses (Apache 2.0, MIT, BSD, etc.).
If in doubt about whether a license is compatible, please ask before proceeding. By contributing to this project and signing the CLA, you confirm that your work complies with these guidelines and that you understand the importance of maintaining a clean licensing chain.
For clarity and maintainability, any new functions or classes must include Google-style docstrings and use Python type hints. Type hints are mandatory in all function definitions, ensuring explicit parameter and return type declarations. These docstrings should clearly explain parameters, return types, and provide usage examples when applicable.
For example:
def sample_function(param1: int, param2: int = 10) -> bool:
"""
Provides a brief description of function behavior.
Args:
param1 (int): Explanation of the first parameter.
param2 (int): Explanation of the second parameter, defaulting to 10.
Returns:
bool: True if the operation succeeds, otherwise False.
Examples:
>>> sample_function(5, 10)
True
"""
return param1 == param2Following this pattern helps ensure consistency throughout the codebase.
Bug reports are vital for continued improvement. When reporting an issue, please include a clear, minimal reproducible example that demonstrates the problem. Detailed bug reports assist us in swiftly diagnosing and addressing issues.
By contributing to Trackers, you agree that your contributions will be licensed under the Apache 2.0 License as specified in our LICENSE file.
Thank you for helping us build a reliable, open-source tracking library. We’re excited to collaborate with you!