Commit c5b2ee0d authored by AndersLan's avatar AndersLan
Browse files

removed unused variable

parent 97b46ece
......@@ -10,6 +10,7 @@ def match_single_image(input_image, match_image) -> bool:
input_salamander = create_salamander_image(input_image)
match_salamander = create_salamander_image(match_image)
#matching
match = bf.knnMatch(input_salamander.descriptors, match_salamander.descriptors, k=2)
goodmatch = []
......@@ -26,7 +27,6 @@ def match_file_structure(input_image: str, match_directory: str) -> int:
if os.path.isfile(input_image):
for folder in os.listdir(match_directory):
name_list = glob.glob(os.path.join(match_directory, folder, "*_str.*"))
current_dir = os.path.join(match_directory, folder)
for filename in name_list:
res = match_single_image(input_image, filename)
if res:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment