Skip to main content

No project description provided

Project description

- AI captcha solver adapter

Requirements

Python3.3 - python3.10

Python 3.10 is not supported yet because onnxruntime is not supporting python3.10

UPDATE: Python3.10 is supported

Installation

pip install captcha-solve-adapter   
from captcha_solve_adapter import CaptchaSolver

solver = CaptchaSolver(
    logging=False, # if need to print the log
    img_width=300, # img_width
    img_height=40, # img height
    max_length=10, # max captcha length
    characters=['a','b','c','d'], # captcha characters used in training model
    model_fname='Path/to/the/model.onnx'    
)  # this login will create captcha
def solve_captcha(url: str):
    result, accur = solver.solve(url=url)
    return accur
def solve_from_bytes(b: bytes):
    result, accur = solver.solve(bytes_data=b)
    return accur
def solve_frmo_file(file: str):
    with open(file, 'rb') as f:
        b = f.read()
    return solve_from_bytes(b)

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

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

Source Distribution

captcha_solve_adapter-1.0.tar.gz (5.0 kB view hashes)

Uploaded Source

Built Distribution

captcha_solve_adapter-1.0-py3-none-any.whl (5.3 kB view hashes)

Uploaded Python 3

Supported by

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