temp fix for another face_locn bug
This commit is contained in:
@@ -45,8 +45,13 @@
|
|||||||
{% for face in objs[id].file_details.faces %}
|
{% for face in objs[id].file_details.faces %}
|
||||||
data = {
|
data = {
|
||||||
'id': '{{face.id}}',
|
'id': '{{face.id}}',
|
||||||
|
{% if face.tmp_locn %}
|
||||||
'x': '{{face.tmp_locn[3]}}', 'y': '{{face.tmp_locn[0]}}',
|
'x': '{{face.tmp_locn[3]}}', 'y': '{{face.tmp_locn[0]}}',
|
||||||
'w': '{{face.tmp_locn[1]-face.tmp_locn[3]}}', 'h':'{{face.tmp_locn[2]-face.tmp_locn[0]}}'
|
'w': '{{face.tmp_locn[1]-face.tmp_locn[3]}}', 'h':'{{face.tmp_locn[2]-face.tmp_locn[0]}}'
|
||||||
|
{% else %}
|
||||||
|
'x': '0', 'y': '0',
|
||||||
|
'w': '1', 'h':'1'
|
||||||
|
{% endif %}
|
||||||
}
|
}
|
||||||
{% if face.refimg %}
|
{% if face.refimg %}
|
||||||
data['who']='{{face.refimg.person.tag}}'
|
data['who']='{{face.refimg.person.tag}}'
|
||||||
|
|||||||
Reference in New Issue
Block a user