Skip to main content
←API Reference ←NianticSpatial.NSDK.AR.Utilities.Preloading ←IModelPreloader

RegisterModel


Declaration​

public abstract PreloaderStatusCode RegisterModel(DepthMode depthMode, string filepath)

Summary​

Register a local neural network model file for a specific feature. This overrides NSDK's URI for the
specified feature mode and remains in effect until NSDK is deinitialized. The file must be in a
location accessible by the application and remain in place for the duration of the AR session.

Returns​

Returns a PreloaderStatusCode indicating the result of the request.

Parameters​

NameTypeSummary
depthModeDepthMode
-
filepathstring
-

Overload 1​

public abstract PreloaderStatusCode RegisterModel(SceneSegmentationMode sceneSegmentationMode, string filepath)

Summary​

Register a local neural network model file for a specific feature. This overrides NSDK's URI for the
specified feature mode and remains in effect until NSDK is deinitialized. The file must be in a
location accessible by the application and remain in place for the duration of the AR session.

Returns​

Returns a PreloaderStatusCode indicating the result of the request.

Parameters​

NameTypeSummary
depthModeDepthMode
-
filepathstring
-

Overload 2​

public abstract PreloaderStatusCode RegisterModel(ScanningSQCMode scanningSQCMode, string filepath)

Summary​

Register a local neural network model file for a specific feature. This overrides NSDK's URI for the
specified feature mode and remains in effect until NSDK is deinitialized. The file must be in a
location accessible by the application and remain in place for the duration of the AR session.

Returns​

Returns a PreloaderStatusCode indicating the result of the request.

Parameters​

NameTypeSummary
depthModeDepthMode
-
filepathstring
-