Exporting from Roomplan when using

When using the RoomPlan UI (RoomCaptureView), one obtains the final result using

 public func captureView(didPresent processedResult: CapturedRoom, error: Error?)

which then gets exported via

finalResults.export(to: url)

What is the best way to do this if only using RoomCaptureSession? Should I just keep track if each CapturedRoom coming back in the delegate methods and use the final one?

Answered by in 718699022

Hi, it depends on what kind of results you would like to export.

  1. The CapturedRoom coming from the delegate methods contains the real-time results during the capture process. You can definitely call the export function to save the CapturedRoom periodically;
  2. If you would like to save the final results after the scanning, calling the export function on the last delegate call back from RoomCaptureSession is not the best or most represented way however. Instead, we recommend to use RoomBuilder to generate a CapturedRoom with CapturedRoomData. In that way, RoomBuilder will run additional processing to generate the best final results.

Thanks.

Accepted Answer

Hi, it depends on what kind of results you would like to export.

  1. The CapturedRoom coming from the delegate methods contains the real-time results during the capture process. You can definitely call the export function to save the CapturedRoom periodically;
  2. If you would like to save the final results after the scanning, calling the export function on the last delegate call back from RoomCaptureSession is not the best or most represented way however. Instead, we recommend to use RoomBuilder to generate a CapturedRoom with CapturedRoomData. In that way, RoomBuilder will run additional processing to generate the best final results.

Thanks.

Exporting from Roomplan when using
 
 
Q