CLI Specifying Images Help

Hi,

I’m running a trial of the CLI to try and automate our workflow.

I need to be able to process options on certain images in the imported folder via the cli, then process the remaining images in the same folder.

It looks like I can use the -importImageSelection switch to specify images in the imported folder, but how do I list them in the string? A wildcard would be best, but I’ve tried ; and , separators and it just crashes RC.

This is the string I’m using to kick off the job. It all works well apart from the -importImageSelection bits.

 

-addFolder “C:\MyFolder\double\images” -importImageSelection “C:\MyFolder\double\images\Polarised000.png;C:\MyFolder\double\images\Polarised001.png” -enableMeshing false -enableTexturingAndColoring false -align -calculateNormalModel -calculateTexture -enableTexturingAndColoring true -importImageSelection “C:\MyFolder\double\images\Polarised000.png;C:\MyFolder\double\images\Polarised001.png” -enableTexturingAndColoring false -exportModel “Model 1” “C:\MyFolder\double\rcProcessed.obj” “C:\MyFolder\double\objSettings.xml” -save C:\MyFolder\double\doubleProj.rcproj

 

So it should do this:

  • Add the image folder
  • Select the named images
  • Turn off meshing
  • Turn off Texture & Colouring
  • Align those images
  • Calculate the normal model
  • Calculate the texture
  • Turn Texture & Colouring back on for those images
  • Select another set of images
  • Turn off Texturing and Colouring on the new image set
  • Export the Model
  • Save the rcproj

Basically we shoot with polarised and unpolarised setups, then use those to generate 2 image maps and an fbx model out of Reality Capture.

 

Any pointers appreciated!

Managed to work it out.

For anyone going down this path you have two options:

Folder structure to create texture layers:

Project\PHOTOS
            _geometry (empty folder)
            _texture01 (photo set1, renamed to a continuous sequence)
            _texture02 (photo set2, renamed to a continuous sequence with same name as above images)

Or to specify images as texture layers in a single folder:

Project\PHOTOS
            001.jpg.texture01.jpg (photo set 1 as a continuous sequence)
            001.jpg.texture02.jpg (photo set 2 as continuous sequence)
            002.jpg.texture01.jpg
            002.jpg.texture02.jpg

 

Hello Jaime,

please excuse our late response. 

Also, if you wish to select multiple images, you need to list them into a text file and then use importImageSelection command. This will select all the images listed in the file.

Also, in the upcoming release, we are adding more commands for image selection, such as selecting a specific image or using regular expression.