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:
|
if VERBOSE:
|
||||||
print("Created folder: " + out_folder)
|
print("Created folder: " + out_folder)
|
||||||
os.mkdir(out_folder)
|
os.mkdir(out_folder)
|
||||||
|
else:
|
||||||
|
continue
|
||||||
|
|
||||||
for file in os.listdir(os.path.join(input_directory, folder)):
|
for file in os.listdir(os.path.join(input_directory, folder)):
|
||||||
## Laad plaatjes in kleur ##
|
## Laad plaatjes in kleur ##
|
||||||
@ -139,6 +141,9 @@ for folder in os.listdir(input_directory):
|
|||||||
corners,
|
corners,
|
||||||
ids)
|
ids)
|
||||||
|
|
||||||
|
if VERBOSE:
|
||||||
|
print("IDs detected:\n", ids)
|
||||||
|
|
||||||
if ids is None:
|
if ids is None:
|
||||||
print("Skipping: ", filename)
|
print("Skipping: ", filename)
|
||||||
print("=============================================")
|
print("=============================================")
|
||||||
|
Loading…
Reference in New Issue
Block a user