Skip to content

Out put the openMVG ,But can't find desc file. #103

@Runasia

Description

@Runasia
Image

A nice Work !.. but i meet some problem.

When I use OpenMVG on Windows, it generates matching results like the image above.

However, when I run:

bash
python main.py --dir /root/buildBase --pipeline superpoint+lightglue --openmvg /root/deep-image-matching/config/openmvg_linux.yaml
I can't find the .desc files and only get some .feat files.

Image

I'm confused because I need the OpenMVG's location functionality for related tasks, but the absence of .desc files is causing issues.

I found the following code section:

python
dim.io.export_to_openmvg(
img_dir=imgs_dir,
feature_path=feature_path,
match_path=match_path,
openmvg_out_path=openmvg_out_path,
openmvg_sfm_bin=openmvg_sfm_bin,
openmvg_database=openmvg_database,
camera_config_path=config.general["camera_options"],
)
Then I modified the code below (removed the # comments), but it still didn’t generate the .desc files:

python
def add_keypoints(h5_path, image_path, matches_dir):
keypoint_f = h5py.File(str(h5_path), "r")
for filename in tqdm(list(keypoint_f.keys())):
keypoints = keypoint_f[filename]["keypoints"].array()
name = Path(filename).stem

    path = os.path.join(image_path, filename)
    if not os.path.isfile(path):
        raise OSError(f"Invalid image path {path}")
    if len(keypoints.shape) >= 2:
        threading.Thread(
            target=lambda: saveFeaturesOpenMVG(matches_dir, name, keypoints)
        ).start()
        # threading.Thread(target=lambda: saveDescriptorsOpenMVG(matches_dir, filename, features.descriptors)).start()
return

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions