remove use of tmp_locn, use explicit coords, sizes - partial BUG-108 fix
This commit is contained in:
@@ -112,7 +112,12 @@ def AddRefimgToPerson( filename, person ):
|
||||
st.SetMessage( f"<b>Failed to find face in Refimg:</b>" )
|
||||
raise Exception("Could not find face in uploaded reference image" )
|
||||
return
|
||||
# DEL THIS NEXT LINE (BUG-108)
|
||||
refimg.face_locn = json.dumps(face_locn)
|
||||
refimg.face_top = face_locn[0]
|
||||
refimg.face_right = face_locn[1]
|
||||
refimg.face_bottom = face_locn[2]
|
||||
refimg.face_left = face_locn[3]
|
||||
refimg.model_used = settings.default_refimg_model
|
||||
refimg.created_on = time.time()
|
||||
person.refimg.append(refimg)
|
||||
|
||||
Reference in New Issue
Block a user