-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
47 lines (47 loc) · 2.55 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>OCR Text Recognition API sample</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://unpkg.com/@picocss/pico@latest/css/pico.min.css">
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="./index.js"></script>
</head>
<body>
<main class="container">
<article style="margin-top: 0px">
<h3 style="text-align: center;">OCR Text Recognition API sample</h3>
<p>This API processes images and performs Optical Character Recognition.</p>
<div style="text-align: center;">
<p>
<a href="mailto:hello@api4.ai"><img src="https://img.shields.io/badge/Send%20email-81b549?logo=googlechat&logoColor=white"></a>
<a target="_blank" href="https://api4.ai/apis/ocr?utm_source=ocr_example_repo&utm_medium=page&utm_campaign=examples"><img src="https://img.shields.io/badge/api4.ai%20platform-fee33c?logo=icloud&logoColor=black"></a>
<a href="https://t.me/a4a_ocr_bot"><img src="https://img.shields.io/badge/-Telegram%20demo-white?logo=telegram"></a>
<a href="https://rapidapi.com/api4ai-api4ai-default/api/ocr43/details"><img src="https://img.shields.io/badge/Subscribe%20to%20API-blue?logo=octopusdeploy&logoColor=white"></a>
</p>
<div>
<a target="_blank" href="https://www.instagram.com/api4ai"><img src="https://img.shields.io/badge/instagram--blue?style=social&logo=instagram"/></a>
<a target="_blank" href="https://www.facebook.com/api4ai.solutions/"><img src="https://img.shields.io/badge/facebook--blue?style=social&logo=facebook"/></a>
<a target="_blank" href="https://twitter.com/Api4Ai"><img src="https://img.shields.io/badge/twitter--blue?style=social&logo=twitter"/></a>
<a target="_blank" href="https://www.linkedin.com/company/api4ai"><img src="https://img.shields.io/badge/linkedin--blue?style=social&logo=linkedin"/></a>
</div>
</div>
</article>
<label for="file">Select image to upload
<input type="file" id="file" name="file">
</label>
<h4 id="spinner" style="text-align: center;" aria-busy="true" hidden>Processing</h4>
<section id="sectionParsed" hidden>
<label for="parsed">💬 Recognized text:
<pre id="parsed" style="padding: 10px;"></pre>
</label>
</section>
<section id="sectionRaw" hidden>
<label for="raw">💬 Raw response:
<pre id="raw" style="padding: 10px;"></pre>
</label>
</section>
</main>
</body>
</html>