Hello,
If I want to pass along a wildcard value for IMAGE in camera calibration Python script, what will work? The following statement in the script (around line 55) does not work (and my Python ignorance is immediately apparent):
for filename in options.filenames:
Ideally, I could pass along a folder containing all the images. What is the best replacement for the above statement, please? Thanks.
Regards.
P.S.
The following snippet gets stuck "somewhere" after reading the first image file:
script_dir = os.path.dirname(__file__)
files = os.listdir(script_dir + "/calibrate") # options.filenames)
for filename in files: # options.filenames:
fqfn = script_dir + "/calibrate/"+ filename
print(f"Filename {fqfn}")
rgb = cv2.imread(fqfn)
Hello,
If I want to pass along a wildcard value for IMAGE in camera calibration Python script, what will work? The following statement in the script (around line 55) does not work (and my Python ignorance is immediately apparent):
for filename in options.filenames:Ideally, I could pass along a folder containing all the images. What is the best replacement for the above statement, please? Thanks.
Regards.
P.S.
The following snippet gets stuck "somewhere" after reading the first image file: