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

svm解析验证码

于 2022-04-14 发布 文件大小:1.18 MB
0 149
下载积分: 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_sina_crawl
    新浪微博的爬虫程序。程序运行方式:保存所有代码后,打开Main.py,修改LoginName为你的新浪微博帐号,PassWord为你的密码。运行Main.py,程序会在当前目录下生成CrawledPages文件夹,并保存所有爬取到的文件在这个文件夹中。(Sina microblogging reptiles. Program operation: save all the code, open Main.py, modify LoginName for your Sina Weibo account, PassWord for your password. Run Main.py, the program will generate CrawledPages in the current directory folder and save all files to crawling in this folder.)
    2021-04-08 16:39:00下载
    积分:1
  • Cellular-Automation-master
    说明:  可以进行智能驾驶汽车的元胞自动机模拟,提供了完整的代码,可以修改(Cellular-Automaton-for-self-drive-master)
    2019-01-16 21:05:24下载
    积分:1
  • python进行forensic Mastering Python Forensics
    用python进行forensic,经典书籍,黑客必备!!!!!!!!(Master the art of digital forensics and analysis with Python)
    2020-06-23 00:20:02下载
    积分:1
  • Natural Language processing with python
    说明:  python自然语言处理的中文翻译 作者: StevenBird, EwanKlein & EdwardLoper 英文出版社:O'REILLY 翻译:陈涛 提供了非常易学的自然语言处理入门介绍,该领域涵盖从文本和电子邮件预测过滤,到自动总结和翻译等多种语言处理技术。在此书中,你将学会编写Python程序处理大量非结构化文本。你还将通过使用综合语言数据结构访问含有丰富注释的数据集,理解用于分析书面通信内容和结构的主要算法。 《Python自然语言处理》准备了充足的示例和练习,可以帮助你: 从非结构化文本中抽取信息,甚至猜测主题或识别“命名实体”; 分析文本语言结构,包括解析和语义分析; 访问流行的语言学数据库,包括WordNet和树库(treebank); 从多种语言学和人工智能领域中提取的整合技巧。(Natural Language processing with python)
    2018-01-12 17:52:46下载
    积分:1
  • GeodesicActiveContour
    GAC模型代码,很好的matlab代码,希望大家多多分享(GAC model code, good code matlab)
    2011-05-06 13:18:41下载
    积分:1
  • python算法库
    python算法资料,提供了不少关于python的算法,值得一看。(Python algorithm data, provide a lot of Python algorithm, it is worth seeing.)
    2018-05-23 08:44:27下载
    积分:1
  • 机器学习实战——python 3.5.2
    kNN分类算法 kNN.py文件中的代码
    2022-02-02 21:44:41下载
    积分:1
  • Python - OBDII - Libraries
    Python OBDII库;
    2023-03-26 06:45:04下载
    积分:1
  • 爬取微博大V们的微博
    首先给出了社交网络中热点话题趋势预测的形式化定义和一个话题趋势预测模型,然后提出了一种针对时间序列数据进行特征抽取和构造的新方法,基于提出的新方法构造了三个相互补充的特征子集,最后将这三个特征子集线性组合起来做为支持向量机的输入向量进行话题趋势的预测。为了验证预测模型的性能,本论文釆集了一个高质量的新浪微博数据集。基于获取到的数据,对预测模型进行了完整的测试,取得了良好的效果。
    2022-04-13 06:04:21下载
    积分:1
  • 《Python基础教程(第3版).pdf
    python基础课程;python是一种计算机编程语言。作为一种面向对象的动态类型化语言,它最初被设计用来编写自动脚本(shell)。随着版本的更新和新语言功能的增加,它越来越多地被用于独立的大型项目的开发中。(Python Basic Course; Python is a computer programming language. As an object-oriented dynamic typed language, it was originally designed to write automated scripts (shells). With the updating of versions and the addition of new language functions, it is increasingly used in the development of independent, large-scale projects.)
    2020-06-18 02:20:01下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载