MyGit

lepture/captcha

Fork: 185 Star: 1021 (更新于 2024-12-11 06:10:09)

license: BSD-3-Clause

Language: Python .

A captcha library that generates audio and image CAPTCHAs.

最后发布版本: v0.6.0 ( 2024-07-18 21:40:52)

官方网址 GitHub网址

Captcha

A captcha library that generates audio and image CAPTCHAs.

Features

  1. Audio CAPTCHAs
  2. Image CAPTCHAs

Installation

Install captcha with pip::

$ pip install captcha

Usage

Audio and Image CAPTCHAs are in separated modules:

.. code-block:: python

from captcha.audio import AudioCaptcha
from captcha.image import ImageCaptcha

audio = AudioCaptcha(voicedir='/path/to/voices')
image = ImageCaptcha(fonts=['/path/A.ttf', '/path/B.ttf'])

data = audio.generate('1234')
audio.write('1234', 'out.wav')

data = image.generate('1234')
image.write('1234', 'out.png')

This is the APIs for your daily works. We do have built-in voice data and font data. But it is suggested that you use your own voice and font data.

Useful Links

  1. GitHub: https://github.com/lepture/captcha
  2. Docs: https://captcha.lepture.com/

License

Licensed under BSD. Please see LICENSE for licensing details.

最近版本更新:(数据更新于 2024-10-09 13:46:24)

2024-07-18 21:40:52 v0.6.0

2023-07-29 09:47:38 v0.5.0

2014-11-27 15:59:23 v0.1-beta

主题(topics):

captcha

lepture/captcha同语言 Python最近更新仓库

2025-01-18 21:26:31 sunnypilot/sunnypilot

2025-01-17 23:34:10 Skyvern-AI/skyvern

2025-01-17 19:49:33 ultralytics/ultralytics

2025-01-17 19:12:03 XiaoMi/ha_xiaomi_home

2025-01-17 08:27:45 comfyanonymous/ComfyUI

2025-01-17 04:56:19 QuivrHQ/MegaParse