Skip to main content

AntiCAP

Project description

logo

AntiCAP

Version:3.1.2

多类型验证码识别,开源学习项目,不承担法律责任。

类型 状态 描述
OCR识别 返回图片字符串
数学计算 返回计算结果
缺口滑块 返回坐标
阴影滑块 返回坐标
图标点选 侦测图标位置 或 按序返回坐标
文字点选 侦测文字位置 或 按序返回坐标
相似对比 图片中文字的相似度对比
WebApi服务 https://github.com/81NewArk/AntiCAP-WebApi

📄 AntiCAP 文档

🌍环境说明

python 3.8+

📁 安装

方案一 下载源码

git clone https://github.com/81NewArk/AntiCAP.git
cd AntiCAP
pip install -r requirements.txt 

方案二 Pypi下载

pip install AntiCAP -i https://pypi.tuna.tsinghua.edu.cn/simple

🤖 调用

import AntiCAP


if __name__ == '__main__':
    # 初始化
    Atc = AntiCAP.AntiCAP()

    # 文字类验证码 字母 数字 汉字
    result = Atc.OCR(img_base64="")

    # 算术类验证码
    result = Atc.Math(img_base64="")

    # 图标点选侦测
    result = Atc.Detection_Icon(img_base64="")

    # 图标点选 按序输出
    result = Atc.ClickIcon_Order(order_img_base64="",target_img_base64="")

    # 汉字侦测
    result = Atc.Detection_Text(img_base64="")

    # 文字点选 按序输出
    result = Atc.ClickText_Order(order_img_base64="",target_img_base64="")

    # 缺口滑块
    result = Atc.Slider_Match(target_base64="",background_base64="")

    # 阴影滑块
    result = Atc.Slider_Comparison(target_base64="",background_base64="")
    
    # 图像相似度对比  对比图片中的文字
    result= Atc.compare_image_similarity(image1_base64="", image2_base64="")

    # 输出结果
    print(result)

🐧 QQ交流群


QQGroup

🚬 请作者抽一包香香软软的利群


Ali Wx

💪🏼 模型训练


https://github.com/81NewArk/AntiCAP_trainer

根据自身要求训练模型 无缝衔接下一个 下一个更乖。

😚 致谢名单

这份荣光我不会独享

[1] Ddddocr作者 网名:sml2h3

[2] 微信公众号 OneByOne 网名:十一姐

[3] 苏州大学,苏州大学文正学院 计算机科学与技术学院 张文哲教授

[4] 苏州大学,苏州大学文正学院 计算机科学与技术学院 王辉教授

[5] 苏州市职业大学,苏州大学文正学院 计算机科学与技术学院 陆公正副教授

[6] 武汉科锐软件安全教育机构 钱林松讲师 网名:Backer

📚 参考文献

[1] Github. 2025.03.28 https://github.com/sml2h3

[2] Github. 2025.03.28 https://github.com/2833844911/

[3] Bilibili. 2025.03.28 https://space.bilibili.com/308704191

[4] Bilibili. 2025.03.28 https://space.bilibili.com/472467171

[5] Ultralytics. 2025.03.28 https://docs.ultralytics.com/modes/train/

[6] YRL's Blog. 2025.03.28 https://blog.2zxz.com/archives/icondetection

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

anticap-3.1.2.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

AntiCAP-3.1.2-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file anticap-3.1.2.tar.gz.

File metadata

  • Download URL: anticap-3.1.2.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.6

File hashes

Hashes for anticap-3.1.2.tar.gz
Algorithm Hash digest
SHA256 8f7c35a1c30f97e7acd5ab79a7d841f7def5abe4909a7cee4a1738e8f892db3a
MD5 c80b21194a60c6414ec913e513ff1961
BLAKE2b-256 ca8c73a91a16b46454343bddf192beb4417d5b86df7235ff87f70e28ae393866

See more details on using hashes here.

File details

Details for the file AntiCAP-3.1.2-py3-none-any.whl.

File metadata

  • Download URL: AntiCAP-3.1.2-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.6

File hashes

Hashes for AntiCAP-3.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e2a0c51f6f4661784178e1cf5d1f65f002e54f6867ec3de98706e6967756f31f
MD5 b5fc3d4ca6ffee2f112600245ca96af3
BLAKE2b-256 e18f045c9250d8c4802c4893684120a7835c63d070873b9f4f13f71cfa84343e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page