koesan commited on
Commit
6537a3d
·
verified ·
1 Parent(s): 6643567

Update templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +10 -82
templates/index.html CHANGED
@@ -351,73 +351,27 @@
351
  <div class="content">
352
  <!-- Info Section -->
353
  <div class="info-section">
354
- <h2>📖 Proje Hakkında</h2>
355
- <p style="color: #495057; font-size: 1.1em; margin-bottom: 20px;">
356
- Bu uygulama, yapay zeka destekli <strong>U-Net derin öğrenme modeli</strong> kullanarak beyin MRI görüntülerinden
357
- <strong>otomatik tümör segmentasyonu</strong> yapar. Model, beyin MRI taramalarındaki tümör bölgelerini
358
- piksel düzeyinde tespit ederek görselleştirir.
 
359
  </p>
360
-
361
- <div class="info-grid">
362
- <div class="info-card">
363
- <h3>🎯 Ne Yapar?</h3>
364
- <p>
365
- Yüklediğiniz beyin MRI görüntüsünü analiz eder ve tümör bölgelerini otomatik olarak segmente eder.
366
- Sonuçları 3 farklı görselleştirme ile sunar:
367
- </p>
368
- <ul>
369
- <li><strong>Orijinal MRI:</strong> Yüklenen görüntü</li>
370
- <li><strong>Tümör Maskesi:</strong> Tespit edilen tümör bölgeleri</li>
371
- <li><strong>Overlay:</strong> Tümörün orijinal görüntü üzerine bindirilmiş hali</li>
372
- </ul>
373
- </div>
374
-
375
- <div class="info-card">
376
- <h3>📥 Hangi Veriyi Yüklemeliyim?</h3>
377
- <p><strong>Gerekli Görüntü Formatı:</strong></p>
378
- <ul>
379
- <li><strong>MRI Tipi:</strong> Beyin MRI görüntüleri (FLAIR modalite)</li>
380
- <li><strong>Format:</strong> PNG, JPG, JPEG</li>
381
- <li><strong>Renk:</strong> Gri tonlamalı (grayscale) tercih edilir</li>
382
- <li><strong>Boyut:</strong> Herhangi bir boyut (model otomatik 160x160'e ölçekler)</li>
383
- <li><strong>Maksimum:</strong> 16MB</li>
384
- </ul>
385
- <p style="margin-top: 10px;">
386
- 💡 <strong>İpucu:</strong> Örnek bir MRI görmek için "Load Example" butonuna tıklayın!
387
- </p>
388
- </div>
389
-
390
- <div class="info-card">
391
- <h3>🤖 Model Detayları</h3>
392
- <p>
393
- <strong>Mimari:</strong> U-Net (Encoder-Decoder)<br>
394
- <strong>Input:</strong> 160x160 grayscale görüntü<br>
395
- <strong>Output:</strong> Binary segmentation mask<br>
396
- <strong>Framework:</strong> TensorFlow 2.15 + Keras<br>
397
- <strong>Eğitim:</strong> BraTS (Brain Tumor Segmentation) dataset
398
- </p>
399
- <p style="margin-top: 10px; font-size: 0.95em; color: #6c757d;">
400
- Model, beyin MRI görüntülerindeki tümörlü bölgeleri yüksek doğrulukla tespit edecek şekilde eğitilmiştir.
401
- </p>
402
- </div>
403
- </div>
404
  </div>
405
 
406
  <div class="upload-section" id="dropZone">
407
  <div class="upload-icon">📤</div>
408
- <h2 style="color: #667eea; margin-bottom: 15px;">Upload Brain MRI Scan</h2>
409
  <p style="color: #6c757d; margin-bottom: 20px;">
410
- Drag and drop your MRI image here or click to browse
411
  </p>
412
 
413
  <div class="file-input-wrapper">
414
- <input type="file" id="fileInput" accept="image/*">
415
  <label for="fileInput" class="file-input-label">
416
- Choose File
417
  </label>
418
- <button class="example-btn" onclick="loadExample()">
419
- Load Example
420
- </button>
421
  </div>
422
 
423
  <div class="selected-file" id="selectedFile"></div>
@@ -517,32 +471,6 @@
517
  }
518
  });
519
 
520
- // Load example image
521
- function loadExample() {
522
- fetch('/example')
523
- .then(response => response.json())
524
- .then(data => {
525
- if (data.image) {
526
- // Convert base64 to blob
527
- fetch(data.image)
528
- .then(res => res.blob())
529
- .then(blob => {
530
- const file = new File([blob], "example.png", { type: "image/png" });
531
- const dataTransfer = new DataTransfer();
532
- dataTransfer.items.add(file);
533
- document.getElementById('fileInput').files = dataTransfer.files;
534
- selectedFile = file;
535
- document.getElementById('selectedFile').textContent = '✓ Example Brain MRI';
536
- document.getElementById('analyzeBtn').disabled = false;
537
- hideResults();
538
- });
539
- }
540
- })
541
- .catch(error => {
542
- showError('Failed to load example image');
543
- });
544
- }
545
-
546
  // Analyze brain scan
547
  function analyzeBrain() {
548
  if (!selectedFile) {
 
351
  <div class="content">
352
  <!-- Info Section -->
353
  <div class="info-section">
354
+ <p style="color: #495057; font-size: 1.05em; line-height: 1.6;">
355
+ <strong>🧠 This app performs automatic brain tumor segmentation</strong> using a U-Net deep learning model trained on BraTS dataset.
356
+ Upload a <strong>.mha brain MRI file</strong> (FLAIR modality) and get pixel-level tumor detection with visualization.
357
+ <a href="https://github.com/koesan/Brain_Segmentation" target="_blank" style="color: #667eea; text-decoration: none; font-weight: 600;">
358
+ 📂 View on GitHub
359
+ </a>
360
  </p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
361
  </div>
362
 
363
  <div class="upload-section" id="dropZone">
364
  <div class="upload-icon">📤</div>
365
+ <h2 style="color: #667eea; margin-bottom: 15px;">Upload Brain MRI Scan (.mha)</h2>
366
  <p style="color: #6c757d; margin-bottom: 20px;">
367
+ Drag and drop your .mha MRI file here or click to browse
368
  </p>
369
 
370
  <div class="file-input-wrapper">
371
+ <input type="file" id="fileInput" accept=".mha">
372
  <label for="fileInput" class="file-input-label">
373
+ Choose .mha File
374
  </label>
 
 
 
375
  </div>
376
 
377
  <div class="selected-file" id="selectedFile"></div>
 
471
  }
472
  });
473
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
474
  // Analyze brain scan
475
  function analyzeBrain() {
476
  if (!selectedFile) {