added auto-rotate to settings, not used in job mgr yet
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user