Fixed BUG-89 -- face_locn -> tmp_locn

This commit is contained in:
2022-07-10 20:28:58 +10:00
parent 37bea367f5
commit 8921e5dbcd
3 changed files with 5 additions and 11 deletions

6
BUGs
View File

@@ -18,10 +18,4 @@ BUG-87: using Person->show matches->then view an image shows bug in viewer with
did with the ORM / tmp_locn.... Will see if it comes back, this stays as a did with the ORM / tmp_locn.... Will see if it comes back, this stays as a
bug for now bug for now
BUG-89: refimg face_locn also got transformed -- some sequence of adding/removing refimg from mich, caused Cams to fail???
pa=# select id, fname, orig_w, orig_h, face_locn from refimg where id=1;
id | fname | orig_w | orig_h | face_locn
----+----------+--------+--------+----------------------
1 | cam.jpg | 978 | 1348 | {514,869,1313,70}
BUG-91: face_recognition not working on many of Mandy's newer phone images BUG-91: face_recognition not working on many of Mandy's newer phone images

View File

@@ -216,7 +216,7 @@ def person(id):
return render_template("base.html" ) return render_template("base.html" )
for r in person.refimg: for r in person.refimg:
r.face_locn=json.loads(r.face_locn) r.tmp_locn=json.loads(r.face_locn)
form = PersonForm(request.values, obj=person) form = PersonForm(request.values, obj=person)
return render_template("person.html", person=person, form=form, page_title = page_title) return render_template("person.html", person=person, form=form, page_title = page_title)

View File

@@ -33,10 +33,10 @@
// store this stuff in an javascript Object to use when document is ready event is triggered // store this stuff in an javascript Object to use when document is ready event is triggered
var orig_face_{{refimg.id}}=new Object; var orig_face_{{refimg.id}}=new Object;
orig_face_{{refimg.id}}.x = {{refimg.face_locn[3]}} orig_face_{{refimg.id}}.x = {{refimg.tmp_locn[3]}}
orig_face_{{refimg.id}}.y = {{refimg.face_locn[0]}} orig_face_{{refimg.id}}.y = {{refimg.tmp_locn[0]}}
orig_face_{{refimg.id}}.w = {{refimg.face_locn[1]}}-{{refimg.face_locn[3]}} orig_face_{{refimg.id}}.w = {{refimg.tmp_locn[1]}}-{{refimg.tmp_locn[3]}}
orig_face_{{refimg.id}}.h = {{refimg.face_locn[2]}}-{{refimg.face_locn[0]}} orig_face_{{refimg.id}}.h = {{refimg.tmp_locn[2]}}-{{refimg.tmp_locn[0]}}
orig_face_{{refimg.id}}.orig_w = {{refimg.orig_w}} orig_face_{{refimg.id}}.orig_w = {{refimg.orig_w}}
orig_face_{{refimg.id}}.orig_h = {{refimg.orig_h}} orig_face_{{refimg.id}}.orig_h = {{refimg.orig_h}}