20b656985f
added BUG-109, add/del/re-add override and then rebuild DB from scratch causes duplicate/crash in pa_job_mgr
Damien De Paoli2022-12-23 14:52:02 +11:00
ac24c98bed
store individual coords for face data - partial fix for BUG-108
Damien De Paoli2022-12-23 14:51:28 +11:00
ab63f5aaba
remove more face_locn code for BUG-108 clean up
Damien De Paoli2022-12-23 14:36:49 +11:00
87d7bea53a
remove use of tmp_locn, use explicit coords, sizes - partial BUG-108 fix
Damien De Paoli2022-12-23 13:41:38 +11:00
120cb9bd94
remove use of tmp_locn, use explicit coords, sizes - partial BUG-108 fix
Damien De Paoli2022-12-23 13:41:20 +11:00
5f5a41805a
remove use of tmp_locn, use explicit coords, sizes - partial BUG-108 fix
Damien De Paoli2022-12-23 13:38:13 +11:00
4232e139c7
remove use of tmp_locn, use explicit coords, sizes - partial BUG-108 fix
Damien De Paoli2022-12-23 13:35:42 +11:00
59de7c294b
remove use of tmp_locn, use explicit coords, sizes - partial BUG-108 fix
Damien De Paoli2022-12-23 13:32:19 +11:00
dbcdfd44dd
remove use of tmp_locn, use explicit coords, sizes - partial BUG-108 fix
Damien De Paoli2022-12-23 13:28:24 +11:00
ab6c91d540
use new face_top, etc. rather than tmp_locn, partial fix for BUG-108
Damien De Paoli2022-12-23 13:20:45 +11:00
9223f50323
start coversion of locn (array) -> top, right, bottom, left (4 separate integers)
Damien De Paoli2022-12-23 12:03:33 +11:00
a89063d366
interim commit - person now has a fix_faces route that will be used as part of the conversion to get locn -> top, right, bottom, left and using PA class for __repr() instead
Damien De Paoli2022-12-23 12:02:22 +11:00
25919f5a5c
fix BUG-104, dont process keybindings when DBox with text inputs is shown
Damien De Paoli2022-09-20 23:08:45 +10:00
71ec54807a
remove last remnants of Paths, now only 1 directory per path AND created a new db-container subdir that takes the latest postgres image and adds a crontab / uses cron to run a bkup_users.sh script that dumps the person, refimg and linkage table so that if we ever blow the DB away, we dont lose the users
Damien De Paoli2022-09-17 22:40:50 +10:00
11925cd08f
remove path arrays, back to simple string for a path
Damien De Paoli2022-08-08 21:18:28 +10:00
497909693c
try/except for os.remove & remove DEBUG. Also deal with odd situation where we find a face then add it as a refimg and library cant find a face all of a sudden
Damien De Paoli2022-08-08 21:18:01 +10:00
b8babfda32
added note on how to dump out users.sql so we dont have to add those ppl each time we rebuild the DB from scratch -- should really do this as a once a day job or something!
Damien De Paoli2022-08-06 12:11:08 +10:00
60b95b6152
just show error when it fails, and clean up temp files on fail
Damien De Paoli2022-08-06 12:01:32 +10:00
b82d3107dc
fix BUG-104 by only calling exif auto trans on jpegs, not all images
Damien De Paoli2022-08-03 18:00:02 +10:00
a620024de6
remove debug, fix BUG-105 by setting last_update on job always
Damien De Paoli2022-08-03 17:59:41 +10:00
e1f0f54eee
tweaked pa_exifautotran to only be called on jpegs, not all image types
Damien De Paoli2022-08-03 17:58:06 +10:00
064efc5137
chown /code to mythtv as well, as the /code path needs to be writable now that pa_exifautotran re-writes images
Damien De Paoli2022-08-03 17:55:21 +10:00
70521501ab
make pa_exifautotran be more specific - only "skip" the known SOS error, and dont touch file if the output of the rotate is 0 bytes -- JUST IN CASE
Damien De Paoli2022-08-03 17:54:00 +10:00
7ad75830e2
fixed up pa_metadata content to be docker ignored on copy from Dockerfile
Damien De Paoli2022-08-03 17:52:05 +10:00
8575423a7e
BUG-103 thumbnails not rotating, fixed (was a Samsung dodgy photo, and over-caution util to rotate, fixed by tweaking my own verson of that util
Damien De Paoli2022-08-02 18:50:50 +10:00
91b5e1b6d2
created own version of exifautotran (placed into utils), and call it from ./ in non PROD and explciti /code in PROD - it deals with the Samsung created images with invalid SOS which dont autorotate
Damien De Paoli2022-08-02 18:47:24 +10:00
a8af00fe66
big change to get metadata working fully in DB and on Filesystem, and recover from most common scenarios, improved GUI as well for allowing an immediate search after adding refimg as well
Damien De Paoli2022-08-01 23:44:38 +10:00
391b61f3c4
first pass at keeping overrides on face delete - should at least stop code crashing if you try to delete faces from DB and they still had a matching override
Damien De Paoli2022-07-28 21:23:34 +10:00
96810fa1e3
can now do an AI search if we add refimg to new/existing person, cleaned up that dialog to look better with buttons for those options rather than a link. Noticed BUG-100, 2 x mich in one image
Damien De Paoli2022-07-28 18:16:10 +10:00
6135481395
I think the 0 choices 0 files-havent seen it in months, let it go
Damien De Paoli2022-07-28 17:29:52 +10:00
24bcfa0aab
now have a NewJob used in pa_job_mgr and it does not set start_time until it starts, caters for BUG-97 (restarting jobs resetting start times)
Damien De Paoli2022-07-23 00:33:04 +10:00
750b903a9d
using python unbuffered (-u) on job mgr to force output into log file
Damien De Paoli2022-07-21 22:56:50 +10:00
fd79ee2cf4
fix BUG-98 (user cancel of a job not dealing with dependant jobs) & constrain the width of the chosen face in DBox for overrides/create refimg
Damien De Paoli2022-07-19 20:45:54 +10:00
382647a91b
now can create a new person and refimg from viewer - all works
Damien De Paoli2022-07-17 23:03:46 +10:00
9f0dd2ba94
fix up extra debug / file_cnts on RunAIOn job -- when we fix logging, fix this properly
Damien De Paoli2022-07-17 16:45:56 +10:00
f62eaef1cd
fixed BUG-96 (no longer wrapped name of file for image viewer)
Damien De Paoli2022-07-17 16:45:11 +10:00
3193b86f9f
general clean up of lazy dt/dd tag use, also added estimate remainging in the dd for run time, rather than elsewhere
Damien De Paoli2022-07-17 15:57:22 +10:00
d08d10a3ae
if restarting a job, reset file numbering/current_file
Damien De Paoli2022-07-17 15:56:50 +10:00
a1245151d3
when restart JobRunAIOnPath, dont add the path again, move a couple of debug lines to an actual debug
Damien De Paoli2022-07-17 15:32:59 +10:00
4f01125bcc
improved login page to be responsive, also made pretty fname remove paths now we have only 1 imp/sto/bin path -- reduces fname size which is a small help to BUG-96
Damien De Paoli2022-07-16 17:10:05 +10:00
cb4082fd04
also, already fixed BUG-85 - clean out data pa_user_state is cleaned out
Damien De Paoli2022-07-15 22:58:46 +10:00
cfb222e3d1
fix BUG-95 (next button at top doesnt work in flat view)
Damien De Paoli2022-07-15 22:52:02 +10:00
b2dd6a3de0
table.sql now does not pre-set the users, and it connects the sequences for person and refimg - should do the rest, but those allowed me to pg_dump out 3 tables (person, refimg, person_refimg_link), so now on new DB load the person and their ref imgs are in at the start - the sequence connection was needed for the dump to reset the seq on load
Damien De Paoli2022-07-15 22:51:18 +10:00
34c759b7a0
fix up video thumbnailing issue, seems I repalce cv2 with cv2.cv2 in a couple of spots
Damien De Paoli2022-07-15 22:50:11 +10:00
1cfd4d1713
BUG-60 no longer relevant as we only support 1 path
Damien De Paoli2022-07-15 18:06:18 +10:00
3cd1bf056a
added ability to auto-rotate jpegs as we import them. The auto-rotation uses /usr/bin/exifautotran which rotates losslessly, and we optimised to then not also re-rotate the thumbmail. This address a few bugs in the 90s, including the one where Mandys photos were not getting faces (they were rotated), and without really doing anything the odd one where we sometimes lost tmp_locn on first load after db recreation - I cant reproduce so ignoring it
Damien De Paoli2022-07-15 18:01:54 +10:00
84a4cf7cf8
added ability to auto-rotate jpegs as we import them. The auto-rotation uses /usr/bin/exifautotran which rotates losslessly, and we optimised to then not also re-rotate the thumbmail. This address a few bugs in the 90s, including the one where Mandys photos were not getting faces (they were rotated), and without really doing anything the odd one where we sometimes lost tmp_locn on first load after db recreation - I cant reproduce so ignoring it
Damien De Paoli2022-07-15 17:18:31 +10:00
37bea367f5
fixed BUG-90 (not finding best match, but last match)
Damien De Paoli2022-07-10 20:09:22 +10:00
b9359b4680
improve usability on face dbox for search/overrides, etc.
Damien De Paoli2022-07-10 19:25:35 +10:00
9f2ecb1901
just in case, if location or encoding is null when GenFace is run then return None, and catch this in person and show error on GUI -- for now uploading from a phone does odd things to the image format and fails to work in face_recognition.load_image()
Damien De Paoli2022-07-10 16:22:35 +10:00
6b7694f382
first pass of consolidating search in DBox for existing person, and then using the results to add override force match to that person, and WORKING version of adding refimg to existing person too. Still does not kick off new AI scan at this point, and still need to re-format dbox to be easier to use and code for resetting DB contents, rescaning files from scratch and matching overrides back
Damien De Paoli2022-07-10 15:21:31 +10:00
1507addf38
quick add of row/container-fluid for margins - prob. should remove table too one day
Damien De Paoli2022-07-10 15:19:59 +10:00
ba6fbbca70
added <Enter> convenience binding for search person in add manual override
Damien De Paoli2022-06-13 18:53:07 +10:00
b935aa8ab8
can now add/remove overrides (manual or no matchx3) in any sequence of load/reload, or back-to-back and it all works
Damien De Paoli2022-06-13 18:30:13 +10:00
83819a0cb3
minor clean-ups, link-primary now has cursor set via role=button (go figure?) and face distance is not undefined on override, its deliberately set to N/A
Damien De Paoli2022-06-12 17:09:45 +10:00
a53d4896b0
now have functional add/remove manual override to existing person
Damien De Paoli2022-06-11 22:41:31 +10:00
8c78d9e633
progress towards allowing overrides. dbox can now allow finding a person and clicking them to post to back-end.. More work to make this real, for now it goes through the routes but does not update the DB, see bottom of face.py for next steps
Damien De Paoli2022-06-10 16:53:13 +10:00
b0779c2704
reorder scans/db rebuild (affects dev only), also removed unmatched faces from prod until it works - newer view pref code broke it
Damien De Paoli2022-06-10 16:50:34 +10:00
6b67488afe
putting face bytea into override to allow use post face id reordering, also committing to allow once-off overrides
Damien De Paoli2022-06-10 16:49:50 +10:00
18ec0f87f5
fixed BUG-86 - last places changed from locn to tmp_locn
Damien De Paoli2022-06-10 16:49:03 +10:00
3d30d21763
adding wrong person to menu, no code to process, just the item
Damien De Paoli2022-05-28 09:25:58 +10:00
cc478cb722
new BUG-87 - faces with empty locn and no formal connection between file and face? Quick hack added to files as well to at least prevent a 500 server fault, and show it to us if it happens again
Damien De Paoli2022-04-30 19:38:08 +10:00
4a5bde559d
still have a BUG with locn data format being munged in the ORM/DB
Damien De Paoli2022-03-19 11:39:54 +11:00