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

svm解析验证码

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

  • finally.py
    用树莓派实现人脸识别,通过分析出的表情播放音乐(Using raspberry pie to realize face recognition and play music)
    2017-11-08 12:48:37下载
    积分:1
  • LIVE1_train_test
    卷积神经网络,用于立体图像质量评价,附带说明(The application of convolution neural network to the quality evaluation of stereoscopic images)
    2021-03-29 20:39:10下载
    积分:1
  • ptt_beauty_infinite_scroll-master
    ptt_beauty_infinite_scroll-masterptt表特版自動爬蟲(ptt_beauty_infinite_scroll-master)
    2020-06-23 12:20:01下载
    积分:1
  • 线性回归
    说明:  能够实现线性回归,里面有一个线性回归的实例(It can realize linear regression. There is an example of linear regression)
    2020-05-10 09:38:06下载
    积分:1
  • 图像的去噪与增强python
    说明:  此代码可以实现图像的去噪和增强,非常的简洁好用(This code is very clear !!!)
    2020-10-30 09:54:44下载
    积分:1
  • jd-autobuy-master
    说明:  Python爬虫,自动登录京东网站,查询商品库存,价格,显示购物车详情等。 可以指定抢购商品,自动购买下单,然后手动去京东付款就行。(Python crawler, automatically log into Jingdong website, query commodity inventory, price, display shopping cart details, etc. You can specify the goods to be snapped up, place an order automatically, and then go to Jingdong to pay manually.)
    2020-04-05 17:31:18下载
    积分:1
  • python 预约京东茅台脚本(JD-maotai)
    JD-maotai## 主要功能- 登陆京东商城([www.jd.com](http://www.jd.com/)) - 用京东APP扫码给出的二维码 - 预约茅台 - 定时自动预约 - 秒杀预约后等待抢购 - 定时开始自动抢购
    2021-05-06下载
    积分:1
  • 机器学习实战
    机器学习的算法,主要使用python语言,Numpy库,进行算法分析。(Algorithm for machine learning)
    2018-02-02 15:10:10下载
    积分:1
  • lib
    用python和数据库实现简单的图书馆管理系统(Simple library management system based on Python and database)
    2019-05-05 19:43:28下载
    积分:1
  • t-sne
    说明:  tsne降维聚类,可视化,可画3D图,可运行,效果不错(TSNE dimensionality reduction clustering, visualization, can draw 3D map, can run, the effect is good)
    2021-04-27 18:38:44下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载