-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomputeCalib.html
68 lines (61 loc) · 2.03 KB
/
computeCalib.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
<!DOCTYPE html>
<html>
<head>
<title>3D to 2D Homography with OpenCV.js</title>
<script async src="https://docs.opencv.org/4.x/opencv.js"></script>
<script type="module" src="./calibCompute.js"></script>
<link rel="stylesheet" href="./src/css/mapping.css">
<style>
#fullscreen-button {
position: fixed;
top: 10px;
right: 10px;
padding: 10px 20px;
background-color: #007bff;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
}
body {
background-color: rgb(88, 88, 88);
}
</style>
</head>
<body>
<div id="container">
<div id="circle1" class="circle"></div>
<div id="circle2" class="circle"></div>
<div id="circle3" class="circle"></div>
<div id="circle4" class="circle"></div>
<div id="grid">
<div id="grid-1" class="circle-grid"></div>
<div id="grid-2" class="circle-grid"></div>
<div id="grid-3" class="circle-grid"></div>
<div id="grid-4" class="circle-grid"></div>
<div id="grid-5" class="circle-grid"></div>
<div id="grid-6" class="circle-grid"></div>
<div id="grid-7" class="circle-grid"></div>
<div id="grid-8" class="circle-grid"></div>
<div id="grid-9" class="circle-grid"></div>
<div id="grid-10" class="circle-grid"></div>
<div id="grid-11" class="circle-grid"></div>
<div id="grid-12" class="circle-grid"></div>
<div id="grid-13" class="circle-grid"></div>
<div id="grid-14" class="circle-grid"></div>
<div id="grid-15" class="circle-grid"></div>
<div id="grid-0" class="circle-grid"></div>
</div>
</div>
<button id="fullscreen-button" onclick="toggleFullscreen()">Toggle Fullscreen</button>
<script>
function toggleFullscreen() {
if (!document.fullscreenElement) {
document.documentElement.requestFullscreen();
} else if (document.exitFullscreen) {
document.exitFullscreen();
}
}
</script>
</body>
</html>