generated from dopt-python/py311
working demo code with significant speed-up #1
@ -127,7 +127,7 @@ def monitor_folder(manager: WindowManager):
|
||||
|
||||
|
||||
def monitor_folder_simple(use_new: bool):
|
||||
print("starting thread...")
|
||||
print("starting procedure...")
|
||||
|
||||
for folder in config_for_test.FOLDER_LIST:
|
||||
# try:
|
||||
@ -157,20 +157,26 @@ def monitor_folder_simple(use_new: bool):
|
||||
|
||||
# Aufgabe 3: check_img im Originalordner anpassen (d. h. gelbe Farbe: work in progress)
|
||||
print("'change_image_to_yellow'...")
|
||||
if use_new:
|
||||
preparation.change_image_to_yellow_new()
|
||||
else:
|
||||
preparation.change_image_to_yellow()
|
||||
SKIP_NEXT = True
|
||||
if not SKIP_NEXT:
|
||||
if use_new:
|
||||
preparation.change_image_to_yellow_new()
|
||||
else:
|
||||
preparation.change_image_to_yellow()
|
||||
|
||||
# sys.exit(0)
|
||||
|
||||
# Aufgabe 4: AOI-Bilder in RGB überführen und zwischenspeichern
|
||||
# wir erhalten hier den Speicherort sowie ggf. Fehlermeldungen zurück
|
||||
print("'create_rgb_images_and_patches'...")
|
||||
if use_new:
|
||||
current_folder, result = preparation.create_rgb_images_and_patches_new()
|
||||
else:
|
||||
current_folder, result = preparation.create_rgb_images_and_patches()
|
||||
SKIP_NEXT = False
|
||||
if not SKIP_NEXT:
|
||||
if use_new:
|
||||
current_folder, result = (
|
||||
preparation.create_rgb_images_and_patches_new()
|
||||
)
|
||||
else:
|
||||
current_folder, result = preparation.create_rgb_images_and_patches()
|
||||
|
||||
print("finished routine")
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user