Commit Graph

648 Commits

Author SHA1 Message Date
5ca8424e58 use class PA / inheritance on dup classes 2021-08-30 18:24:31 +10:00
8f7d6bd77c new bug with clicking on dirs too quick 2021-08-30 18:24:01 +10:00
8c3531d99a use PA class for __repr__ inheritence for Status 2021-08-30 17:55:15 +10:00
dc4ff64600 viewer hotkeys are in tooltip now 2021-08-30 17:47:33 +10:00
78170cace7 fixed bug in viewer where video needs to be resized after prev/next move, also updated TODO 2021-08-30 17:42:58 +10:00
10fcda0d7c convert OPT from a dict to a class 2021-08-29 20:13:26 +10:00
f9bd558727 moved most of the js out to internal/js/view_support.js 2021-08-28 21:45:28 +10:00
c38929d884 viewer now deals with videos and images when next/prev, AND, fullscreen is maintained on videos and handles when escape gets you out as well... 2021-08-28 13:26:07 +10:00
1d3caf17de complete rewrite of viewer, videos need to be fixed. Otherwise, viewer now loads entry data for all "how_many" images on the screen, and allows prev/next movement between images without a DB load for the current page of images, then as required, it will retrieve the prev/next "how_many" from the database via /viewlist route, and go back into view/<id> of the appropriate new image of the new list. Also prevents going below 0 and beyond end of DB for the first time. 2021-08-27 23:38:31 +10:00
652a89161d include the js form the internal dir and viewer now has tooltips on buttons, and all buttons work, call the right javascript, send jobs to the pa_job_manager, and make image go gray with throbber, and on job completion, hide throbber, redraw the image in color and with the newly transformed image 2021-08-15 21:26:43 +10:00
40c0e3631c no need for one-off copy of icons.svg, its now in internal/ 2021-08-15 00:33:50 +10:00
59c72f9aee moving to /internal for a js dir, icons.svg Ive built, etc. and added route in files.py, updates all html to use new path 2021-08-15 00:26:27 +10:00
50ca3098ae adding in static content like icons, js and explicitly ignoring the parts of static we should: Bin, Import, Storage, upstream 2021-08-14 23:08:55 +10:00
6e2d04cd76 updated comments 2021-08-12 23:22:05 +10:00
0180703ae4 updated comments 2021-08-12 20:03:13 +10:00
0c1691d495 updated comments, use secrets to generate SECRET_KEY 2021-08-11 18:20:37 +10:00
06f3fcccd1 updated comments 2021-08-11 18:12:04 +10:00
7bd4552727 updated comments 2021-08-11 18:05:54 +10:00
7db988d752 PROD_HOST comes from shared not also defined in main, also was still referencing book cert - not really a combo that was likely as we used gunicorn not flask in prod, and gunicorn has correct cert set on cmdline 2021-08-11 17:49:32 +10:00
b21d4f78e5 updated comments 2021-08-11 17:44:19 +10:00
5258a7c915 updated comments 2021-08-11 17:33:04 +10:00
a8f5dc4e62 updated comments 2021-08-11 17:29:53 +10:00
5c3087739d updated comments 2021-08-11 17:28:03 +10:00
eb5fc0aa84 updated comments 2021-08-11 17:01:12 +10:00
61c85acf3c updated comments 2021-08-10 21:33:23 +10:00
03a2b4a9d9 updated comments 2021-08-10 21:31:09 +10:00
d49af24fee spacing 2021-08-08 16:18:28 +10:00
ae0d27b284 first pass of usable fullscreen, will need arrow keys to remember state, or realistically pre-load? but for now you can fullscreen the image you are on 2021-07-31 22:49:40 +10:00
902830ad95 viewer now has (non-functional) buttons for rotation, flip, fullscreen, and Ive put icons.svg into the repo as its hand-crafted upstream content so I cant really just download it anymore 2021-07-31 22:40:12 +10:00
6ce92c3398 remove debug 2021-07-29 21:47:27 +10:00
10b2c5cc34 more work on viewer 2021-07-29 21:45:11 +10:00
c0a8ab8f79 allowed view prev/next to remember settings (fname, faces, distance) and use new CreateSelect() for AI menu, also make fname toggle actually do that 2021-07-29 21:44:54 +10:00
7926ab3455 allowed view prev/next to remember settings (fname, faces, distance) 2021-07-29 21:42:58 +10:00
dc35417933 allowed CreateSelect to take list of values for options - used in cnn/hog AI model menu in viewer 2021-07-29 21:42:35 +10:00
566985a477 put face file link here so we can see model in viewer 2021-07-29 21:41:42 +10:00
ebeb085326 alter desc 2021-07-29 21:41:13 +10:00
e0802bc573 move to form toggles, made them bg-info colours give or take, made the fname, face & distance toggles work. The model drop-down is not set correctly, or taking action, but mara needs more rel mem to run cnn model anyway 2021-07-28 21:42:40 +10:00
220200f017 face_distance is a float, also pass model through correctly to FaceFileLink 2021-07-28 21:41:35 +10:00
bd28c0cf64 face_distance is a float 2021-07-28 21:35:12 +10:00
6fb0a0b5db fix up __repr__ for classes to cover model_used, face_distance fields, and viewonly used for refimg_link so we can print face_distance in viewer 2021-07-28 21:34:56 +10:00
b7d346c206 model_used is now per file, not per face, implemented split of default_model to default_refimg_model and default_scan_model in settings, and default_refimg_model actualy works when creating refimgs in person.py. The model_used in face_file_link is based on default settings model and will scan with cnn if chosen and store that in DB as needed. Need viewer to allow changing per file / not just default for future scans 2021-07-27 17:14:03 +10:00
50e28ed27c model_used is not per face, but really per file - well that is how the UI will allow this... for now 2021-07-27 17:11:45 +10:00
cd51ea21bf quick add of default_{model|threshold} to settings, face_refimg_link now stores model_used and face_distance AND working implementation of own face_distance algorithm rather than compareAI(), removed older AI code it would no longer work with DB structures anyway, tweaked viewer to remove coords of unmatched faces for now 2021-07-26 18:39:36 +10:00
555ce70577 renamed AI_Model to AIModel for consistency, added it as a functioning drop-down select on settings page, added face_distance to db and code, put face_distance model_used into all classes ready for use 2021-07-25 15:13:39 +10:00
f6f67b8a69 move import order around, not needed in the end, but doesnt matter so keep it 2021-07-25 15:12:29 +10:00
b40ecbf208 put svgs in icons.svg and reference appropriately, still not happy with pa_logo, but otherwise all working 2021-07-25 13:19:01 +10:00
4f9e03f99e added ai model settings 2021-07-25 13:18:21 +10:00
c6a31f24e5 added ai model settings 2021-07-25 13:18:18 +10:00
04fa819a9a bootstrap 5 done 2021-07-22 21:29:09 +10:00
d25c4fae62 removed last font-awesome and obv. bootstrap5 items 2021-07-22 21:28:54 +10:00