This repository has been archived by the owner on May 19, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
word_cloud.yaml
182 lines (180 loc) · 5.45 KB
/
word_cloud.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
openapi: 3.0.0
info:
title: Word Cloud
version: 0.1.0
description: "## This is API server that provides word cloud image using image and text. \n This server use python library from [word_cloud](https://github.com/amueller/word_cloud) opensource project to genereate word cloud. \n### Supported Language:\n- English \n- coming soon..\n\n ### Supported Word Cloud:\n- Image color\n- Mask color "
contact:
name: API Support (Feature Request, Report Issue)
url: 'https://github.com/gkswjdzz/word_cloud'
paths:
/image_color:
post:
tags:
- Word Cloud
summary: Color a word-cloud based on source image.
description: "[Sample Photo Download Link](https://raw.githubusercontent.com/amueller/word_cloud/master/examples/alice_color.png)\n[Sample Text Download Link](https://raw.githubusercontent.com/amueller/word_cloud/master/examples/alice.txt)"
requestBody:
content:
multipart/form-data:
schema:
type: object
properties:
lang:
type: string
default: en_ewt_0.2.0
enum:
- en_ewt_0.2.0
image:
type: string
format: binary
text:
type: string
format: binary
font_size:
type: integer
description: 'range : 1 ~ 100'
minimum: 1
maximum: 100
default: 40
thing:
type: string
default: person
enum:
- person
- bicycle
- car
- motorcycle
- airplane
- bus
- train
- truck
- boat
- traffic light
- fire hydrant
- street sign
- stop sign
- parking meter
- bench
- bird
- cat
- dog
- horse
- sheep
- cow
- elephant
- bear
- zebra
- giraffe
- hat
- backpack
- umbrella
- shoe
- eye
- handbag
- tie
- suitcase
- frisbee
- skis
- snowboard
- sports ball
- kite
- baseball
- baseball glove
- skateboard
- surfboard
- tennis racket
- bottle
- plate
- wine glass
- cup
- fork
- knife
- spoon
- bowl
- banana
- apple
- sandwich
- orange
- broccoli
- carrot
- hot dog
- pizza
- donut
- cake
- chair
- couch
- potted
- bed
- mirror
- dining table
- window
- desk
- toilet
- door
- tv
- laptop
- mouse
- remote
- keyboard
- cell phone
- microwave
- oven
- toaster
- sink
- refrigerator
- blender
- book
- clock
- vase
- scissors
- teddy bear
- hair drier
- toothbrush
- hair brush
responses:
'200':
description: Result image.
content:
image/*:
schema:
type: string
format: binary
'400':
description: Bad request
/random_color:
post:
tags:
- Word Cloud
summary: Color a word-cloud at random.
description: "[Sample Photo Download Link](https://raw.githubusercontent.com/amueller/word_cloud/master/examples/alice_color.png)\n[Sample Text Download Link](https://raw.githubusercontent.com/amueller/word_cloud/master/examples/alice.txt)"
requestBody:
content:
multipart/form-data:
schema:
type: object
properties:
lang:
type: string
example: en_ewt_0.2.0
image:
type: string
format: binary
text:
type: string
format: binary
responses:
'200':
description: Result image.
content:
image/*:
schema:
type: string
format: binary
'400':
description: Bad request
tags:
- name: Word Cloud
description: Generate word-cloud from image and text.
servers:
- url: 'https://master-word-cloud-gkswjdzz.endpoint.ainize.ai'
security: []