imgmatch: Image Template Matching Tool
imgmatch is a command-line interface (CLI) tool designed for efficient template matching in images, making it a great asset for computer vision, digital forensics, and automated image analysis. It offers a streamlined approach to detect and analyze templates in a variety of image sizes and formats.
Key Features
- Multi-Scale Template Matching: Detects templates at multiple scales, providing thorough matching across diverse image dimensions.
- Rotation and Flip Detection: Capable of recognizing templates that are rotated or flipped, enhancing its effectiveness in complex imaging scenarios.
- Parallel Processing: Leverages multi-processing for speedy template matching, especially useful for processing large image datasets.
- Customizable Search Parameters: Allows adjustments of scale range, rotation angles, and confidence thresholds to meet specific requirements.
- User-Friendly Interface: Offers a simple and intuitive CLI, making it accessible for both beginners and experienced users. Clear documentation ensures ease of use.
- Python Integration: Built using Python and popular libraries like OpenCV and NumPy, ensuring robust and reliable performance.
Ideal Use Cases
- Suitable for computer vision professionals and enthusiasts.
- Useful for researchers and students in digital image processing and related fields.
- A tool for practitioners in digital forensics and content authentication.
- Applicable for automated quality inspection in manufacturing and industrial environments.
Getting Started
Installation
To install imgmatch, use the following command:
pipx install imgmatch
Usage
Run imgmatch on your desired image or directory of images:
imgmatch /path/to/image/or/directory --scale-start 0.5 --scale-end 2.1 --confidence 0.8 --num-processes 4
Customizing Parameters
You can customize the search parameters to fit your specific needs. Here are some of the options you can adjust:
- --scale-start: Starting scale (default is 0.5).
- --scale-end: Ending scale (default is 5.1).
- --confidence: Confidence threshold for template matching (default is 0.8).
- --num-processes: Number of processes for parallel execution (default is 6).
- --angle-start: Starting angle for rotation (default is 0).
- --angle-end: Ending angle for rotation (default is 360).
- --angle-step: Angle step for rotation (default is 90).
- --template: Path to template image (default is None).
- --output-dir: Path to output directory (default is current directory).
Contributing
Contributions to imgmatch are welcome! Whether it involves fixing bugs, improving documentation, or suggesting new features, we value your input.
License
imgmatch is released under the MIT License.
Metadata
Release files for imgmatch 0.1.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 | Actions |
|---|---|---|---|---|
| imgmatch-0.1.0.tar.gz | 4.6 kB | Without provenance | Details for imgmatch-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| imgmatch-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for imgmatch-0.1.0-py3-none-any.whl |
Total release size: 9.8 kB
Release files / imgmatch-0.1.0.tar.gz
| Download URL | imgmatch-0.1.0.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
43bb285cfb53f42bc392ee261f5a9d3e2696e8dff5f7c18192330278e58e1c94
|
|
BLAKE2b-256 checksum How to use checksums |
2c6c4d95bc96e3c3b5fddef6efc8162c9cc51d10e7b4da283f222a93ab431005
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.10.12 Darwin/23.1.0
|
Release files / imgmatch-0.1.0-py3-none-any.whl
| Download URL | imgmatch-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
981fa6ac3142c8ac0c97d29b9cd389f0a3804d757cd129422a6bf5bf210a54e4
|
|
BLAKE2b-256 checksum How to use checksums |
4eedf901bfef1b4f0be57f47b1be2e37b461ce2f1d9a6f3870fabb873c2267ae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.10.12 Darwin/23.1.0
|
Security for imgmatch 0.1.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.