提交 64f9cc20 编写于 作者: H hjdhnx

ocr接口修改

上级 87019560
3.9.40beta8
\ No newline at end of file
3.9.40beta9
\ No newline at end of file
......@@ -92,7 +92,7 @@ const OCR_RETRY = 3;//ocr验证重试次数
// const OCR_API = 'http://dm.mudery.com:10000';//ocr在线识别接口
// const OCR_API = 'http://192.168.3.239:5705/parse/ocr';//ocr在线识别接口
// const OCR_API = 'http://cms.nokia.press/parse/ocr';//ocr在线识别接口
const OCR_API = 'http://cms.nokia.press:5706/parse/ocr';//ocr在线识别接口
const OCR_API = 'http://cms.nokia.press:5707/parse/ocr';//ocr在线识别接口
if(typeof(MY_URL)==='undefined'){
var MY_URL; // 全局注入变量,pd函数需要
}
......
此差异已折叠。
......@@ -78,7 +78,7 @@ const OCR_RETRY = 3;//ocr验证重试次数
// const OCR_API = 'http://dm.mudery.com:10000';//ocr在线识别接口
// const OCR_API = 'http://192.168.3.239:5705/parse/ocr';//ocr在线识别接口
// const OCR_API = 'http://cms.nokia.press/parse/ocr';//ocr在线识别接口
const OCR_API = 'http://cms.nokia.press:5706/parse/ocr';//ocr在线识别接口
const OCR_API = 'http://cms.nokia.press:5707/parse/ocr';//ocr在线识别接口
if(typeof(MY_URL)==='undefined'){
var MY_URL; // 全局注入变量,pd函数需要
}
......
此差异已折叠。
......@@ -12,7 +12,8 @@ PC_UA = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, li
UA = 'Mozilla/5.0'
api = 'https://api.nn.ci/ocr/b64/text'
api2 = 'http://dm.mudery.com:10000'
api3 = 'http://localhost:5705/parse/ocr'
# api3 = 'http://localhost:5705/parse/ocr'
api3 = 'http://cms.nokia.press:5707/parse/ocr'
def test():
with open('yzm1.png',mode='rb') as f:
img = f.read()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册