登录
首页 » python » svm解析验证码

svm解析验证码

于 2022-04-14 发布 文件大小:1.18 MB
0 109
下载积分: 2 下载次数: 1

代码说明:

SVM做的验证码识别,准确率85%# -*- coding: utf-8 -* __author__ = "eple" from svmutil import * from PIL import Image from numpy import * import os import string def getFeatures(path): features = [] im = array(Image.open(path).convert("L")) h,w = shape(im) for i in xrange(0,h): for j in xrange(0,w): im[i][j] = 0 if im[i][j] < 128 else 1 for i in xrange(1,h-1): for j in xrange(1,w-1): if im[i][j] != 0 and im[i-1][j]==0 and im[i][j-1]==0 and im[i][j+1]==0 and im[i+1][j]==0: im[i][j] = 0 for rang in [xrange(2,8), xrange(12,18), xrange(22,28), xrange(32,38)]: temp = [] for i in rang: for j in xrange(0,10): temp.append(im[j][i]) features.append(temp) return features

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • copy
    implementation of copy move forgery detection based on ad hoc algorithm
    2015-01-06 15:57:36下载
    积分:1
  • 蓝桥杯青少年创意编程Python组赛前集训教程包
    说明:  蓝桥杯青少年创意编程Python组赛前集训教程包,青少年Python编程比赛官网教程。(Blue Bridge Cup youth creative programming Python group pre competition training package, youth Python Programming Competition official website tutoria)
    2021-01-26 22:38:41下载
    积分:1
  • code
    数据处理预测;时间序列;前期数据处理;后期GRU预测(Data processing prediction)
    2018-11-23 09:23:46下载
    积分:1
  • 爬取知乎收藏夹
    爬取知乎收藏夹,暂时无法实现收藏夹翻页,有待后续改进,里面代码cookie需要结合自己电脑填,用户名邮箱和用户和密码也要自己填,这点要注意
    2022-07-26 09:38:57下载
    积分:1
  • IEEEWIN
    说明:  EXAMPLE OF PSSE simulations and python scripting (Wind Energy)
    2019-10-15 21:27:45下载
    积分:1
  • hao123网站爬虫
    说明:  python爬虫案例,以hao123网站爬虫为例,文件包含.py文件等源码(the example of python spider)
    2020-07-04 11:53:33下载
    积分:1
  • 预处理(1)
    说明:  对机器学习的数据进行处理,包括CNN KNN等多种方式。(Preprocessing machine learning data using methods of CNN, KNN, etc.)
    2020-06-25 21:01:23下载
    积分:1
  • 年会抽奖 示例源码(带音效,python已打包成exe)
    年会抽奖 示例源码(带音效,python已打包成exe)
    2019-01-29下载
    积分:1
  • 商品信息爬取
    说明:  简单的爬虫实例,通过各种方式从商品网站上爬取各种不同的信息,主要用于练习爬虫的应用,更加熟悉爬虫的应用(A simple crawler instance that crawls a variety of different information from a product website in a variety of ways, mainly for practicing reptile applications and more familiar with reptile applications.)
    2020-06-20 12:20:02下载
    积分:1
  • CNN_Conv2d_train
    说明:  基于卷积神经网络(CNN)CNN的图片分类训练代码(CNN network classification training)
    2021-03-27 13:39:12下载
    积分:1
  • 696518资源总数
  • 105958会员总数
  • 18今日下载