Fixed BUG-89 -- face_locn -> tmp_locn
This commit is contained in:
6
BUGs
6
BUGs
@@ -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
|
||||
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
|
||||
|
||||
@@ -216,7 +216,7 @@ def person(id):
|
||||
return render_template("base.html" )
|
||||
|
||||
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)
|
||||
return render_template("person.html", person=person, form=form, page_title = page_title)
|
||||
|
||||
|
||||
@@ -33,10 +33,10 @@
|
||||
|
||||
// store this stuff in an javascript Object to use when document is ready event is triggered
|
||||
var orig_face_{{refimg.id}}=new Object;
|
||||
orig_face_{{refimg.id}}.x = {{refimg.face_locn[3]}}
|
||||
orig_face_{{refimg.id}}.y = {{refimg.face_locn[0]}}
|
||||
orig_face_{{refimg.id}}.w = {{refimg.face_locn[1]}}-{{refimg.face_locn[3]}}
|
||||
orig_face_{{refimg.id}}.h = {{refimg.face_locn[2]}}-{{refimg.face_locn[0]}}
|
||||
orig_face_{{refimg.id}}.x = {{refimg.tmp_locn[3]}}
|
||||
orig_face_{{refimg.id}}.y = {{refimg.tmp_locn[0]}}
|
||||
orig_face_{{refimg.id}}.w = {{refimg.tmp_locn[1]}}-{{refimg.tmp_locn[3]}}
|
||||
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_h = {{refimg.orig_h}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user