-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
154 lines (145 loc) · 4.01 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
<html lang="en">
<head>
<title>Auto-Align pen : Align in real time</title>
<link rel="icon" href="title.jpg" type="image/x-icon">
<meta name="google-site-verification" content="cfJk9FLR8RlGvv_xyGc4Z-P6s0WkY_pr9JwI45biJvM" />
<meta name="description" content="Advanced pen alignment and editing capabilities in your browser, Online real time magnetic lasso tool.
Auto align pen does auto alignment in real time as you draw! Helps in computer aided drawing.
Image enhancements like Canny edge detection, Histogram equalisation, Sharpening can also be done. Use for free on desktop or Mobile"/>
<style>
*{
background-color:#FAFAFA;
}
body {
margin-top:3vh;
width:100vw;
margin-left:0;
overflow-x:hidden;
}
div.main{
width:60vw;
height:100vh;
display:inline-block;
}
div.controls{
width:20vw;
height:100vh;
padding-top:18vh;
display:inline-block;
text-align:center;
float:left;
}
div.title{
background-color:#111111E9;
font-size:2.5vw;
top:0%;
font-family:Times;
margin-top:0%;
padding-bottom:0.1%;
padding-top:0.1%;
position:fixed;
width:100vw;
color:#FFFFFF;
text-align:center;}
button {
width:7vw;
border-width: 2px;
border-radius: 5px;
border-style: outset;
border-color:#00FFFF;
background-color: #CCFFFF;
text-decoration: none;
padding: 0.5%;
}
canvas{
margin-left: 3vw;
}
a {
text-decoration: none;
}
span {
color:#FF7777;
}
</style>
</head>
<body>
<div class="controls" id="controls">
<div class="sign"><a href="https://github.com/r7rohan/Auto-align-pen">Auto-align-pen code</a>
<br>
<br>
<a href="https://github.com/r7rohan">by r7rohan</a></div>
<br>
<br>
<br>
<br>
<br>
<br>
<input type="file" id="inp" display="block">
<br>
<br>
<div class="slidecontainer">
<label for="Threshold">Threshold</label>
<input type="range" min="20" max="300" value="90" class="slider" id="Threshold"><br>
</div>
<br>
<div class="slidecontainer">
<label for="distance">Radius</label>
<input type="range" min="7" max="70" value="30" class="slider" id="distance"><br>
</div>
<br>
<div class="slidecontainer">
<label for="distance">Roughness</label>
<input type="range" min="1" max="10" value="4" class="slider" id="smooth"><br>
</div>
<br>
<button id="picture">Picture</button>
<br>
<br>
<div id="enhance">
<button>Enhance</button>
<div id="enhancecontrols" style="display:none;">
<br>
<button id="sobel" width="20%">Canny</button>
<button id="clahe" width="20%">Clahe</button>
<button id="sharpen" width="20%">Sharpen</button>
<button id="custom" width="20%">Filter</button>
</div></div>
<br>
<button id="reset">Reset</button>
<br>
<br>
<a id="dl" download="Canvas.png" href="#">Download</a>
<br>
<br>
<br>
<br>
<label for="max"> Real time On</label>
<input type="checkbox" id="realtime">
<br>
<br>
<label for="max"> Maxdist Off</label>
<input type="checkbox" id="max">
</div>
<div class="title"> Auto Align Pen</div>
<div class = "main" id="main">
<br>
<br>
<br>
<br>
<div id="text" style="font-size:2.5vh;line-height:3.2vh;">Online tool for auto pen alignment. Drawing can be automatically aligned with the edges, either in realtime or when you release your mouse.
It is similar to the magnetic lasso feature but has many more options to draw smooth computer aided traces online.
Additionally, Image enhancements such as Canny Edge detection, CLAHE, Sharpening can also be done. <br><br>
If you don't get the desired result try adjusting <span>Radius</span> and <span>Threshold</span> and try to <span>Smoothen</span>, or also try <span>Image Enhancements</span> <br><br>
<span>Right click</span> to undo, Turn-on <span>realtime</span> to align in real time, Change <span>radius</span> for stronger results, Use <span>reset</span> to reset the drawing </div>
<br>
<br>
<canvas id="canvas"></canvas>
<br>
<br>
</div>
<script src="js\misc.js"></script>
<script src="js\img.js"></script>
<script src="js\main.js"></script>
<script src="js\enhance.js"></script>
</body>
</html>