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 %}
|
{% 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}}' }
|
data = { 'id': '{{face.id}}', 'x': '{{face.face_left}}', 'y': '{{face.face_top}}', 'w': '{{face.w}}', 'h':'{{face.h}}' }
|
||||||
{% if face.refimg %}
|
{% if face.refimg %}
|
||||||
|
data['pid']='{{face.refimg.person.id}}'
|
||||||
data['who']='{{face.refimg.person.tag}}'
|
data['who']='{{face.refimg.person.tag}}'
|
||||||
data['distance']="{{face.refimg_lnk.face_distance|round(2)}}"
|
data['distance']="{{face.refimg_lnk.face_distance|round(2)}}"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user