store individual coords for face data - partial fix for BUG-108

This commit is contained in:
2022-12-23 14:51:28 +11:00
parent ab63f5aaba
commit ac24c98bed

View File

@@ -2399,7 +2399,8 @@ def AddFaceToFile( locn_data, face_data, file_eid, model_id, settings ):
h = locn_data[2] - locn_data[0]
if w < settings.face_size_limit or h < settings.face_size_limit:
return
face = Face( face=face_data.tobytes(), locn=json.dumps(locn_data), w=w, h=h )
face = Face( face=face_data.tobytes(), locn=json.dumps(locn_data), w=w, h=h,
face_top=locn_data[0], face_right=locn_data[1], face_bottom=locn_data[2], face_left=locn_data[3] )
session.add(face)
session.commit()
ffl = FaceFileLink( face_id=face.id, file_eid=file_eid, model_used=model_id )