Template extraction skips earlier created files
This commit is contained in:
parent
33b76cce9a
commit
f7a530395d
@ -110,6 +110,8 @@ for folder in os.listdir(input_directory):
|
||||
if VERBOSE:
|
||||
print("Created folder: " + out_folder)
|
||||
os.mkdir(out_folder)
|
||||
else:
|
||||
continue
|
||||
|
||||
for file in os.listdir(os.path.join(input_directory, folder)):
|
||||
## Laad plaatjes in kleur ##
|
||||
@ -139,6 +141,9 @@ for folder in os.listdir(input_directory):
|
||||
corners,
|
||||
ids)
|
||||
|
||||
if VERBOSE:
|
||||
print("IDs detected:\n", ids)
|
||||
|
||||
if ids is None:
|
||||
print("Skipping: ", filename)
|
||||
print("=============================================")
|
||||
|
Loading…
Reference in New Issue
Block a user