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

svm解析验证码

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

  • 一种金字塔式行人重识别源码
    # Pyramidal Person Re-IDentification A simple reproduction of Pyramidal Person Re-IDentification via Multi-Loss Dynamic Training (CVPR2019). [[PDF]](http://openaccess.thecvf.com/content_CVPR_2019/papers/Zheng_Pyramidal_Person_Re-IDentification_via_Multi-Loss_Dynamic_Training_CVPR_2019_paper.pdf) ### I hope that this reproduction can help your research or work.
    2023-01-12 03:00:04下载
    积分:1
  • boxcox
    boxcox函数的python实现,引用该函数可将偏态分布调整为正态分布(Python implementation of box Cox function)
    2020-06-17 09:40:01下载
    积分:1
  • CNN_test
    说明:  卷积神经网络代码的学习,运用mnist数据集(Convolutional neural network code learning)
    2021-04-12 13:29:54下载
    积分:1
  • 人工智能特征选择的算法 BoostARoota-master
    说明:  人工智能特征选择的算法,可以直接跑的代码(Artificial intelligence feature selection algorithm, can run directly to the code)
    2020-04-08 21:41:41下载
    积分:1
  • tfAlexNet-master
    基于tensorflow的alexnet实现,用于机器学习图片分类网络模型入门(Tensorflow based alexnet implementation for machine learning picture classification network model introduction)
    2017-12-05 18:43:25下载
    积分:1
  • longitude and latitude
    调用谷歌地图API,用于查询给定地址的经纬度,适合python新手学习(To find longitude and latitude)
    2018-02-06 15:44:35下载
    积分:1
  • Ball-Tracking2
    this program is for ball tracking
    2014-11-11 08:58:17下载
    积分:1
  • 贝叶斯分类
    说明:  通过python进行编程,运用贝叶斯算法原理,对iris数据集进行分类(Classification of iris data sets by Bayes)
    2020-04-24 10:01:04下载
    积分:1
  • monte_carlo_tree_search
    说明:  非常好的蒙特卡洛树搜索写的五子棋示例,核心代码都有中文说明(An Example of Gobang Written by Monte Carlo Tree Search)
    2020-06-15 23:20:01下载
    积分:1
  • 决策树与集成算法
    决策树与集成算法,用来分类已知数据种类,希望对编程有帮助(Decision tree and ensemble algorithm are used to classify known data types.)
    2018-09-09 17:38:01下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载