一个超级简单的验证码识别。
1.png 的样本有问题,所以看情况使用吧
依赖:pip install Pillow
来源是 V2EX 上被喷惨的帖子:
#!/usr/bin/env python | |
# coding: utf-8 | |
import os | |
import sys | |
from PIL import Image, ImageChops | |
templates = [] |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# CURRENT SOURCE: https://github.com/szepeviktor/debian-server-tools/blob/master/backup/mega-get.py | |
# origin: http://julien-marchand.fr/blog/using-mega-api-with-python-examples/ |
#/bin/bash | |
# fork | |
# only for ubuntu 12.04 | |
if [ $# -ne 1 ]; | |
then | |
echo "USAGE: $0 Yourkey" | |
echo "see https://secure.worldcommunitygrid.org/ms/viewMyProfile.do?language=en_US" | |
exit | |
fi |