more work on viewer

This commit is contained in:
2021-07-29 21:45:11 +10:00
parent c0a8ab8f79
commit 10b2c5cc34

23
TODO
View File

@@ -1,9 +1,12 @@
## GENERAL ## GENERAL
* viewer needs to allow toggle to scan_model (and prob. right-click on file... AI (with CNN) AI (with hog) * 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) - [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)
- show matching face distance in viewer - [DONE] show matching face distance in viewer
- might be best for AI_Model to have friendly name (slow, slower) :) - [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 * remove dirs after the duplicate cleanup removes all its content
@@ -14,6 +17,20 @@
* viewer: * 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 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 * 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 - https://stackoverflow.com/questions/28143557/sqlalchemy-convert-column-value-back-and-forth-between-internal-and-database-fo