-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
75 lines (75 loc) · 3.23 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>OpenCV Colony Detector</title>
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js"></script>
</head>
<body>
<h1>OpenCV Colony Detector</h1>
<h3 id="status">Status: loading opencv.js...</h3>
<h4>Input image</h4>
<div>
<img id="imageSrc" src="real1.jpg" alt="Default Image" />
<div>Source image: <input type="file" id="fileInput" name="file" /></div>
</div>
<h5>Manipulate parameters below to update blobs automatically.</h5>
<div id="accordion">
<h3>Blob detector method</h3>
<div>
<button type="button" id="blobButton">Blob Detection</button>
<button type="button" id="resetBlob">Reset Result</button>
<fieldset>
<legend>Blob detector parameters</legend>
<table id="blobParams"></table>
</fieldset>
<div>
<canvas id="blobCanvas"></canvas>
</div>
</div>
<h3>HoughCircles method</h3>
<div>
<button type="button" id="circlesButton">Circle Detection</button>
<button type="button" id="resetCircle">Reset Result</button>
<fieldset>
<legend>Hough Circles parameters</legend>
<table>
<tr>
<td>Minimum distance between circles: </td>
<td>
<div id="circleMinDist" style="width:260px; height:5px;">
<div id="custom-handle-mindist" class="ui-slider-handle"></div>
</div>
</td>
</tr>
<tr>
<td>Param 1: </td>
<td>
<div id="circleParam1" style="width:260px; height:5px;">
<div id="custom-handle1" class="ui-slider-handle"></div>
</div>
</td>
</tr>
<tr>
<td>Param 2: </td>
<td>
<div id="circleParam2" style="width:260px; height:5px;">
<div id="custom-handle2" class="ui-slider-handle"></div>
</div>
</td>
</tr>
</table>
</fieldset>
<div>
<canvas id="imageCanvas"></canvas>
</div>
</div>
</div>
<script>$( "#accordion" ).accordion({heightStyle: "content"});</script>
<script type="text/javascript" type="text/javascript" src ="SimpleBlobDetector.js"></script>
<script type="text/javascript" type="text/javascript" src ="processing.js"></script>
<script async src="opencv.js" onload="onOpenCvReady();" type="text/javascript"></script>
</body>
</html>