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

svm解析验证码

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

  • python之requests爬取亚马逊(国外站)关键词排名
    用Python的requests方法获取亚马逊网站源代码,通过观察关键词网址模拟浏览器访问,加个代理规避网站反爬虫,使用多进程提高效率,轻松获取源代码
    2022-02-22 07:22:26下载
    积分:1
  • webot - 副本
    说明:  爬取微博内容,通过python进行抓取分析(Microblogging information crawling layer is responsible for climbing the microblogging information and downloading the file shared by microblogging user.)
    2020-06-16 05:00:01下载
    积分:1
  • sph1d.tar
    Python implementation of 1D SPH schemes
    2013-11-28 06:17:15下载
    积分:1
  • weinalvbo
    对图像先加入大气湍流,再对图像进行维纳滤波(Give the image in atmospheric turbulence, and then the image is the Wiener filter)
    2014-12-28 10:54:22下载
    积分:1
  • ssd.pytorch
    SSD: Single Shot MultiBox Object Detector, in PyTorch A PyTorch implementation of Single Shot MultiBox Detector from the 2016 paper by Wei Liu, Dragomir Anguelov, Dumitru Erhan, Christian Szegedy, Scott Reed, Cheng-Yang, and Alexander C. Berg. The official and original Caffe code can be found here. Table of Contents Installation Datasets Train Evaluate Performance Demos Future Work Reference
    2020-06-25 07:00:02下载
    积分:1
  • 基于svm的鸢尾花分类模型
    说明:  使用python编写的小程序,基于svm的鸢尾花分类模型。(Iris classification model based on SVM)
    2020-12-24 19:49:06下载
    积分:1
  • 高质量源码
    说明:  k-means聚类算法,spectral clustering,手写数字识别,数据分类(K-means clustering algorithm, spectral clustering, handwritten number recognition, data classification)
    2021-04-21 18:05:12下载
    积分:1
  • voronoi
    voronoi的二维绘图 可以用来模拟晶体的晶粒结构,可以用在abaqus切削仿真中(voronoi 2d this is used for cutting simulation in abaqus for Microstructure of Materials)
    2019-05-16 15:59:41下载
    积分:1
  • Python在ABAQUS应用源代码_chapter0-3
    说明:  是《Python语言在ABAQUS中的应用》书中源码,可以为学习Python和ABAQUS的同学提供很好的资料。(Is "Python language in ABAQUS application" book source code, can provide python and ABAQUS students very good information.)
    2020-07-24 18:39:28下载
    积分:1
  • 20180417--Model-one-3 - 1
    说明:  用python语言开发的程序,主要用于ABAQUS平台模拟水泥环损坏问题。水泥环采用塑性损伤模型。(The program developed in Python language is mainly used to simulate the damage of cement sheath on ABAQUS platform. Plastic damage model is adopted for cement sheath.)
    2019-04-30 10:44:36下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载