use r.face now, instead of r.encodings - prep for big cutover to new refimg DB and thumb/face creation
This commit is contained in:
@@ -972,8 +972,8 @@ def JobRunAIOn(job):
|
||||
ppl=session.query(Person).filter(Person.tag==which_person).all()
|
||||
|
||||
# FIXME: probably should be elsewhere, but this is optmised so if refimgs exist for ppl, then it wont regen them
|
||||
for person in ppl:
|
||||
generateKnownEncodings(person)
|
||||
# for person in ppl:
|
||||
# generateKnownEncodings(person)
|
||||
|
||||
for jex in job.extra:
|
||||
if 'eid-' in jex.name:
|
||||
@@ -1435,7 +1435,7 @@ def ScanFileForPerson( job, e, person_id, force=False ):
|
||||
for face in uf:
|
||||
for r in refimgs:
|
||||
unknown_face_data = numpy.frombuffer(face.face, dtype=numpy.float64)
|
||||
refimg_face_data = numpy.frombuffer(r.encodings, dtype=numpy.float64)
|
||||
refimg_face_data = numpy.frombuffer(r.face, dtype=numpy.float64)
|
||||
match = compareAI(refimg_face_data, unknown_face_data)
|
||||
if match[0]:
|
||||
AddLogForJob(job, f'WE MATCHED: {r.fname} with file: {e.name} ')
|
||||
|
||||
Reference in New Issue
Block a user