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.
- Host: GitHub
- URL: https://github.com/wentao-uw/ComfyUI-template-matching
- Owner: wentao-uw
- Created: 2024-11-06T06:26:22.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-11-06T06:52:30.000Z (5 months ago)
- Last Synced: 2024-11-06T07:33:17.382Z (5 months ago)
- Topics: comfyui, custom-nodes, template-matching
- Language: Python
- Homepage:
- Size: 107 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-comfyui - **ComfyUI template matching** - TemplateMatching](https://github.com/cozheyuanzhangde/Invariant-TemplateMatching). (All Workflows Sorted by GitHub Stars)
README
# ComfyUI template matching
This project is a ComfyUI version of https://github.com/cozheyuanzhangde/Invariant-TemplateMatching.

## 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.