Skip to content
Snippets Groups Projects

Resolve "combine matchsalamander with ai"

Merged Herman Andersen Dyrkorn requested to merge 18-combine-matchsalamander-with-ai into master

Files

+ 3
3
@@ -59,14 +59,14 @@ def match_single_image(input_image, match_image) -> bool:
def match_file_structure(input_image, match_directory) -> int:
for folder in os.listdir(match_directory):
current_dir = match_directory + "\\" + folder
current_dir = match_directory + folder
for filename in os.listdir(current_dir):
if filename.endswith("_str.png"):
match_image = current_dir + "\\" + filename
match_image = current_dir + "/" + filename
res = match_single_image(input_image, match_image)
if res:
return int(folder)
return -1
return -1
# print(match_file_structure("..\\..\\img_analyze\\img81_str.png", "..\\..\\Male"))
Loading