-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
89 lines (77 loc) · 3.27 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
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="">
<meta name="author" content="Peter Gyory, Clement Zheng">
<meta name="theme-color" content="#B12A34">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="UTF-8">
<title>Beholder Electron Example</title>
<script src="./src/index.js"></script>
<script src="./src/detection/math.min.js"></script>
<script src="./src/detection/beholder.js"></script>
<script src="./src/detection/background.js"></script>
<link rel="stylesheet" type="text/css" href="./styles/main.css">
<style></style>
</head>
<body>
<div id="toggleScreen">
⥂
</div>
<div id="detectionDiv" class="active">
<canvas id="detection-canvas"></canvas>
<canvas id="detection-canvas-overlay"></canvas>
<div id="parametersMenu">
<div class="parameterItem">
<span>Camera Feed ID</span>
<select name="CAMERA_INDEX" id="CAMERA_INDEX">
<option value="0" label="0" selected></option>
</select>
</div>
<div class="parameterItem">
<span>Video Size</span>
<select name="VIDEO_SIZE_INDEX" id="VIDEO_SIZE_INDEX">
<option value="0" label="320×240"></option>
<option value="1" label="640×480" selected></option>
<option value="2" label="1280×720"></option>
<option value="2" label="1920×1080"></option>
</select>
</div>
<div class="parameterItem">
<span>Min Marker Distance</span>
<input id="MIN_MARKER_DISTANCE" type="number" name="MIN_MARKER_DISTANCE" min="1" max="50" value="10" step="1">
</div>
<div class="parameterItem">
<span>Min Marker Perimeter</span>
<input id="MIN_MARKER_PERIMETER" type="number" name="MIN_MARKER_PERIMETER" min="0.01" max="0.99" value="0.2" step="0.01">
</div>
<div class="parameterItem">
<span>Max Marker Perimeter</span>
<input id="MAX_MARKER_PERIMETER" type="number" name="MAX_MARKER_PERIMETER" min="0.01" max="0.99" value="0.8" step="0.01">
</div>
<div class="parameterItem">
<span>Size After Perspective Removal</span>
<input id="SIZE_AFTER_PERSPECTIVE_REMOVAL" type="number" name="SIZE_AFTER_PERSPECTIVE_REMOVAL" min="1" max="200" value="49" step="1">
</div>
<div class="parameterItem">
<span>Contrast</span>
<input id="IMAGE_CONTRAST" type="number" name="IMAGE_CONTRAST" min="-100" max="100" value="0" step="1">
</div>
<div class="parameterItem">
<span>Brightness</span>
<input id="IMAGE_BRIGHTNESS" type="number" name="IMAGE_BRIGHTNESS" min="-100" max="100" value="0" step="1">
</div>
<div class="parameterItem">
<span>Grayscale</span>
<input id="IMAGE_GRAYSCALE" type="number" name="IMAGE_GRAYSCALE" min="0" max="100" value="0" step="1">
</div>
</div>
</div>
<div id="app" class="">
<!-- WRITE APPLICATION IN HERE -->
<!-- WRITE APPLICATION IN HERE -->
<!-- WRITE APPLICATION IN HERE -->
<canvas id="app-canvas"></canvas>
</div>
</body>
</html>