-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
201 lines (198 loc) · 10.2 KB
/
index.html
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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<title>Text Extraction</title>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<link rel="stylesheet" href="style/ocr.css">
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script src="https://kit.fontawesome.com/fe5ed12ca2.js" crossorigin="anonymous"></script>
<script src="https://kit.fontawesome.com/4414288e8e.js"></script>
<script src='js/tesseract.min.js'></script>
</head>
<body>
<div class="main-head">
<h1>AudioVision_Bridge</h1>
<h3>OCR, Translation & Audio</h3>
</div>
<main>
<div class="">
<div class="search-insert">
<div class="lang-pref">
<select id="langsel">
<option value='afr' > Afrikaans </option>
<option value='ara' > Arabic </option>
<option value='aze' > Azerbaijani </option>
<option value='bel' > Belarusian </option>
<option value='ben' > Bengali </option>
<option value='bul' > Bulgarian </option>
<option value='cat' > Catalan </option>
<option value='ces' > Czech </option>
<option value='chi_sim' > Chinese </option>
<option value='chi_tra' > Traditional Chinese </option>
<option value='chr' > Cherokee </option>
<option value='dan' > Danish </option>
<option value='de' > German </option>
<option value='ell' > Greek </option>
<option value='eng' selected> English </option>
<option value='enm' > English (Old) </option>
<option value='meme' > Internet Meme </option>
<option value='epo' > Esperanto </option>
<option value='epo_alt' > Esperanto alternative </option>
<option value='equ' > Math </option>
<option value='est' > Estonian </option>
<option value='eus' > Basque </option>
<option value='fin' > Finnish </option>
<option value='fra' > French </option>
<option value='frk' > Frankish </option>
<option value='frm' > French (Old) </option>
<option value='glg' > Galician </option>
<option value='grc' > Ancient Greek </option>
<option value='heb' > Hebrew </option>
<option value='hin' > Hindi </option>
<option value='hrv' > Croatian </option>
<option value='hun' > Hungarian </option>
<option value='ind' > Indonesian </option>
<option value='isl' > Icelandic </option>
<option value='ita' > Italian </option>
<option value='ita_old' > Italian (Old) </option>
<option value='jpn' > Japanese </option>
<option value='kan' > Kannada </option>
<option value='kor' > Korean </option>
<option value='lav' > Latvian </option>
<option value='lit' > Lithuanian </option>
<option value='mal' > Malayalam </option>
<option value='mkd' > Macedonian </option>
<option value='mlt' > Maltese </option>
<option value='msa' > Malay </option>
<option value='nld' > Dutch </option>
<option value='nor' > Norwegian </option>
<option value='pol' > Polish </option>
<option value='por' > Portuguese </option>
<option value='ron' > Romanian </option>
<option value='rus' > Russian </option>
<option value='slk' > Slovakian </option>
<option value='slv' > Slovenian </option>
<option value='spa' > Spanish </option>
<option value='spa_old' > Old Spanish </option>
<option value='sqi' > Albanian </option>
<option value='srp' > Serbian (Latin) </option>
<option value='swa' > Swahili </option>
<option value='swe' > Swedish </option>
<option value='tam' > Tamil </option>
<option value='tel' > Telugu </option>
<option value='tgl' > Tagalog </option>
<option value='tha' > Thai </option>
<option value='tur' > Turkish </option>
<option value='ukr' > Ukrainian </option>
<option value='vie' > Vietnamese </option>
</select>
</div>
<div class="insert-btn">
<div class="box">
<input type="file" name="file-1[]" id="file-1" class="inputfile inputfile-1" data-multiple-caption="{count} files selected" multiple />
<label for="file-1"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="17" viewBox="0 0 20 17"><path d="M10 0l-5.2 4.9h3.3v5.1h3.8v-5.1h3.3l-5.2-4.9zm9.3 11.5l-3.2-2.1h-2l3.4 2.6h-3.5c-.1 0-.2.1-.2.1l-.8 2.3h-6l-.8-2.2c-.1-.1-.1-.2-.2-.2h-3.6l3.4-2.6h-2l-3.2 2.1c-.4.3-.7 1-.6 1.5l.6 3.1c.1.5.7.9 1.2.9h16.3c.6 0 1.1-.4 1.3-.9l.6-3.1c.1-.5-.2-1.2-.7-1.5z"/></svg> <span>Choose a file…</span></label>
</div>
</div>
</div>
<div class="img-row">
<div class="col-12 col-md-5">
<div class="image-container"><img id="selected-image" src="images/Funny-Minion-Quotes.jpg" class="col-12 p-0" /></div>
</div>
<div class="arrow">
<i id="arrow-right" class="fas fa-arrow-right d-none d-md-block"></i>
<i id="arrow-down" class="fas fa-arrow-down d-block d-md-none"></i>
</div>
<div class="col-12 col-md-6">
<div id="log" data-placeholder="Your extracted will appear here."></div>
</div>
</div>
</div>
<span id="startPre">
<btn id="startLink">Extract Text from Image</btn>
or choose your own image
</span>
<div class="translated">
<div class="translated-options">
<h2>Translated text</h1>
<p class="translationHead">
Get your extracted text translated here in 👇
</p>
<div class="translated-exec">
<select id="langsel-translate">
<!-- <option value="ar-eg">Arabic</option>
<option value="bg-bg">Bulgarian</option>
<option value="ca-es">Catalan</option>
<option value="zh-cn">Chinese</option>
<option value="hr-hr">Croatian</option>
<option value="cs-cz">Czech</option>
<option value="da-dk">Danish</option>
<option value="nl-be">Dutch (Belgium)</option>
<option value="nl-nl">Dutch (Netherlands)</option> -->
<option value="en-au">English (Australia)</option>
<option value="en-ca">English (Canada)</option>
<option value="en-gb">English (Great Britain)</option>
<option value="en-in">English (India)</option>
<option value="en-ie">English (Ireland)</option>
<option value="en-us">English (United States)</option>
<!-- <option value="fi-fi">Finnish</option>
<option value="fr-ca">French (Canada)</option>
<option value="fr-fr">French (France)</option>
<option value="fr-ch">French (Switzerland)</option> -->
<option value="de-at">German (Austria)</option>
<option value="de-de">German (Germany)</option>
<option value="de-ch">German (Switzerland)</option>
<!-- <option value="el-gr">Greek</option>
<option value="he-il">Hebrew</option> -->
<option value="hi-in" selected>Hindi</option>
<!-- <option value="hu-hu">Hungarian</option>
<option value="id-id">Indonesian</option>
<option value="it-it">Italian</option>
<option value="ja-jp">Japanese</option>
<option value="ko-kr">Korean</option>
<option value="ms-my">Malay</option>
<option value="nb-no">Norwegian</option>
<option value="pl-pl">Polish</option>
<option value="pt-br">Portuguese (Brazil)</option>
<option value="pt-pt">Portuguese (Portugal</option>
<option value="ro-ro">Romanian</option>
<option value="ru-ru">Russian</option>
<option value="sk-sk">Slovak</option>
<option value="sl-si">Slovenian</option>
<option value="es-mx">Spanish (Mexico)</option>
<option value="es-es">Spanish (Spain)</option>
<option value="sv-se">Swedish</option>
<option value="ta-in">Tamil</option>
<option value="th-th">Thai</option>
<option value="tr-tr">Turkish</option>
<option value="vi-vn">Vietnamese</option> -->
</select>
<button class="translated-exec-go">Go</button>
</div>
</div>
<div class="translated-text-interface">
<div data-placeholder="The translated text will appear here" class="translated-text">
<span class="placeholder" style="color: gray; opacity: 0.7;">The translated text will appear here</span>
<span class="translated-text-block"></span>
<span class="blink"><span class="blink-1">.</span><span class="blink-2">.</span><span class="blink-3">.</span></span>
</div>
<button class="audioBtn">
Listen to audio
<audio id="audio-elem" src=""></audio>
</button>
</div>
</div>
</main>
<div class="footer">
Made to help <span role="img" aria-label="stethoscope">🎈</span> by <br/><span style="line-height: 1.5;">Shivam Singh</span>
<div class="social-links">
<a href="https://github.com/1502shivam-singh/" target="_blank"><i class="fa-brands fa-github"></i></a>
<a href="https://twitter.com/Shivam15_" target="_blank"><i class="fa-brands fa-twitter"></i></a>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/optiic@latest/dist/index.min.js"></script>
<script type="module" src="./lib/map.js"></script>
<script type="module" src="./app.js"></script>
</body>
</html>