Skip to content

Wildcard Option for IMAGE #33

Description

@baqwas

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions