Giter Site home page Giter Site logo

graphiccr's Introduction

GraphicCR - 基于 Java 的简单图形验证码识别

支持类型

类型 图形 来源 识别正确率
第1类 neuq 东北大学秦皇岛分校教务管理系统 10 / 10 = 100%,单:40 / 40 = 100%
第2类 cmc 成都医学院教务管理系统 87 / 100 = 87%,单:386 / 400 = 96.5%
第3类 bbmc 蚌埠医学院教务网络管理系统 91 / 100 = 91%,单:389 / 400 = 97%
第4类 sdjtu 山东交通学院综合教务系统 97 / 100 = 97%,单:397 / 400 = 99%
第5类 ncu 南昌大学教学一体化服务平台 100 / 100 = 100%,单:400 / 400 = 100%
第6类 ahut 安徽工业大学教务管理系统 100 / 100 = 100%,单:400 / 400 = 100%
第7类 qau 青岛农业大学教学一体化服务平台 100 / 100 = 100%,单:400 / 400 = 100%

图形样本特征分析:

  • 第1类
    😄 字符数固定
    😄 字符亮度一致,阀值 0.6
    😄 无字形变化,只含数字
    😄 位置基本固定,每个字符具有1~3像素的水平偏移
    graphicc1
  • 第2类
    😄 字符数固定
    😄 字符颜色固定,色值 #ff000099
    😄 无字形变化,含数字、小写字母
    😄 位置基本固定,字符间水平有1像素交集
    😣 字符有旋转
    graphicc2
  • 第3类
    😄 字符数固定
    😄 字符饱和度一致,阀值0.2
    😄 无字形变化,含数字、大写字母
    😣 位置水平基本固定、垂直漂移
    😣 有随机干扰线
    graphicc3
  • 第4类
    😄 字符数固定
    😄 字符亮度基本一致,阀值 0.62
    😄 无字形变化,含数字、小写字母、大写字母
    😄 每个字符相对位置固定,字符间水平有2像素交集
    graphicc4
  • 第5类
    😄 字符数固定
    😄 字符亮度基本一致,阀值 0.5
    😄 无字形变化,只含少数数字和小写字母
    😄 每个字符相对位置固定
    😄 有干扰线,但可忽略 graphicc5
  • 第6类
    😄 字符数固定
    😄 字符饱和度基本一致,阀值 0.2
    😄 无字形变化,只含数字
    😄 每个字符位置固定
    graphicc6
  • 第7类
    😄 字符数固定
    😄 字符亮度基本一致,阀值 0.5
    😄 无字形变化,只含少数数字和小写字母
    😄 每个字符相对位置固定
    😄 有干扰线,但可忽略 graphicc7

开始使用

  • 以 Eclipse 为例,将 graphiccr-x.x.x.jar 添加到项目的 libs 目录
  • 示例代码:
public static void main(String[] args) {
    File testFile1 = new File("E:/JavaProjects/GraphicCR/reserve/GraphicC/1/test/3014.jpg");
    String result1 = GraphicCTranslator.translate(testFile1, GraphicCTranslator.TYPE_1);
    System.out.println(result1);
    
    File testFile2 = new File("E:/JavaProjects/GraphicCR/reserve/GraphicC/2/test/2rxl.gif");
    String result2 = GraphicCTranslator.translate(testFile2, GraphicCTranslator.TYPE_2);
    System.out.println(result2);
    
    File testFile3 = new File("E:/JavaProjects/GraphicCR/reserve/GraphicC/1/test/xxxx.jpg");
    String result3 = GraphicCTranslator.translate("http://jwpt.neuq.edu.cn/ACTIONVALIDATERANDOMPICTURE.APPPROCESS",
            testFile3, GraphicCTranslator.TYPE_1);
    System.out.println(result3);
}

项目应用

  • 极课(一款简单的高校课表App)
    schttable

参考资料

联系作者

License

Copyright 2016 By_syk

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Copyright © 2016 By_syk. All rights reserved.

graphiccr's People

Contributors

by-syk avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.