From 44620f1e1862452e88a4620a8670563596cc9a38 Mon Sep 17 00:00:00 2001 From: Damien De Paoli Date: Mon, 19 Jul 2021 18:48:39 +1000 Subject: [PATCH] viewer now has toggle to turn on face bounding box + nametag --- templates/viewer.html | 78 +++++++++++++++++++++++++++++++------------ 1 file changed, 57 insertions(+), 21 deletions(-) diff --git a/templates/viewer.html b/templates/viewer.html index e771530..e7b6523 100644 --- a/templates/viewer.html +++ b/templates/viewer.html @@ -35,25 +35,47 @@ // actually draw the pixel images to the canvas at the right size context.drawImage(im, 0, 0, canvas.width, canvas.height ) - // draw rect on each face - for( i=0; i
{% set max=eids.split(',')|length %} -
-
+
+ +
+
{% if eids.find(obj.id|string) > 0 %} @@ -94,7 +132,6 @@ {% endif %} faces.push( data ) {% endfor %} - console.log( faces ) var context = canvas.getContext('2d') window.addEventListener('resize', DrawImg, false); @@ -123,8 +160,7 @@ {% endif %} {% endfor %}
-
- + {% endblock main_content %} {% block script_content %}