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

svm解析验证码

于 2022-04-14 发布 文件大小:1.18 MB
0 108
下载积分: 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 个回复

  • Tenserflow 1.0.0
    说明:  Tensorflow 实战Google深度学习框架 书籍的全部例程代码!(Tensorflow Actual Google Deep Learning Framework Books all the routine code!)
    2019-07-11 18:58:27下载
    积分:1
  • 逻辑回归
    说明:  根据标签,完成SVM下的多分类数据识别,数据可以是字符或者信号,可以达到较高的识别精度(The multi-classification data recognition under SVM was completed)
    2020-04-03 09:48:07下载
    积分:1
  • sklearn-SVM-master
    说明:  股票价格预测,支持向量机回归预测,核函数,(svm for stock price forcast)
    2020-04-11 08:36:52下载
    积分:1
  • python实现2*2格子
    付给扶额雨霏霏未婚夫黑呵呵u二负复古风一个符号为u回复胡还得u和黑发挥规范化为父返回回复肥肥u哈怂i我穷i我i核武i返回夫人复古风腹黑武汉覅u法规和覅u保护而五分五百few运费会分为会货物i
    2023-03-22 18:10:03下载
    积分:1
  • 周期性边界条件
    abaqus周期性边界条件代码,可以参考学习(Periodic boundary conditions)
    2021-04-11 17:08:58下载
    积分:1
  • CGFWI
    Madagascar环境下编写的全波形反演程序(Full-waveform inversion program under Madagascar environment)
    2019-06-04 16:48:57下载
    积分:1
  • VAE实战
    说明:  autoencoder是一种无监督的学习算法,主要用于数据的降维或者特征的抽取,在深度学习中,autoencoder可用于在训练阶段开始前,确定权重矩阵的初始值。(Autoencoder is an unsupervised learning algorithm, which is mainly used for dimensionalization reduction or feature extraction of data. In deep learning, autoencoder can be used to determine the initial value of weight matrix before the training stage.)
    2019-10-16 20:12:19下载
    积分:1
  • TitleCheck
    说明:  可以通过该代码实现,查找文件关键抬头信息(This code can be used to find the key header information of the file.)
    2020-06-19 23:20:02下载
    积分:1
  • LUT
    说明:  Look-up-table XXXXXXX
    2020-06-03 05:51:29下载
    积分:1
  • Hopfield_my_1pic
    说明:  实现一张图片的识别,其中图片是车标,网络是基于忆阻器的hopfield神经网络(Realize the recognition of a picture)
    2020-04-21 16:46:40下载
    积分:1
  • 696518资源总数
  • 105958会员总数
  • 18今日下载