Hi,
there you need to consider different options.
RealityCapture’s CLI uses basic batch scripting, so it is a good way to start there and check some general workflows.
The mentioned %%f is basically a parameter for the loop (in this case it is a root to folder). Using the scripts like this it is needed to have the batch script in the same folder where you want to work. Also, you need to check the folder structure a prepare it properly for your needs.
For example, the folders FACS 02 and FACS 03 are just image folders? Also, don’t use spaces in your folder names, instead of that use underscores. And you need to remember on the application settings (GCPs, reconstruction region, XMLs). Are you using the same for all your images or each image set has its own?
So, I would use the folder structure:
FACS
FACS_02
Images
Settings
Project
Outputs
FACS_03
Images
Settings
Project
Outputs
BAT_file
And for that structure the script could look like this:
:: root path to work folders where all the datasets are stored (%~dp0 means the folder in which this script is stored)
set RootFolder=%~dp0:: set the name for the high-poly model
:: path to RealityCapture application
set RealityCaptureExe="C:\Program Files\Capturing Reality\RealityCapture\RealityCapture.exe"
::Create loop on which to run RC for all subfolders
:: for /R %%f in (%RootFolder%\..) do >>runscriptrealitycapture
for /D %%f in ("%RootFolder%*") do (
::echo Processing folder: '%%f'^
:: run RealityCapture
%RealityCaptureExe% -newScene ^
-addFolder "%%f\Images" ^
-detectMarkers ^
-importGroundControlPoints "%%f\Settings\DetectPositions.txt" ^
-align ^
-save "%%f\Project\Project.rcproj" ^
-selectMaximalComponent "%%f\Project\Project.rcproj" ^
-setReconstructionRegion "%%f\Settings\forCutFACS.rcbox" ^
-calculateHighModel ^
-save ^
-selectLargestModelComponent ^
-invertTrianglesSelection ^
-removeSelectedTriangles ^
-renameSelectedModel "Unedited" ^
-exportSelectedModel "%%f\Outputs\Harlander_Unedited.obj" ^
-save ^
-quit
)
If you have general setting it can be set as direct path to those settings.
The script wasn’t tested, so maybe it will need some refinements. Good luck with your work!