Openmvg: "Invalid regions files for the view" during ComputeMatches

Created on 30 Sep 2018  路  7Comments  路  Source: openMVG/openMVG

Hello, I am trying to run openMVG_main_ComputeMatches on my image dataset but when I do I receive the following error message:

[david@hmd Photogrammetry]$ openMVG_main_ComputeMatches -g e -i OpenMVG/sfm_data.json -o OpenMVG/matches -f 1
 You called : 
openMVG_main_ComputeMatches
--input_file OpenMVG/sfm_data.json
--out_dir OpenMVG/matches
Optional parameters:
--force 1
--ratio 0.8
--geometric_model e
--video_mode_matching -1
--pair_list 
--nearest_matching_method AUTO
--guided_matching 0
--cache_size unlimited

- Regions Loading -
0%   10   20   30   40   50   60   70   80   90   100%
|----|----|----|----|----|----|----|----|----|----|
Invalid regions files for the view: KeckCAVES_G16/IMG_0179.JPG
*Invalid regions files for the view: Invalid regions files for the view: KeckCAVES_G16/IMG_0183.JPG
KeckCAVES_G16/IMG_0180.JPGInvalid regions files for the view: KeckCAVES_G16/IMG_0185.JPG
Invalid regions files for the view: KeckCAVES_G16/IMG_0184.JPGInvalid regions files for the view: KeckCAVES_G16/IMG_0186.JPG
Invalid regions files for the view: KeckCAVES_G16/IMG_0181.JPG

*
Invalid regions files for the view: KeckCAVES_G16/IMG_0182.JPG

Invalid regions.

Any help in the matter is greatly appreciated.

Most helpful comment

Then you should target your features directory with the -o flag, not OpenMVG/matches.

This solved the issue. Thank you everyone for the support.

All 7 comments

Hi,
Maybe there is simply no .feat/.desc file into your OpenMVG/matches.

Hi,
Maybe there is simply no _.feat/_.desc file into your OpenMVG/matches.

Hi @rjanvier, thanks for your response.

I'm not sure what you mean. In a directory I created called features are .feat and .desc files for each image in my dataset, as well as a file called image_describer.json. There is nothing in my matches directory.

Then you should target your features directory with the -o flag, not OpenMVG/matches.

The pipeline expect to have the .feat, .desc and image_describer.jso in the same folder as the sfm_data.json.

So you can create symbolic links to those files in your OpenMVG folder, or just use the same folder as out parameter for InitImageListing and ComputeFeatures

Then you should target your features directory with the -o flag, not OpenMVG/matches.

This solved the issue. Thank you everyone for the support.

gurturk@gurturk:~$ openMVG_main_ComputeMatches -i /home/gurturk/Desktop/openMVG/deneme4/matches/sfm_data.json -o /home/gurturk/Desktop/deneme5/aa/ -g e
You called :
openMVG_main_ComputeMatches
--input_file /home/gurturk/Desktop/openMVG/deneme4/matches/sfm_data.json
--out_dir /home/gurturk/Desktop/deneme5/aa/
Optional parameters:
--force 0
--ratio 0.8
--geometric_model e
--video_mode_matching -1
--pair_list
--nearest_matching_method AUTO
--guided_matching 0
--cache_size unlimited

  • Regions Loading -
    0% 10 20 30 40 50 60 70 80 90 100%
    |----|----|----|----|----|----|----|----|----|----|
    Invalid regions files for the view: /home/gurturk/Desktop/deneme3/G0096068.JPG
    Invalid regions files for the view: Invalid regions files for the view: /home/gurturk/Desktop/deneme3/G0096072.JPG
    *
    Invalid regions files for the view: */home/gurturk/Desktop/deneme3/G0096069.JPG/home/gurturk/Desktop/deneme3/G0096073.JPGInvalid regions files for the view: Invalid regions files for the view: /home/gurturk/Desktop/deneme3/G0096071.JPG
    *
    Invalid regions files for the view: */home/gurturk/Desktop/deneme3/G0096070.JPG

Invalid regions files for the view: /home/gurturk/Desktop/deneme3/G0096074.JPG
/home/gurturk/Desktop/deneme3/G0096067.JPG*



Invalid regions.
gurturk@gurturk:~$ openMVG_main_ComputeMatches -i /home/gurturk/Desktop/openMVG/deneme4/matches/sfm_data.json -o /home/gurturk/Desktop/openMVG/deneme5/aa/ -g e
You called :
openMVG_main_ComputeMatches
--input_file /home/gurturk/Desktop/openMVG/deneme4/matches/sfm_data.json
--out_dir /home/gurturk/Desktop/openMVG/deneme5/aa/
Optional parameters:
--force 0
--ratio 0.8
--geometric_model e
--video_mode_matching -1
--pair_list
--nearest_matching_method AUTO
--guided_matching 0
--cache_size unlimited

  • Regions Loading -
    0% 10 20 30 40 50 60 70 80 90 100%
    |----|----|----|----|----|----|----|----|----|----|
    Invalid regions files for the view: /home/gurturk/Desktop/deneme3/G0096072.JPG
    Invalid regions files for the view: /home/gurturk/Desktop/deneme3/G0096069.JPG
    Invalid regions files for the view: Invalid regions files for the view: /home/gurturk/Desktop/deneme3/G0096071.JPGInvalid regions files for the view: /home/gurturk/Desktop/deneme3/G0096070.JPG
    *Invalid regions files for the view: *
    /home/gurturk/Desktop/deneme3/G0096073.JPG
    Invalid regions files for the view: */home/gurturk/Desktop/deneme3/G0096068.JPG
    /home/gurturk/Desktop/deneme3/G0096067.JPG
    *
    *
    Invalid regions files for the view: */home/gurturk/Desktop/deneme3/G0096074.JPG
    *

Invalid regions.

@pmoulon I'm hvae the same problem. Can you explain in more detail your last mention?

So you can create symbolic links to those files in your OpenMVG folder, or just use the same folder as out parameter for InitImageListing and ComputeFeatures

OpenMVG reuse past loaded region if there is any in the match/out folder.
You can either try the -f 1 option to force OpenMVG to recompute the features and do not try to load existing one or remove everything except the sfm_data.json file in your out folder.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

autosquid picture autosquid  路  4Comments

kalosma picture kalosma  路  4Comments

treyfortmuller picture treyfortmuller  路  5Comments

rttgnck picture rttgnck  路  6Comments

roby23 picture roby23  路  3Comments