MyGit

lepture/captcha

Fork: 185 Star: 1010 (更新于 2024-10-26 15:24:47)

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最近更新仓库

2024-11-14 21:11:52 LibraHp/GetQzonehistory

2024-11-14 19:49:23 jxxghp/MoviePilot

2024-11-14 08:17:54 langflow-ai/langflow

2024-11-14 06:52:29 ultralytics/ultralytics

2024-11-14 00:25:19 Huanshere/VideoLingo

2024-11-12 16:19:07 AnswerDotAI/rerankers