An open API service indexing awesome lists of open source software.

https://github.com/wentao-uw/ComfyUI-template-matching

Using rotation and scale invariant template matching in ComfyUI, find the target image mask within another image based on the target image.
https://github.com/wentao-uw/ComfyUI-template-matching

comfyui custom-nodes template-matching

Last synced: 4 months ago
JSON representation

Using rotation and scale invariant template matching in ComfyUI, find the target image mask within another image based on the target image.

Awesome Lists containing this project

README

        

# ComfyUI template matching

This project is a ComfyUI version of https://github.com/cozheyuanzhangde/Invariant-TemplateMatching.

![example](./docs/images/example1.png)

## Requirements

Please ensure that you have installed Python dependencies using the following command:
```
pip3 install -r requirements.txt
```

## Usage
```
rgbimage: RGB image where the search is running.
rgbtemplate: RGB searched template. It must be not greater than the source image and have the same data type.
method: [String] Parameter specifying the comparison method
matched_thresh: [Float] Setting threshold of matched results(0~1).
rot_range: [Integer] Array of range of rotation angle in degrees. Example: [0,360]
rot_interval: [Integer] Interval of traversing the range of rotation angle in degrees.
scale_range: [Integer] Array of range of scaling in percentage. Example: [50,200]
scale_interval: [Integer] Interval of traversing the range of scaling in percentage.
rm_redundant: [Boolean] Option for removing redundant matched results based on the width and height of the template.
minmax:[Boolean] Option for finding points with minimum/maximum value.
```
## Contribution
Thank you for your interest in contributing to the project! We welcome help from the community and appreciate even the smallest improvements.

If you’d like to contribute, please fork the repository, make your changes, and submit a pull request. I’ll review your contributions and merge them into the main codebase.