EST-100無系統(tǒng)版多功能簽批屏PC版web版本http協(xié)議接口文檔
名稱 類型 必選 約束 中?名 說明
? code integer true none none
EST-100?系統(tǒng)簽批屏-接??檔
v1.1.3.10
Base URL: http://127.0.0.1:38088
屏幕監(jiān)控
屏幕監(jiān)控使?單獨的端?:38089
GET 打開屏幕監(jiān)控
GET /sign=stream/time=1684206141678
此接?調?成功后,將持續(xù)以流形式持續(xù)返回攝像頭捕捉畫?,可直接將請求鏈接放在img標簽
的src,即可持續(xù)顯?畫?。
POST 關閉設備屏幕監(jiān)控
POST /closewebontablet
返回?例
成功
返回數(shù)據(jù)結構
狀態(tài)碼 200
{
"code": 1,
"message": "取消屏幕監(jiān)控"
}
1
2
3
4
名稱 類型 必選 約束 中?名 說明
? message string true none none
名稱 位置 類型 必選 說明
body body object 否 none
? top body string 是 none
? left body string 是 none
? width body string 是 none
? height body string 是 none
簽字窗?
POST 打開簽字窗?
POST /sign=start
Body 請求參數(shù)
請求參數(shù)
返回?例
成功
{
"top": "400",
"left": "420",
"width": "640",
"height": "400"
}
1
2
3
4
5
6
名稱 類型 必選 約束 中?名 說明
? code integer true none none
? image string false none none
? message string true none none
? status integer true none none
取消
異常
返回數(shù)據(jù)結構
狀態(tài)碼 200
{
"code": 0,
"image":
"iVBORw0KGgoAAAANSUhEUgAAAGQAAAAyCAYAAACqNX6+AAAAAXNSR0IArs4c6QAAAARnQU1BAA
Cxjwv8YQUAAAAJcEhZcwAAHYcAAB2HAY/l8WUAAACMSURBVHhe7cihAQAwEISw33/p6wJ4KhAxu
W35CGY8mPFgxoMZD2Y8mPFgxoMZD2Y8mPFgxoMZD2Y8mPFgxoMZD2Y8mPFgxoMZD2Y8mPFgxoMZ
D2Y8mPFgxoMZD2Y8mPFgxoMZD2Y8mPFgxoMZD2Y8mPFgxoMZD2Y8mPFgxoMZD2Y8mPFgxoMZD2Y
suwc/52DP4EizIwAAAABJRU5ErkJggg = ",
"message": "簽名成功",
"status": 2
}
1
2
3
4
5
6
{
"code": 1223,
"message": "簽名被取消了",
"status": 1
}
1
2
3
4
5
{
"code": 3,
"message": "簽名初始化出錯",
"status": 3
}
1
2
3
4
5
POST 關閉簽字窗?
POST /sign=stop
返回?例
成功
指紋采集
POST 指紋采集
POST /finger=record
調?此接?會等待指紋采集,采集成功或取消采集時,返回數(shù)據(jù)。
返回?例
成功
{
"code": 0,
"message": "取消簽名",
"status": 0
}
1
2
3
4
5
{
"FigPic":
"iVBORw0KGgoAAAANSUhEUgAAAQAAAAFoCAYAAAC41SVRAAAAAXNSR0IArs4c6QAAAARnQU1BAA
Cxjwv8YQUAAAAJcEhZcwAAHYcAAB2HAY/l8WUAAP+lSURBVHhe7N3hq51Xlib2/oeEhJAQEkJIC
AkhIYSEkDE2RtgYG2NjjI1xUVRhiiqKKooqimKKpouih6aZYehh6GYIHYYJQ4YQJgwZwiSTmZAQ
EkJICAkhIYSEfMn+7V7PYd337nPuvbJcVW7rw9J7zn = ",
"code": 0,
"command": "/finger=record",
"message": "獲取指紋成功",
"status": 2
}
1
2
3
4
5
6
7
名稱 類型 必選 約束 中?名 說明
? FigPic string true none none
? code integer true none none
? command string true none none
? message string true none none
? status integer true none none
名稱 位置 類型 必選 說明
body body object 否 none
? url body string 是 none
返回數(shù)據(jù)結構
狀態(tài)碼 200
POST 取消指紋采集
POST /finger=stop
取消指紋采集的操作,返回信息在指紋采集接?,此接?不返回數(shù)據(jù)
打開??
POST 打開??
POST /openwebontablet
Body 請求參數(shù)
請求參數(shù)
{
"url": "http: / gpooh.mw/grevzksem"
}
1
2
3
名稱 類型 必選 約束 中?名 說明
? code integer true none none
? message string true none none
名稱 類型 必選 約束 中?名 說明
? code integer true none none
? message string true none none
返回?例
成功
返回數(shù)據(jù)結構
狀態(tài)碼 200
POST 關閉??
POST /sign=closebrowser
返回?例
成功
返回數(shù)據(jù)結構
狀態(tài)碼 200
{
"code": 0,
"message": "打開網頁成功"
}
1
2
3
4
{
"code": 1,
"message": "關閉網頁成功"
}
1
2
3
4
攝像頭
POST 獲取攝像頭
POST /camera=get
返回?例
成功
{
"camera": [
{
"index": 0,
"name": "ZDXX",
"resolution": [
{
"height": 1944,
"width": 2592
},
{
"height": 1536,
"width": 2048
},
{
"height": 1080,
"width": 1920
},
{
"height": 1200,
"width": 1600
},
{
"height": 1024,
"width": 1280
},
{
"height": 960,
"width": 1280
},
{
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
27
28
29
30
31
"height": 720,
"width": 1280
},
{
"height": 768,
"width": 1024
},
{
"height": 600,
"width": 800
},
{
"height": 480,
"width": 640
}
]
},
{
"index": 1,
"name": "S520-2",
"resolution": [
{
"height": 480,
"width": 640
},
{
"height": 1200,
"width": 1600
},
{
"height": 960,
"width": 1280
},
{
"height": 768,
"width": 1024
},
{
"height": 720,
"width": 1280
},
{
"height": 600,
"width": 800
},
{
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
名稱 類型 必選 約束 中?名 說明
? camera [object] true none none
?? index integer true none none
?? name string true none none
?? resolution [object] true none none
??? height integer true none none
??? width integer true none none
? code integer true none none
? command string true none none
? message string true none none
異常
返回數(shù)據(jù)結構
狀態(tài)碼 200
GET 打開攝像頭
"height": 240,
"width": 320
},
{
"height": 120,
"width": 160
}
]
}
],
"code": 0,
"command": "GetCamera",
"message": "成功"
}
78
79
80
81
82
83
84
85
86
87
88
89
90
91
{
"code": 1,
"command": "GetCamera",
"message": "未找到設備"
}
1
2
3
4
5
名稱 位置 類型 必選 說明
index path string 是 攝像頭索引序號
GET /camera=stream/index=0/width=640/height=480
此接?調?成功后,將持續(xù)以流形式持續(xù)返回攝像頭捕捉畫?,可直接將請求鏈接放在img標簽
的src,即可持續(xù)顯?畫?。
POST 拍照
POST /camera=photo/index={index}
請求參數(shù)
返回?例
成功
異常
POST 關閉攝像頭
POST /camera=close/index={index}
{
"code": 0,
"command": "TakePhoto",
"message": "拍照成功",
"picture":
"/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAcFBQYF7sTwM0jzOSCDxSuFtdDbJtRH5cb8A9xzU0
WtYAcHkYgUUUgR / 9k="
}
1
2
3
4
5
6
{
"code": 1,
"command": "TakePhoto",
"message": "拍照失敗"
}
1
2
3
4
5
名稱 位置 類型 必選 說明
index path string 是 攝像頭索引序號
名稱 類型 必選 約束 中?名 說明
? code integer true none none
? message string true none none
請求參數(shù)
返回?例
成功
返回數(shù)據(jù)結構
狀態(tài)碼 200
讀卡
POST 開始讀取?份證
POST /method=startReadChinaIdCard
提供?個界?提?,然后循環(huán)讀取,讀取到,或者取消讀取,才會返回響應
返回?例
成功
{
"code": 0,
"message": "關閉攝像頭成功"
}
1
2
3
4
{
"code": 0,
"command": "ReadIDCard",
1
2
3
名稱 類型 必選 約束 中?名 說明
? code integer true none none
? command string true none none
? message string true none none
? retData object true none none
?? address string true none none
?? birthday string true none none
?? name string true none none
?? nationality string true none none
?? number string true none none
?? organs string true none none
取消
返回數(shù)據(jù)結構
狀態(tài)碼 200
"message": "讀取信息成功",
"retData": {
"address": "湖省安縣安鄉(xiāng)官村01號",
"birthday": "19880725",
"name": "小帥",
"nationality": "",
"number": "430721198807254914",
"organs": "安鄉(xiāng)縣公安局",
"people": "漢",
"pic":
"/9j/4AAQSkZJRgABAQEAwADAAAD/2wBDAAgGBgcGBQgHBwcJCQgKDGtTnaLXmUVW3GigR / 9k
=",
"sex": "男",
"signdate": "20160307",
"validterm": "20360307"
}
}
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{
"code": 1000,
"message": "取消讀取二代證"
}
1
2
3
4
名稱 類型 必選 約束 中?名 說明
?? people string true none none
?? pic string true none none
?? sex string true none none
?? signdate string true none none
?? validterm string true none none
名稱 類型 必選 約束 中?名 說明
? code integer true none none
? message string true none none
POST 取消讀取?份證
POST /method=cancelReadChinaIdCard
返回?例
成功
返回數(shù)據(jù)結構
狀態(tài)碼 200
POST 開始?證?對
POST /method=startPersonVerify
調?此接?,將彈出?證?對界??動進??臉?對,需要根據(jù)提?放置?份證,直到?對成功
或取消?對時,返回響應數(shù)據(jù)。取消?證?對時,不返回數(shù)據(jù)。
返回?例
成功
{
"code": 0,
"message": "取消讀取二代證"
}
1
2
3
4
名稱 類型 必選 約束 中?名 說明
? code integer true none none
? command string true none none
? message string true none none
? retData object true none none
?? address string true none none
?? birthday string true none none
?? name string true none none
?? number string true none none
?? organs string true none none
?? people string true none none
?? photo string true none none
?? pic string true none none
?? score integer true none none
?? sex string true none none
?? signdate string true none none
返回數(shù)據(jù)結構
狀態(tài)碼 200
{
"code": 0,
"command": "startPersonVerify",
"message": "人證比對成功",
"retData": {
"address": "湖省安縣安鄉(xiāng)官村01號",
"birthday": "19910101",
"name": "小帥",
"number": "430721190000004914",
"organs": "安縣公安局",
"people": "漢",
"photo":
"/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAUDBAQEAwUEBAQFBQUGBwwIBwcHtTnaLXmUVW3Gi
gR / 9k=",
"score": 84,
"sex": "男",
"signdate": "20160307",
"validterm": "20360307"
},
"status": 2
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
名稱 類型 必選 約束 中?名 說明
?? validterm string true none none
? status integer true none none
POST 取消?證?對
POST /method=cancelPersonVerify
返回?例
成功
返回數(shù)據(jù)結構
讀取銀?卡
POST /method=startReadBankCard
服務評價
POST 打開服務評價
POST /evaluation
序列號
POST 讀取序列號
POST /readDeviceData
{
"code": 1,
"command": "cancelPersonVerify",
"message": "取消人證比對",
"status": 1
}
1
2
3
4
5
6
名稱 類型 必選 約束 中?名 說明
? code integer true none none
? data string true none none
? message string true none none
名稱 位置 類型 必選 說明
no path string 是 序列號
返回?例
成功
返回數(shù)據(jù)結構
狀態(tài)碼 200
POST 寫?序列號
POST /deviceDataInit{no}
請求參數(shù)
{
"code": 0,
"data": "",
"message": "讀取序列號成功"
}
1
2
3
4
5