一个超级简单的验证码识别。据说准确率比深度学习还要高哦(ε=ε=ε=┏(゜v゜;)┛
依赖:pip install Pillow
来源是 V2EX 上被喷惨的帖子: https://www.v2ex.com/t/354318
Author: laobubu
(纯粹个人兴趣掐着表写的,没收钱。一个小时内写完。PIL 的文档真难看。)
| /* | |
| * Copyright (C) 2014 Square, Inc. | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
| //刷帖子抢楼 | |
| var louceng = 256; | |
| var postid = 400319; | |
| var times = 0; | |
| var timer1; | |
| var isfast = false; | |
| var isveryfast = false; |
一个超级简单的验证码识别。据说准确率比深度学习还要高哦(ε=ε=ε=┏(゜v゜;)┛
依赖:pip install Pillow
来源是 V2EX 上被喷惨的帖子: https://www.v2ex.com/t/354318
Author: laobubu
(纯粹个人兴趣掐着表写的,没收钱。一个小时内写完。PIL 的文档真难看。)
| #!/usr/bin/env python | |
| # coding: utf-8 | |
| import os | |
| import sys | |
| from PIL import Image, ImageChops | |
| templates = [] |
| #!/usr/bin/env python3 | |
| # coding: utf-8 | |
| import matplotlib | |
| import matplotlib.pyplot as plt | |
| import pandas as pd | |
| import squarify | |
| import platform | |
| # print versions |
| 下述密码均摘自互联网 | |
| 【字母表顺序】-数字 | |
| 加密的时候,经常要把A~Z这26个字母转换成数字,最常见的一种方法就是取字母表中的数字序号。A代表1,B代表2,C代表3... | |
| 字母 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z | |
| 数字 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | |
| #!/bin/bash | |
| # Anh Nguyen <anh.ng8@gmail.com> | |
| # 2016-04-30 | |
| # MIT License | |
| # This script takes in same-size images from a folder and make a crossfade video from the images using ffmpeg. | |
| # Make sure you have ffmpeg installed before running. | |
| # The output command looks something like the below, but for as many images as you have in the folder. |
So... this is obviously totally, 100%, like for. real. not. supported. by. Apple. …yet?
But still... I thought it was pretty badass. And, seeing how there's already a Swift buildpack for Heroku you could move some slow code into Swift can call it as a library function. But, you know, not in production or anything. That would be silly, right?
Now, having said that, the actual Python/Swift interop may have bugs. I'll leave that as an exercise to the reader.