Spaces:
Sleeping
Sleeping
Commit ·
dfe265a
1
Parent(s): 8d42f45
Restore Method dropdown, Image Registration and Radiometric Normalization options
Browse files- static/js/app.js +3 -3
- templates/index.html +17 -2
static/js/app.js
CHANGED
|
@@ -413,12 +413,12 @@ document.getElementById('form-detect')?.addEventListener('submit', async (e) =>
|
|
| 413 |
const form = new FormData();
|
| 414 |
form.append('before', before);
|
| 415 |
form.append('after', after);
|
| 416 |
-
form.append('method', '
|
| 417 |
form.append('title', document.getElementById('detect-title').value || 'Untitled run');
|
| 418 |
form.append('zone', document.getElementById('detect-zone').value || '');
|
| 419 |
form.append('village', document.getElementById('detect-village').value || '');
|
| 420 |
-
form.append('enable_registration', '
|
| 421 |
-
form.append('enable_normalization', '
|
| 422 |
const sensitivityInput = document.getElementById('detect-sensitivity');
|
| 423 |
const minAreaInput = document.getElementById('detect-min-area');
|
| 424 |
const sensitivity = Number(sensitivityInput?.value ?? 0.5);
|
|
|
|
| 413 |
const form = new FormData();
|
| 414 |
form.append('before', before);
|
| 415 |
form.append('after', after);
|
| 416 |
+
form.append('method', document.getElementById('detect-method').value);
|
| 417 |
form.append('title', document.getElementById('detect-title').value || 'Untitled run');
|
| 418 |
form.append('zone', document.getElementById('detect-zone').value || '');
|
| 419 |
form.append('village', document.getElementById('detect-village').value || '');
|
| 420 |
+
form.append('enable_registration', document.getElementById('detect-registration').checked);
|
| 421 |
+
form.append('enable_normalization', document.getElementById('detect-normalization').checked);
|
| 422 |
const sensitivityInput = document.getElementById('detect-sensitivity');
|
| 423 |
const minAreaInput = document.getElementById('detect-min-area');
|
| 424 |
const sensitivity = Number(sensitivityInput?.value ?? 0.5);
|
templates/index.html
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
<meta charset="UTF-8" />
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
| 6 |
<title>AI Change Detection</title>
|
| 7 |
-
<link rel="stylesheet" href="/static/css/style.css?v=
|
| 8 |
</head>
|
| 9 |
<body>
|
| 10 |
<div class="app">
|
|
@@ -203,6 +203,21 @@
|
|
| 203 |
<label for="detect-title">Title</label>
|
| 204 |
<input type="text" id="detect-title" value="Untitled run" placeholder="Run title" />
|
| 205 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 206 |
</div>
|
| 207 |
<div class="options-row">
|
| 208 |
<div class="form-group">
|
|
@@ -345,6 +360,6 @@
|
|
| 345 |
</div>
|
| 346 |
</div>
|
| 347 |
|
| 348 |
-
<script src="/static/js/app.js?v=
|
| 349 |
</body>
|
| 350 |
</html>
|
|
|
|
| 4 |
<meta charset="UTF-8" />
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
| 6 |
<title>AI Change Detection</title>
|
| 7 |
+
<link rel="stylesheet" href="/static/css/style.css?v=21" />
|
| 8 |
</head>
|
| 9 |
<body>
|
| 10 |
<div class="app">
|
|
|
|
| 203 |
<label for="detect-title">Title</label>
|
| 204 |
<input type="text" id="detect-title" value="Untitled run" placeholder="Run title" />
|
| 205 |
</div>
|
| 206 |
+
<div class="form-group">
|
| 207 |
+
<label for="detect-method">Method</label>
|
| 208 |
+
<select id="detect-method">
|
| 209 |
+
<option value="AI-Based Deep Learning">AI-Based Deep Learning</option>
|
| 210 |
+
<option value="Image Difference">Image Difference</option>
|
| 211 |
+
<option value="Feature-Based">Feature-Based</option>
|
| 212 |
+
<option value="Hybrid Approach">Hybrid Approach</option>
|
| 213 |
+
</select>
|
| 214 |
+
</div>
|
| 215 |
+
<div class="form-group checkbox-group">
|
| 216 |
+
<label><input type="checkbox" id="detect-registration" checked /> Image Registration</label>
|
| 217 |
+
</div>
|
| 218 |
+
<div class="form-group checkbox-group">
|
| 219 |
+
<label><input type="checkbox" id="detect-normalization" checked /> Radiometric Normalization</label>
|
| 220 |
+
</div>
|
| 221 |
</div>
|
| 222 |
<div class="options-row">
|
| 223 |
<div class="form-group">
|
|
|
|
| 360 |
</div>
|
| 361 |
</div>
|
| 362 |
|
| 363 |
+
<script src="/static/js/app.js?v=36"></script>
|
| 364 |
</body>
|
| 365 |
</html>
|