Skip to content

Instantly share code, notes, and snippets.

View jackpoter's full-sized avatar

jack poter jackpoter

View GitHub Profile
@jackpoter
jackpoter / ABOUT.md
Created April 12, 2017 16:28 — forked from laobubu/@Stupid-CAPTCHA-OCR.md
Stupid CAPTCHA OCR written in 1 hour

一个超级简单的验证码识别。

1.jpg

1.png 的样本有问题,所以看情况使用吧

依赖:pip install Pillow

来源是 V2EX 上被喷惨的帖子:

@jackpoter
jackpoter / captcha.py
Created April 12, 2017 16:05 — forked from liberize/captcha.py
简单验证码识别
#!/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