From 10b2c5cc345fa0badb41afe18b6cc194db38647c Mon Sep 17 00:00:00 2001 From: Damien De Paoli Date: Thu, 29 Jul 2021 21:45:11 +1000 Subject: [PATCH] more work on viewer --- TODO | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/TODO b/TODO index 31c3637..175ac65 100644 --- a/TODO +++ b/TODO @@ -1,9 +1,12 @@ ## GENERAL * viewer needs to allow toggle to scan_model (and prob. right-click on file... AI (with CNN) AI (with hog) - - I think go to html5 toggles for: face, distance (only shows if you toggle face on), drop-down for model (allow change to cnn and reprocess) - - show matching face distance in viewer - - might be best for AI_Model to have friendly name (slow, slower) :) + - [DONE] I think go to html5 toggles for: face, distance (only shows if you toggle face on), drop-down for model (allow change to cnn and reprocess) + - [DONE] show matching face distance in viewer + - [DONE] set AI model based on model used + - [DONE] remember fname/face/distance toggles between images in viewer + - [DONE] might be best for AI_Model to have friendly name (slow, slower) :) + - make the form-select AI_Model actually do the change (but need more mem on mara really) * remove dirs after the duplicate cleanup removes all its content @@ -14,6 +17,20 @@ * viewer: can we make it preload next/prev images, and only reload the image div when we jump? to make arrow-based nav much faster + im_next = new Image() + im_next.src="..." + few things though: + - have to remember the details of not just the src fname, but also face* details + - onload event, what if we use it and use say arrow keys to load/change image, will one beat the other, but if we arrow next too fast, the img wont be loaded? + + fullscreen could maybe use a bit of this: + document.getElementById('canvas').requestFullscreen() + + buttons: + to (re)do faces (always or somehow turn on for select) + rot90, rot180, rot270 + flip h, flip z + fullscreen * could look to remove the hand fixing of json.loads of array data --> seems you can make your own datatype in the ORM, and it can do the conversion every time you use it - https://stackoverflow.com/questions/28143557/sqlalchemy-convert-column-value-back-and-forth-between-internal-and-database-fo