
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
captcha-solve-adapter
Advanced tools
Python3.3 - python3.10
Python 3.10 is not supported yet because
onnxruntime
is not supporting python3.10
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)
FAQs
Unknown package
We found that captcha-solve-adapter demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.