1
0

Update script

This commit is contained in:
Erick
2022-06-21 11:26:09 +02:00
parent fbc27cab3f
commit 93cdd532ef
+2 -1
View File
@@ -5,6 +5,7 @@ from os import listdir
from os.path import isfile, join from os.path import isfile, join
from pathlib import Path from pathlib import Path
import argparse import argparse
import numpy
# Argument parsing variable declared # Argument parsing variable declared
ap = argparse.ArgumentParser() ap = argparse.ArgumentParser()
@@ -16,7 +17,7 @@ ap.add_argument("-i", "--image",
args = vars(ap.parse_args()) args = vars(ap.parse_args())
# Find all the images in the provided images folder # Find all the images in the provided images folder
mypath = args["D:\TOL"] mypath = args["image"]
onlyfiles = [f for f in listdir(mypath) if isfile(join(mypath, f))] onlyfiles = [f for f in listdir(mypath) if isfile(join(mypath, f))]
images = numpy.empty(len(onlyfiles), dtype=object) images = numpy.empty(len(onlyfiles), dtype=object)