jebin2 commited on
Commit
cb61203
Β·
1 Parent(s): 44b7f5d
comic_panel_extractor/static/annotator.html CHANGED
@@ -547,7 +547,7 @@
547
  <button class="btn btn-primary btn-block" id="reloadBtn">
548
  πŸ”„ Reload Annotations
549
  </button>
550
- <button class="btn btn-primary btn-block" id="detectBtn" style="margin-top: 8px;">
551
  πŸ”„ Detect Annotations
552
  </button>
553
  <button class="btn btn-secondary btn-block" id="downloadBtn" style="display: none; margin-top: 8px;">
@@ -773,6 +773,7 @@
773
  document.getElementById('canvasPlaceholder').style.display = 'none';
774
  this.canvas.style.display = 'block';
775
  document.getElementById('downloadBtn').style.display = 'block';
 
776
  };
777
  img.src = imageData.image_data;
778
 
@@ -1388,7 +1389,7 @@
1388
  document.getElementById('boxCount').textContent = this.boxes.length;
1389
  this.updateSelectedBoxInfo();
1390
  this.drawCanvas();
1391
- this.showAlert('Annotations reloaded from file', 'success');
1392
  } catch (error) {
1393
  this.showAlert('Error reloading annotations: ' + error.message, 'error');
1394
  }
 
547
  <button class="btn btn-primary btn-block" id="reloadBtn">
548
  πŸ”„ Reload Annotations
549
  </button>
550
+ <button class="btn btn-primary btn-block" id="detectBtn" style="display: none; margin-top: 8px;">
551
  πŸ”„ Detect Annotations
552
  </button>
553
  <button class="btn btn-secondary btn-block" id="downloadBtn" style="display: none; margin-top: 8px;">
 
773
  document.getElementById('canvasPlaceholder').style.display = 'none';
774
  this.canvas.style.display = 'block';
775
  document.getElementById('downloadBtn').style.display = 'block';
776
+ document.getElementById('detectBtn').style.display = 'block';
777
  };
778
  img.src = imageData.image_data;
779
 
 
1389
  document.getElementById('boxCount').textContent = this.boxes.length;
1390
  this.updateSelectedBoxInfo();
1391
  this.drawCanvas();
1392
+ this.showAlert('Annotations detected and loaded from file', 'success');
1393
  } catch (error) {
1394
  this.showAlert('Error reloading annotations: ' + error.message, 'error');
1395
  }