Hello,
we are using the -setReconstructionRegion command to set the bounding box.
Unfortunately for some cases the processed model results in a model that is too big and has blurry outlines.
When I checked the .rcbox file it has the correct width/height etc. Also sometimes if we retrigger the exact same pipeline the reconstruction region was set correctly and has the correct size.
As you can see in the images the models are blurry on the outside and the surface is at least twice or three times the size we specified in the rcbox file.
Do you know what would cause such a situation, or what we could do to prevent it?
Thanks for your response. We run a custom custom script that provides a .rcbox file to the -setReconstructionRegion command.
But the same command with the same file sometimes doesn’t actually set the reconstruction region. When I checked the Reality Capture UI while the automated script was running, I noticed that the reconstruction region was never set. Even if we saw that the -setReconstructionRegion ran and no error was thrown.
Is it possible to check whether the reconstruction region was successfully set via a cli command?
As Daniele said, the weird thing is that if we rerun the same project for a 2nd or 3rd time, the BB will be there and it’ll work. This happens for a wide variety of projects and I couldn’t find any correlation between them. We also can’t do this manually.
I do have additional questions:
Is it possible for the bounding box to fail when it’s being applied but for no error to be raised by the command?
Hi Matej,
this is quite unusual workflow.
Are you using that region in the same project? Do you have set the project and output coordinate system properly? How are you getting the elevation? Are you changing that value in the rcbox file?
Also, I exported the rcbox file and checked it and it is different to yours. Are you adding some lines into that file? As you have widthHeightDepth line twice…
Also, for the centre, are you using the degree coordinates or radians?
As you are running it more times, is that a fresh start of the project?
Regarding the manual testing, I was curious, if it is possible to import the rcbox into your project using the Import Reconstruction Region tool.
I suppose there is no error for the importing of the region in the system.
It seems I gave you some wrong information at the start. I’m not familiar much with RC and was just starting to debug this so sorry for that.
It seems this bug is always constant so it won’t fix by itself after the 1st or 2nd try. I’m guessing that the problem here is with the RC box file.
Regarding the elevation, we parse the rcbox file and read the last value of the CentreEuclid tag. We the increase it by 10 (constant) and set it in the new rcbox file along with the other values such as yaw, width, height, depth, long and lat.
Would RC throw an error if the rcbox file is not formatted correctly or has some incorrect values?
I tried importing it manually by going to Mesh Model → Reconstruction Region in the Import section and then selecting this rcbox file but nothing happens.
Hi Matej, thank you for your file.
I tested it and it looks I am able to import your region (I used original one and also changed the values for my project).
Can you check your Project and Output coordinate system settings?
Also, are the images from the attached picture georeferenced (because I don’t see any orange lines for the images)?
Can you try the application reset (Reset RealityCapture) and then try the import again?
The coordinate system on the Project and the Output is epsg:4326 - GPS (WGS 84).
The component is not Geo-references but I am not sure how or whether there exists a setting for each image.
OK, the usage of different coordinate systems could be a problem there.
Can you show me also the 1Ds view with one selected input image in the component?
As the reconstruction region is georeferenced, also the component must be georeferenced. As it is not for you, it is placed in different position, which is far away from the component and therefore it is not imported.
I tested this on my dataset, turned off the camera priors and nothing happened. To use the reconstruction region I had to turn on the priors and create georeferenced component.
The setting for separated images is in 1Ds view after image selection:
It seems the no Georeference components was my mistake since my local testing env wasn’t the same as production. I’ve changed it and it now applies the BB locally which is even stranger since it’s still not working in production for some buildings.
I’m not quite sure how to continue, do you have an idea of what might go wrong in those cases?
Can you let me know why are the coordinate systems wrong since they both match and are the same as the one in the rcbox file?