Commit 873ab3f3 authored by 赵威's avatar 赵威

get info

parent ec38720f
......@@ -50,7 +50,9 @@ def save_diary_image_info(file, face_to_vec_f):
# print(str(diary_id) + " " + after_cover_url)
img = url_to_ndarray(after_cover_url)
faces = face_to_vec_f(img)
print(faces)
for face in faces:
line = str(diary_id) + "\t" + face["feature"] + "\t" + after_cover_url + "\n"
print(line)
def main():
......
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