PPTextRecSettings

public final class PPTextRecSettings

Settings for PPTextRec. Values fall back through three levels: document → SDK → built-in default. Writes target the document only when set on a document's settings, otherwise the SDK globally when set on SdkSettings.

Functions

Link copied to clipboard
public final int getBatchSize()
Batch size for text recognition inference.
Link copied to clipboard
public final String getConfigPath()
Path to the generated, line-delimited PP-OCRv5 recognition dictionary.
Link copied to clipboard
public final int getMaxImageWidth()
Maximum width for text images
Link copied to clipboard
public final String getModelPath()
Path to the encrypted PP-OCRv5 recognition model.
Link copied to clipboard
public final boolean getUseCpuOnly()
Enable CPU mode for ONNX Runtime.
Link copied to clipboard
public final void setBatchSize(int value)
Batch size for text recognition inference.
Link copied to clipboard
public final void setConfigPath(String value)
Path to the generated, line-delimited PP-OCRv5 recognition dictionary.
Link copied to clipboard
public final void setMaxImageWidth(int value)
Maximum width for text images
Link copied to clipboard
public final void setModelPath(String value)
Path to the encrypted PP-OCRv5 recognition model.
Link copied to clipboard
public final void setUseCpuOnly(boolean value)
Enable CPU mode for ONNX Runtime.