Package io.scanbot.sdk.ml
Class TensorRtAccelerator
java.lang.Object
io.scanbot.sdk.ml.Accelerator
io.scanbot.sdk.ml.TensorRtAccelerator
TensorRT accelerator.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs TensorRtAccelerator with default parameters.TensorRtAccelerator(String enginePath) Constructs TensorRtAccelerator with the given params. -
Method Summary
-
Constructor Details
-
TensorRtAccelerator
Constructs TensorRtAccelerator with the given params.- Parameters:
enginePath- Directory in which the TensorRT engine files are stored. The SDK automatically generates the files if they are absent. Note, that it might take a few minutes to generate the engine files, therefore it is recommended to set the path to a directory that is not deleted between app launches. If the path is empty, the SDK will generate the engine files in the current working directory. Default is `""`
-
TensorRtAccelerator
public TensorRtAccelerator()Constructs TensorRtAccelerator with default parameters.
-
-
Method Details
-
getEnginePath
Getter for enginePath field. See constructor documentation for more information about the field.- Returns:
- enginePath
-