Skip to content

jetmuffin/urp-decaptcha

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

urp-decaptcha

Python application to break captcha of URP(University Resource Plan)System , using OpenCV(2.1)

Build Status

Prerequisites

How to Use

Clone the code to your local project by

# git clone git@github.com:JetMuffin/urp-decaptcha.git

Install dependencies

# cd urp-decaptcha
# pip install -r requirements

Run

# python decaptcha.py <image_to_decaptcha>

Complete usage:

Usage: decaptcha.py [options]

Options:
  -h, --help            show this help message and exit
  -s SHOW, --show=SHOW  show input image
  -b SHOW_BINARY, --show_binary=SHOW_BINARY
                        show binary image of input
  -t TRAIN_DATA, --train_data=TRAIN_DATA
                        path of train data

How to use this in your code

Use existing image to train classification model

  segmenter = NormalSegmenter()
  extractor = SimpleFeatureExtractor(feature_size=20, stretch=False)
  analyzer = KNNAnalyzer(segmenter, extractor)
  analyzer.train('data/features.jpg')
  • Use classification model to test your own images
  result = analyzer.analyze('data/example.jpg')

Contribution

Welcome to fork my code and add more segmentation, feature_extraction, or classification to this project.

Contact

564936642@qq.com or jeffchen328@gmail.com

About

Python application to DeCaptcha URP System

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages