-
Notifications
You must be signed in to change notification settings - Fork 2
/
binarization.html
42 lines (39 loc) · 1.01 KB
/
binarization.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0,viewport-fit=cover">
<title>BINARYZATION OUTPUT</title>
</head>
<style>
* {
padding: 0;
margin: 0;
}
body {
width: 100vw;
display: flex;
flex-direction: column;
align-items: center;
}
h2 {
margin: 24px 0;
}
.content {
display: block;
width: 700px;
height: 600px;
}
</style>
<body>
<h2>原图</h2>
<img class="content input-image" src="./ocr/ocr-2.jpeg" alt="demo image">
<h2>灰度</h2>
<canvas class="content output-gray" width="700" height="600"></canvas>
<h2>二值化</h2>
<canvas class="content output-binaryzation" width="700" height="600"></canvas>
<script src="./binarization.js"></script>
</body>
</html>