added auto-rotate to settings, not used in job mgr yet

This commit is contained in:
2022-07-13 00:26:24 +10:00
parent 713d9d96a1
commit 3710b573ea
7 changed files with 23 additions and 9 deletions

View File

@@ -140,6 +140,7 @@ def GenThumb(fname):
def GenFace(fname, model):
img = face_recognition.load_image_file(fname)
location = face_recognition.face_locations(img, model=model)
print( f"locn={location}" )
encodings = face_recognition.face_encodings(img, known_face_locations=location)
if len(encodings) and len(location):
return encodings[0].tobytes(), location[0]