-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathrest-api.http
78 lines (59 loc) · 1.52 KB
/
rest-api.http
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
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
78
POST http://localhost:8884/tesseract
Content-Type: multipart/form-data; boundary=WebAppBoundary
--WebAppBoundary
Content-Disposition: form-data; name="options"
Content-Type: application/json
{
"languages": ["eng","deu"]
}
--WebAppBoundary
Content-Disposition: form-data; name="file"; filename="sample.jpg"
< sample.jpg
--WebAppBoundary--
###
POST http://localhost:8884/tesseract
Content-Type: multipart/form-data; boundary=WebAppBoundary
--WebAppBoundary
Content-Disposition: form-data; name="options"
Content-Type: application/json
{
"languages": ["deu","eng"]
}
--WebAppBoundary
Content-Disposition: form-data; name="file"; filename="sample.jpg"
< sample.jpg
--WebAppBoundary--
###
POST http://localhost:8884/tesseract
Content-Type: multipart/form-data; boundary=WebAppBoundary
--WebAppBoundary
Content-Disposition: form-data; name="options"
Content-Type: application/json
{
"languages": ["deu","eng"],
"configParams": {
"tessedit_create_hocr": "1",
"hocr_font_info": "1"
}
}
--WebAppBoundary
Content-Disposition: form-data; name="file"; filename="sample.jpg"
< sample.jpg
--WebAppBoundary--
###
POST http://localhost:8884/tesseract
Content-Type: multipart/form-data; boundary=WebAppBoundary
--WebAppBoundary
Content-Disposition: form-data; name="options"
Content-Type: application/json
{
"languages": ["deu","eng"],
"configParams": {
"hocr_font_info": "1",
"tessedit_create_hocr": "1"
}
}
--WebAppBoundary
Content-Disposition: form-data; name="file"; filename="sample.jpg"
< sample.jpg
--WebAppBoundary--