From 9acd5d7d2c1633aa7c65291c629c254a7f0835f6 Mon Sep 17 00:00:00 2001 From: lukas Date: Tue, 25 Feb 2025 18:12:16 +0100 Subject: [PATCH] remove some random lines --- observe_bact.html | 20 ++------------------ observe_main.html | 5 +---- observe_nema.html | 2 +- 3 files changed, 4 insertions(+), 23 deletions(-) diff --git a/observe_bact.html b/observe_bact.html index a3b4816..71a3473 100644 --- a/observe_bact.html +++ b/observe_bact.html @@ -27,18 +27,11 @@ z-index:10; width: 100%; } - #canvas-debug{ - position:absolute; - z-index:10; - width: 20em; - opacity: 100%; - } #photo { position:absolute; z-index:5; width: 100%; - } #canvas-temp{ @@ -117,13 +110,13 @@ +
The screen capture will appear in this box. -
@@ -137,7 +130,6 @@ -
@@ -206,14 +198,12 @@ Choose bacterium Type - -

Fields of View

@@ -364,9 +354,6 @@ request.onsuccess = ()=> { default_protocol_id = request.result.prep_setup; get_all_prep_prefs(); - - // width of FoV -- will be supplied by FLASK microscope setup. - } request.onerror = (err)=> { @@ -433,7 +420,6 @@ // Move to the next record cursor.continue(); } - } request.onerror = (err)=> { @@ -515,7 +501,6 @@ case "Spirochetes": label.classList.add("btn", "btn-outline-danger"); break; - } label.htmlFor = 'org-type-'+bacteria_types[i]+''+index; @@ -687,7 +672,7 @@ var video = document.querySelector("#video"); var out = document.querySelector("#output"); - // opencv stuff + var canvas_draw = document.getElementById("canvas-draw"); const context = canvas_draw.getContext('2d'); @@ -821,7 +806,6 @@ let ind_new = fits[i][1]; let ind_rect = fits[i][2]; let fit = fits[i][3]; - console.log(fit); if (fit > 100000) { break; } diff --git a/observe_main.html b/observe_main.html index 776d49e..23ee433 100644 --- a/observe_main.html +++ b/observe_main.html @@ -1207,14 +1207,11 @@ (ev) => { if (!streaming) { video_aspect = video.videoWidth / video.videoHeight; - video.style.aspectRatio = video_aspect; - photo.style.aspectRatio = video_aspect; - canvas.style.aspectRatio = video_aspect; - canvas_draw.style.aspectRatio = video_aspect; + canvas_draw.height = canvas_draw.height*5; canvas_draw.width = canvas_draw.height*video_aspect; streaming = true; diff --git a/observe_nema.html b/observe_nema.html index a58ce93..39b2f19 100644 --- a/observe_nema.html +++ b/observe_nema.html @@ -543,7 +543,7 @@ // width of FoV -- will be supplied by FLASK microscope setup. var real_width_FoV = 255; - + // init drawing