forked from PedroLopes/AR-Marker-Generator
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
97 lines (84 loc) · 3.42 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
<!DOCTYPE html>
<html>
<head>
<title>Online Augmented Reality Marker Generator</title>
<meta charset="utf-8">
<meta name="description" content="Make Augmented Reality Markers directly from the browser! Exports jpeg/pdf/patt in a zip file so you can quickly use them on Vuforia, AR.js, and ARToolki!">
<meta name="keywords" content="augmented reality, vuforia, marker, tracking, ar, artoolkit, arjs, computer vision">
<meta name="author" content="Danilo Gasques">
<meta property="og:title" content="Augmented Reality Marker Generator: Create fiducials/markers that work seamlessly on Vuforia, ARToolkit, and AR.js"/>
<meta property="og:description" content="Make Augmented Reality Markers directly from the browser! Exports jpeg/pdf/patt in a zip file!" />
<meta property="og:image" content="https://danilogr.github.io/AR-Marker-Generator/screenshot.JPG" />
<meta name="viewport" width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0>
<link rel="apple-touch-icon" sizes="180x180" href="apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="favicon-16x16.png">
<link rel="manifest" href="site.webmanifest">
<link rel="mask-icon" href="safari-pinned-tab.svg" color="#5bbad5">
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="theme-color" content="#ffffff">
<style>
html, body {
height: 100%;
margin: 0;
padding: 0;
}
body {
background-color: #333;
display: flex;
/* This centers our sketch horizontally. */
justify-content: center;
/* This centers our sketch vertically. */
align-items: center;
}
.footer {
display: block;
position: absolute;
bottom: 2px;
color: white;
font-family: Courier New,Courier,Lucida Sans Typewriter,Lucida Typewriter,monospace;
}
#status {
display: block;
padding: 4px;
position: absolute;
top: 2px;
font-family: Courier New,Courier,Lucida Sans Typewriter,Lucida Typewriter,monospace;
color: yellow;
background: black;
}
.footer > a, a:link, a:visited {
color: pink;
text-decoration: none;
}
</style>
<!-- p5.js -->
<script src="js/p5.min.js"></script>
<script src="js/p5.dom.min.js"></script>
<!-- computer vision library -->
<script src="js/tracking.min.js"></script>
<!-- menus -->
<script src="js/jsdat.gui.min.js"></script>
<!-- generating pdfs -->
<script src="js/jspdf.min.js"></script>
<!-- generating zipfiles -->
<script src="js/FileSaver.js"></script>
<script src="js/jszip.min.js"></script>
<!-- threejs for rendering marker at different viewpoints (TODO) -->
<!-- arjs for testing the marker at different viewpoints (TODO) -->
<script src="js/threex-arpatternfile.js"></script>
<!-- sketch -->
<script src="markergenerator.js"></script>
</head>
<body>
<div id="markerholder">
</div><br/>
<div id="status">
</div>
<input id="userBackgroundImage" accept=".gif, .png, .jpg, .jpeg" type="file" style="visibility:hidden"/>
<input id="userForegroundImage" accept=".gif, .png, .jpg, .jpeg" type="file" style="visibility:hidden"/>
<div class="footer">
<center><a href="http://danilogasques.com">Danilo Gasques</a> (<a href="https://github.com/danilogr/AR-Marker-Generator">github</a>)</center>
</div>
</body>
</html>