get metadata earlier
This commit is contained in:
parent
216647c247
commit
d68dcdcdc9
1 changed files with 2 additions and 3 deletions
|
@ -163,11 +163,10 @@ class image_classifier:
|
|||
dirname = os.path.dirname(os.path.realpath(file))
|
||||
filename = os.path.basename(file)
|
||||
people = list()
|
||||
if self.is_image(file):
|
||||
self.process_metadata(file)
|
||||
folder_date = self.get_file_date(file)
|
||||
if folder_date:
|
||||
if self.is_image(file):
|
||||
self.process_metadata(file)
|
||||
|
||||
if self.is_image(file):
|
||||
people = self.find_faces(file)
|
||||
if people:
|
||||
|
|
Loading…
Reference in a new issue