{"id":19954052,"url":"https://github.com/mkht/templatematching","last_synced_at":"2025-08-26T20:19:47.188Z","repository":{"id":113257875,"uuid":"119173329","full_name":"mkht/TemplateMatching","owner":"mkht","description":"PowerShell cmdlet for Template matching","archived":false,"fork":false,"pushed_at":"2018-02-06T15:05:47.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-13T11:07:39.276Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mkht.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-01-27T14:52:47.000Z","updated_at":"2018-01-27T14:53:16.000Z","dependencies_parsed_at":"2023-03-29T19:48:14.437Z","dependency_job_id":null,"html_url":"https://github.com/mkht/TemplateMatching","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mkht/TemplateMatching","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkht%2FTemplateMatching","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkht%2FTemplateMatching/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkht%2FTemplateMatching/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkht%2FTemplateMatching/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mkht","download_url":"https://codeload.github.com/mkht/TemplateMatching/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkht%2FTemplateMatching/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272253547,"owners_count":24900929,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-26T02:00:07.904Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T01:18:47.501Z","updated_at":"2025-08-26T20:19:47.119Z","avatar_url":"https://github.com/mkht.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"TemplateMatching\n====\n\nPowershell cmdlet for template matching.  \nYou can find out where the template image is in the target image.\n\n## Install\nYou can install from [PowerShell Gallery](https://www.powershellgallery.com/packages/TemplateMatching).\n```PowerShell\nInstall-Module -Name TemplateMatching\n```\n\n## Cmdlet\n* Invoke-TemplateMatching\n\n## Parameter\n### Target\n**_(Type = string, Mandatory = True, Positional = False)_**  \nSpecifies the image file in which you expect to find a match to the template image.\n\n### Template\n**_(Type = string, Mandatory = True, Positional = False)_**  \nSpecifies the patch image which will be compared to the target image.  \nThe image must be smaller than the target image.\n\n### Threshold\n**_(Type = double, Mandatory = False, Positional = False)_**  \nSpecifies similarity threshold for image matching.  \nThis cmdlet returns all matched points that has more similar than the threshold.  \nYou can specifies threshold between `0.1` to `1.0` (greater is best match)  \nThe default threshold is `0.95`\n\n## Example\n* Template image  \n![Template](/Sample/template.png)\n\n* Target image  \n![Template](/Sample/target.png)\n\n* Command\n```PowerShell\nPS C:\\\u003e Invoke-TemplateMatching -Target \".\\target.png\" -Template \".\\template.png\"\n\nRect                             Similarity\n----                             ----------\n(x:720 y:101 width:74 height:66)  0.9999997\n```\n\nThe template image found in the target image.  \nThe coordinate of the image is `(x=720, y=101)`.  \nSimilarity is `0.9999997`, it's nearly equal `1`. that indicates perfect match.\n\n----\n## License\nTemplateMatching is released under the MIT License. See [LICENSE](/LICENSE).  \n\nThis module includes these libraries.  \n* [OpenCV](https://opencv.org/)  \nLicensed under the [BSD 3-Clause](https://opencv.org/license.html)\n\n* [OpenCvSharp](https://github.com/shimat/opencvsharp)  \nLicensed under the [BSD 3-Clause](https://github.com/shimat/opencvsharp/blob/master/LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmkht%2Ftemplatematching","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmkht%2Ftemplatematching","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmkht%2Ftemplatematching/lists"}