10

验证识别之你讲武德了吗?

 3 years ago
source link: https://blog.csdn.net/Open_CV_NLP_New/article/details/111876980
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

说说那个试用版的打包软件,既然是试用版肯定要加个试用期限,但是里面的pb模型并没有放识别率最好的那个,而是放了一个识别率中等的模型,大概90%,反编译了,觉得挺牛,还把通过pyinstaller打包前的Python代码公布出来。试用版!试用版!试用版!看清楚

在这里插入图片描述
我的前一个账号:
在这里插入图片描述
在这里插入图片描述

再说说限制试用时间的问题

我的代码里是这么写的


def get_web_time(host='42.192.80.101:8089'):
    try:
        conn = http.client.HTTPConnection(host)
        conn.request('GET', '/')
        res = conn.getresponse()
        # 获取所有的http头
        ts = res.getheader('date')
        ltime = time.strptime(ts[5: 25], '%d %b %Y %H:%M:%S')
        return list(ltime)
    except ConnectionError:
        return 'network_error'

def captcha_outer():
    web_time = get_web_time()
    if web_time == 'network_error':
        return Response(json.dumps({'code': 'network error'}, ensure_ascii=False), mimetype='application/json')
    year = web_time[0]
    month = web_time[1]
    day = web_time[2]
    if year == 2020:
        pass
    elif year == 2021 and month == 1 and day <= 11:
        pass
    else:
        return Response(json.dumps({'code': 'Probation Expired,此处省略号码数字'}, ensure_ascii=False), mimetype='application/json')

请大家看下我写的试用期是到2021年1月11日,还要啥自行车?10多天通过识别率为90%的模型可以爬取很多数据了已经。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK