Juannie-PP / tenon

open-cv, slider, rotate captcha, 缺口滑块校验, 双图旋转校验
MIT License
120 stars 67 forks source link

我用这2张图来测试旋转,如何判断2张图是否匹配上了? #32

Open snakeninny opened 3 months ago

snakeninny commented 3 months ago

2张图是: 107_大 107_小

代码如下:

from tenon import rotate_identify

small_circle = "./rotated_images/107_小.png"
big_circle = "./rotated_images/107_大.png"

result = rotate_identify(small_circle, big_circle, 2)
print(result)

返回值是:

MatchData(similar=0.5062222480773926, inner_rotate_angle=0.5, total_rotate_angle=1)

我应该从哪个参数判断2张图是否匹配了呢?谢谢!

Juannie-PP commented 2 months ago

可以使用rotate_identify_and_show_image旋转验证码调试方法,输出旋转后图片