<h1 align="center">
- AI captcha solver adapter
</h1>
## Requirements
> Python3.3 - python3.10
~~Python 3.10 is not supported yet because
[onnxruntime](https://pypi.org/project/onnxruntime/)
is not supporting **python3.10**~~
#### UPDATE: Python3.10 is supported
## Installation
```
pip install captcha-solve-adapter
```
```python
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)
```
Raw data
{
"_id": null,
"home_page": "",
"name": "captcha-solve-adapter",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "solver,captcha,adapter,solve,AI,onnx",
"author": "IMCorp",
"author_email": "imartemy1524@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/8c/51/6ad2009a419fabfefc7e9e5517c953e98c0f57b0347d55da21ff12030464/captcha_solve_adapter-1.0.tar.gz",
"platform": null,
"description": "<h1 align=\"center\">\r\n- AI captcha solver adapter\r\n</h1>\r\n\r\n## Requirements\r\n> Python3.3 - python3.10\r\n\r\n~~Python 3.10 is not supported yet because \r\n[onnxruntime](https://pypi.org/project/onnxruntime/) \r\nis not supporting **python3.10**~~\r\n\r\n#### UPDATE: Python3.10 is supported\r\n\r\n## Installation\r\n\r\n```\r\npip install captcha-solve-adapter \r\n```\r\n\r\n```python\r\nfrom captcha_solve_adapter import CaptchaSolver\r\n\r\nsolver = CaptchaSolver(\r\n logging=False, # if need to print the log\r\n img_width=300, # img_width\r\n img_height=40, # img height\r\n max_length=10, # max captcha length\r\n characters=['a','b','c','d'], # captcha characters used in training model\r\n model_fname='Path/to/the/model.onnx' \r\n) # this login will create captcha\r\ndef solve_captcha(url: str):\r\n result, accur = solver.solve(url=url)\r\n return accur\r\ndef solve_from_bytes(b: bytes):\r\n result, accur = solver.solve(bytes_data=b)\r\n return accur\r\ndef solve_frmo_file(file: str):\r\n with open(file, 'rb') as f:\r\n b = f.read()\r\n return solve_from_bytes(b)\r\n```\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "",
"version": "1.0",
"split_keywords": [
"solver",
"captcha",
"adapter",
"solve",
"ai",
"onnx"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "c87632586b76ae50f20c05dcb6fafe5ea81f75c9e50ba25a66fc4f2af507aaf7",
"md5": "9f7838185fb9d4b280cbc3d2a21c797b",
"sha256": "51370ce306a2a85bcfbbbc7ec6b6d2d08c425c94bbc6128aaaf3dfb5794132e1"
},
"downloads": -1,
"filename": "captcha_solve_adapter-1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "9f7838185fb9d4b280cbc3d2a21c797b",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 5314,
"upload_time": "2023-04-09T19:53:28",
"upload_time_iso_8601": "2023-04-09T19:53:28.152132Z",
"url": "https://files.pythonhosted.org/packages/c8/76/32586b76ae50f20c05dcb6fafe5ea81f75c9e50ba25a66fc4f2af507aaf7/captcha_solve_adapter-1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "8c516ad2009a419fabfefc7e9e5517c953e98c0f57b0347d55da21ff12030464",
"md5": "66374cc61b57dec35e16ff04a3a17b31",
"sha256": "2e6f10b23b60d41bf76b49a1269f5dcf0791b2665bc2c74be226d2a690fd7a54"
},
"downloads": -1,
"filename": "captcha_solve_adapter-1.0.tar.gz",
"has_sig": false,
"md5_digest": "66374cc61b57dec35e16ff04a3a17b31",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 4987,
"upload_time": "2023-04-09T19:53:30",
"upload_time_iso_8601": "2023-04-09T19:53:30.702626Z",
"url": "https://files.pythonhosted.org/packages/8c/51/6ad2009a419fabfefc7e9e5517c953e98c0f57b0347d55da21ff12030464/captcha_solve_adapter-1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-04-09 19:53:30",
"github": false,
"gitlab": false,
"bitbucket": false,
"lcname": "captcha-solve-adapter"
}