简体   繁体   English

如何在 python 的图像中找到哪个模板

[英]How to find which template is in the image in python

Hi I have simple captcha system to automate in which the captcha generator shows a random image from a set嗨,我有简单的验证码系统来自动化,其中验证码生成器显示一组随机图像

now the problem is how do i find out that this image现在的问题是我如何发现这张图片在此处输入图像描述

contains which of the following包含以下哪一项在此处输入图像描述 or或者在此处输入图像描述 or或者在此处输入图像描述 or或者在此处输入图像描述

I have tried template matching using opencv but the templates scale differs我曾尝试使用 opencv 进行模板匹配,但模板比例不同

i have tried multi scale template matching but it randomly just points out texts and not the object我尝试过多尺度模板匹配,但它只是随机指出文本而不是 object

I have tried cropping the image but then i dont have any idea how to detect which of the 4 is in the image as sometimes it detects 2 or more of them.我曾尝试裁剪图像,但我不知道如何检测图像中的 4 个中的哪一个,因为有时它会检测到其中的 2 个或更多。

so any way to do it in python without using complicates stuff like deep learining所以在 python 中做任何事情而不使用像深度学习这样复杂的东西

Check out the official OpenCV doc Link查看官方 OpenCV 文档链接

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM