forked from JaidedAI/EasyOCR
-
Notifications
You must be signed in to change notification settings - Fork 5
/
openapi.yaml
75 lines (68 loc) · 1.93 KB
/
openapi.yaml
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
openapi: 3.0.1
info:
title: TextReader
description: |
## Upload some image then it will extract text from image.
---
How to use:
* Pick image what you want to extract text
* Excute and wait until the result shows up
---
You can also experiences easyOCR in
[Webpage](https://easyocrgpu-wook-2.endpoint.ainize.ai/)
version: 1.0.0
license:
name: "MIT"
url: ""
servers:
- url: 'https://easyocrgpu-wook-2.endpoint.ainize.ai'
paths:
/word_extraction:
post:
tags:
- TextReader
requestBody:
required: true
description: "Pick image"
content:
multipart/form-data:
schema:
type: object
properties:
base_image:
description: Import Image Here
type: string
format: binary
language:
description: |
Please type proper language(ex. ko):
lang | definition
----|------------
ko | Korean
ja | Japanese
th | Thai
ch_tra| Chinese
ch_sim| Simplified Chinese
latin | Latin
type: string
enum: ['ko', 'ja', 'th', 'ch_tra', 'ch_sim', 'latin']
default: 'ko'
encoding:
files:
contentType: image/*, string
responses:
'200':
description: success
content:
images/*:
schema:
type: string
format: binary
string:
schema:
type: string
format: binary
'400':
description: Bad request (Can not load images)
'500':
description: Server Side Error