remove debugs

This commit is contained in:
2022-07-21 20:56:18 +10:00
parent 8646b3b8c2
commit 0ea6a38269

View File

@@ -119,7 +119,6 @@ def GenThumb(fname,auto_rotate):
try:
if auto_rotate:
# run cmdline util to re-orient jpeg (only changes if needed, and does it losslessly)
print( f"exifautotran {fname}")
p = subprocess.run(["/usr/bin/exifautotran",fname] )
im=Image.open(fname)
# if we don't autorotate/touch the original, we still want the thumbnail oriented the right way
@@ -149,7 +148,6 @@ def GenThumb(fname,auto_rotate):
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]