public static class TextConfiguration.Builder extends VisionConfiguration.Builder<TextConfiguration.Builder>
TextConfiguration object.
This class passes plug-in parameters to the TextConfiguration object.
The parameter values are passed by the caller, and the value range is determined by the variable type.
| 构造器 | 说明 |
|---|---|
Builder() |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
TextConfiguration |
build() |
Creates a
TextConfiguration object. |
TextConfiguration.Builder |
setDetectMode(int detectMode) |
Sets the detection mode.
|
TextConfiguration.Builder |
setDetectType(int detectType) |
Sets the detection type.
|
TextConfiguration.Builder |
setIsTracking(int tracking) |
Sets whether to enable text tracking.
|
TextConfiguration.Builder |
setLanguage(int language) |
Sets the language type for text detection.
|
TextConfiguration.Builder |
setLevel(int level) |
Sets the detection level.
|
TextConfiguration.Builder |
setRoi(CvRect roi) |
Sets a region of interest (ROI).
|
TextConfiguration.Builder |
setTextShape(TextConfiguration.TextShape shape) |
Sets the text shape.
|
TextConfiguration.Builder |
setTrackingForceOcr(int forceOcr) |
Sets whether to enable forcible text detection during text tracking.
|
TextConfiguration.Builder |
setTrackingRelease(int release) |
Sets whether to release text tracking resources.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetAppType, setClientPkgName, setClientState, setClientVersion, setProcessModepublic TextConfiguration build()
TextConfiguration object.TextConfiguration object.public TextConfiguration.Builder setDetectType(int detectType)
detectType - Indicates the detection type specified by TextDetectType.TextConfiguration.Builder object with the specified detection type.public TextConfiguration.Builder setRoi(CvRect roi)
roi - Indicates the ROI defined by CvRect.TextConfiguration.Builder object with the specified ROI.public TextConfiguration.Builder setLevel(int level)
level - Indicates the detection level, including TEXT_LEVEL_BLOCK, TEXT_LEVEL_LINE
and TEXT_LEVEL_CHAR.TextConfiguration.Builder object with the specified detection level.public TextConfiguration.Builder setLanguage(int language)
language - Indicates the language type for text detection, including AUTO, CHINESE,
SPANISH etc.TextConfiguration.Builder object with the specified language type.public TextConfiguration.Builder setDetectMode(int detectMode)
detectMode - Indicates the detection mode, including TEXT_RECOG and TEXT_DETECT.TextConfiguration.Builder object with the specified detection mode.public TextConfiguration.Builder setTextShape(TextConfiguration.TextShape shape)
shape - Indicates the text shape defined by TextShape.TextConfiguration.Builder object with the specified text shape.public TextConfiguration.Builder setIsTracking(int tracking)
tracking - Specifies whether to enable text tracking.
Sets 1 if text tracking is set to performed; sets 0 otherwise.TextConfiguration.Builder object with text tracking
enabled or disabled, as specified by tracking.public TextConfiguration.Builder setTrackingRelease(int release)
release - Specifies whether to release text tracking resources.
Sets 1 if text tracking resources are set to be released; sets 0 otherwise.TextConfiguration.Builder object with text tracking resources
released or not released, as specified by release.public TextConfiguration.Builder setTrackingForceOcr(int forceOcr)
forceOcr - Specifies whether to enable forcible text detection during text tracking.
Sets 1 if text detection is set to be forced during text tracking; sets 0 otherwise.TextConfiguration.Builder object with forcible text detection enabled or disabled,
as specified by forceOcr, during text tracking.