-
Notifications
You must be signed in to change notification settings - Fork 0
/
meanshift.html
68 lines (53 loc) · 2.66 KB
/
meanshift.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>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="styles.css">
<link rel="icon" type="image/svg+xml" href="media/favicon.svg">
<script async src="lib/opencv.js" onload="onOpenCvReady();" type="text/javascript"></script>
<title>Barbell Tracker</title>
</head>
<body style="-webkit-user-select: none !important; overscroll-behavior: none !important;">
<nav id="site-navigation" class="site-navigation">
<ul class="main-menu clicky-menu no-js">
<li>
<a href="index.html">Home</a>
</li>
<li>
<a href="backgroundSubtraction.html">Background Subtraction</a>
</li>
<li>
<a class="activePage" href="#">Meanshift</a>
</li>
<li>
<a href="camshift.html">Camshift</a>
</li>
</ul>
</nav>
<div class="divBody">
<br><span id="status">Initializing...</span> <br><br>
<!-- <button id="deviceCameraButton" onclick="changeInputSource()">Device Camera</button> -->
<input id="videoInputButton" type="file" accept="video/*" disabled>
<button id="sampleVideoButton" onclick="loadSampleVideo()">Load Sample Video</button><br>
<button id="toggleStream" onclick="run()">ANALYZE</button><br>
<!-- <button id="analyzeButton" onclick="processVideo()">ANALYZE</button> -->
<!-- <button id="downloadButton" onclick="downloadVideo()">DOWNLOAD</button><br> -->
<!-- <button id="toggleStream" onclick="successCallback()">Play</button> -->
<!-- <button id="kg" onclick="weightUnitChanged(0)" disabled>Kg</button>
<button id="lbs" onclick="weightUnitChanged(1)">lbs</button>
<input style="width: 50px;" id="weight" type="tel"><br> -->
<!-- fps counter ??? -->
<!-- add sliders to change path and dot color ??? -->
<!-- add graphs to display data in a fancy way ??? -->
<!-- automaticaly identify aspect ratio and set video tag size -->
<!-- add button that loads sample video from "/media/sample.mp4" (download video from some weightlifter. fernando reis?) -->
<!-- add button SAVE ANALIZED VIDEO ??? -->
<video id="videoInput" style="display: none;" muted crossorigin="anonymous"></video>
<!-- <video id="videoInput" width="432" height="768" controls loop muted crossorigin="anonymous"></video> -->
<!-- controls autoplay loop muted --><!-- style="display: none;" -->
<canvas id='output'></canvas>
<!-- <canvas id="canvasOutput" width="432" height="768"></canvas> -->
<script src="meanshift.js" type="text/javascript"></script>
</div>
</body>
</html>