Class TensorRtAccelerator

java.lang.Object
io.scanbot.sdk.ml.Accelerator
io.scanbot.sdk.ml.TensorRtAccelerator

public class TensorRtAccelerator extends Accelerator
TensorRT accelerator.
  • Constructor Details

    • TensorRtAccelerator

      public TensorRtAccelerator(String enginePath)
      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

      public String getEnginePath()
      Getter for enginePath field. See constructor documentation for more information about the field.
      Returns:
      enginePath