store away person.id per matched face to support match_add_refimg in context menu
This commit is contained in:
@@ -46,6 +46,7 @@
|
||||
{% for face in objs[id].file_details.faces %}
|
||||
data = { 'id': '{{face.id}}', 'x': '{{face.face_left}}', 'y': '{{face.face_top}}', 'w': '{{face.w}}', 'h':'{{face.h}}' }
|
||||
{% if face.refimg %}
|
||||
data['pid']='{{face.refimg.person.id}}'
|
||||
data['who']='{{face.refimg.person.tag}}'
|
||||
data['distance']="{{face.refimg_lnk.face_distance|round(2)}}"
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user