项目作者: skotz

项目描述 :
Neural network, contour analysis, bitmap vector subtraction CAPTCHA solving library and scripting language with perceptive color space segmentation
高级语言: C#
项目地址: git://github.com/skotz/captcha-breaking-library.git
创建时间: 2015-03-14T13:28:14Z
项目社区:https://github.com/skotz/captcha-breaking-library

开源协议:GNU General Public License v3.0

下载


CAPTCHA Breaking Scripting Language

Introduction

The CAPTCHA Breaking Library and Scripting Language provides the necessary tools for quickly creating a program capable of reading text out of an image.
The actual job of determining which letter is in a given image is done with the help of Neural Networks, Contour Analysis, and Bitmap Vector Subtraction.

CAPTCHAs that are able to be segmented by color (i.e., each letter is a different color) may first be converted to a perceptive color space where
distances between colors are mathematically determined based on how the human eyes perceive color, not how colors are different in the RGB color-space.
This allows most multicolor CAPTCHAs to be solved quite trivially.

Documentation

To get started, check out the
hello world tutorial,
the language syntax,
and the solver walkthrough.

Example

Here is a code snippet written in CBL that breaks a CAPTCHA originally from here.

CAPTCHA

  1. **********************************************************
  2. * Scott Clayton April 14, 2012 *
  3. **********************************************************
  4. * This script is part of the CBL interpreter: *
  5. * http://code.google.com/p/captcha-breaking-library/ *
  6. **********************************************************
  7. * The CAPTCHA that this script breaks came from: *
  8. * http://www.codeproject.com/Articles/5947/CAPTCHA-Image *
  9. **********************************************************
  10. SetMode, all
  11. SetupSegmenter, BLOB, 4, 14, 8
  12. SetupSolver, MNN, "0123456789", 20, 20, 8, 150, 0.95
  13. Load, "mnn.solver.db"
  14. DefinePreconditions
  15. Resize, 400, 100
  16. Subtract, "merge3.bmp"
  17. Invert
  18. Median, 1
  19. MeanShift, 1, 2, 5
  20. Binarize, 150
  21. ColorFillBlobs, 80, 52
  22. RemoveSmallBlobs, 90, 4, 14
  23. HistogramRotate
  24. Binarize, 200
  25. ColorFillBlobs
  26. EndPreconditions
  27. Solve, %IMAGE%

Here’s the CBL GUI running the script you see above on a CAPTCHA:

Example 1

Example 2

Notepad++ Plugin

Be sure to install the Notepad++ syntax highlighting plugin on the downloads page to get syntax highlighting for CBL.
Installation instructions are included in the Readme.txt file in the download.

Scott

Exported from my old Google Code repository.