-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtarget_qr_demo_video.html
executable file
·56 lines (49 loc) · 1.95 KB
/
target_qr_demo_video.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
<!doctype html>
<html lang="en">
<head>
<title>Web AR - video</title>
<meta charset="utf-8">
<style>
video, canvas {
margin-left: 10px;
margin-top: 10px;
position: absolute;
}
#pinned-corners-img, #pinned-corners-video, #pinned-corners-text {
position: absolute;
top: 0px;
left: 0px;
width: 300px;
height: 300px;
border: 1px solid red;
background-color: black;
visibility: hidden;
transform-origin: 0 0;
-webkit-transform-origin: 0 0;
-moz-transform-origin: 0 0;
-o-transform-origin: 0 0;
}
</style>
</head>
<body>
<div class="demo-container">
<video id="video" width="400" height="300" autoplay></video>
<canvas id="canvas" width="400" height="300"></canvas>
</div>
<video id="pinned-corners-video" preload="auto" autoplay loop muted="muted" volume="0">
<source src="http://video.webmfiles.org/big-buck-bunny_trailer.webm">
</video>
<script type="text/javascript" src="scripts/lib/aruco/polyfill.js"></script>
<script type="text/javascript" src="scripts/lib/aruco/cv.js"></script>
<script type="text/javascript" src="scripts/lib/aruco/aruco.js"></script>
<script type="text/javascript" src="scripts/lib/aruco/svd.js"></script>
<script type="text/javascript" src="scripts/lib/aruco/posit1.js"></script>
<script type="text/javascript" src="scripts/lib/three/Three.js"></script>
<script type="text/javascript" src="scripts/lib/three/three.min.js"></script>
<script type="text/javascript" src="scripts/ar_base.js"></script>
<script type="text/javascript" src="scripts/src/QRDetectionUtils.js"></script>
<script type="text/javascript" src="scripts/src/pinnedCorners.js"></script>
<!--Main-->
<script type="text/javascript" src="scripts/main_video.js"></script>
</body>
</html>