Skip to content

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

Notifications You must be signed in to change notification settings

wentao-uw/ComfyUI-template-matching

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ComfyUI template matching

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

example

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.

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages