-
Notifications
You must be signed in to change notification settings - Fork 0
/
hybrid.html
43 lines (37 loc) · 1.6 KB
/
hybrid.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<script src='https://cdn.rawgit.com/naptha/tesseract.js/1.0.10/dist/tesseract.js'></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<title>OCRlibrary</title>
</head>
<body>
<div class="container-fluild p-3 mb-2 bg-warning text-white text-center" >
<h1><span> MIT library OCR </span></h1>
</div>
<label for="fileInput">Choose File to Scan: </label>
<input type="file" id="fileInput" name="fileInput"/>
<br />
<br />
<div id="document-content">
</div>
<div class="card text-white bg-primary mb-3 p-2 m-2" style="max-width:auto;">
<div class="card-block">
<h5 class="card-title text-center">Result</h5>
<p class="card-text">
<div id="ocr_results" class="text-center">
<!-- Results would display here -->
</div></p>
</div>
</div>
</div>
<div id="ocr_status" class="p-2 m-2"> </div>
<input type="button" class="btn btn-outline-danger p-2 container-fluid" value="Refresh Page" onClick="window.location.reload()">
</body>
<script src="ocr.js">
//Script
</script>
</html>