Commit 4716f87f authored by YvanM's avatar YvanM

When multiple faces are detected, use the last one: it seems to be the right one

most of the time
parent 7e2b58e4
......@@ -248,7 +248,9 @@ with tempfile.TemporaryDirectory() as tempDir:
cmd.append(picsList[i])
else:
# or sorted using surnames in CSV
print("namesList: " + str(namesList))
order = sorted(range(len(namesList)), key=lambda k: namesList[k])
print("order: " + str(order))
for i in order:
cmd.append("-label")
cmd.append(namesList[i])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment