pull/454/head
xianping.wen 5 years ago
parent e12a3f3897
commit b2f9ce65f1

File diff suppressed because one or more lines are too long

@ -591,7 +591,7 @@ urls = {
"req_url": "/verify/base64/",
"req_type": "post",
"Referer": "",
"Host": "34.97.127.118:8000/",
"Host": "34.97.127.118:8000",
"re_try": 2,
"re_time": 2,
"s_time": 2,

@ -4,7 +4,10 @@ from PIL import Image
from config.urlConf import urls
from myUrllib.httpUtils import HTTPClient
from verify.localVerifyCode import Verify
import TickerConfig
if TickerConfig.AUTO_CODE_TYPE == 2:
v = Verify()

@ -42,8 +42,6 @@ def base64_to_image(base64_code):
return img
class Verify:
def __init__(self):
self.textModel = ""
@ -54,6 +52,8 @@ class Verify:
def loadTextModel(self):
if not self.textModel:
self.textModel = models.load_model(PATH('../model.v2.0.h5'))
else:
print("无需加载模型model.v2.0.h5")
def loadImgModel(self):
if not self.imgModel:

Loading…
Cancel
Save