public class TextConfiguration extends VisionConfiguration
Text.
This class inherits from VisionConfiguration
and includes configurations of the language type, detection type, and detection result.
| 限定符和类型 | 类 | 说明 |
|---|---|---|
static class |
TextConfiguration.Builder |
A nested class used to create a
TextConfiguration object. |
static class |
TextConfiguration.TextShape |
An enumeration class used to store text shapes.
|
| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static int |
AUTO |
Indicates that text elements of an automatically selected language will be detected.
|
static int |
CHINESE |
Indicates that Chinese text elements will be detected.
|
static int |
ENGLISH |
Indicates that English text elements will be detected.
|
static int |
FRENCH |
Indicates that French text elements will be detected.
|
static int |
GERMAN |
Indicates that German text elements will be detected.
|
static int |
ITALIAN |
Indicates that Italian text elements will be detected.
|
static int |
JAPANESE |
Indicates that Japanese text elements will be detected.
|
static int |
KOREAN |
Indicates that Korean text elements will be detected.
|
static int |
PORTUGUESE |
Indicates that Portuguese text elements will be detected.
|
static int |
RUSSIAN |
Indicates that Russian text elements will be detected.
|
static int |
SPANISH |
Indicates that Spanish text elements will be detected.
|
static int |
TEXT_DETECT |
Indicates the text position to be detected.
|
static int |
TEXT_LEVEL_BLOCK |
Indicates a text block.
|
static int |
TEXT_LEVEL_CHAR |
Indicates a text element.
|
static int |
TEXT_LEVEL_LINE |
Indicates a text line.
|
static int |
TEXT_RECOG |
Indicates the text position to be detected and the text content to be recognized.
|
APP_QUICK, APP_TRADITIONAL, appType, clientPkgName, clientState, clientVersion, MODE_IN, MODE_OUT, processMode, STATE_BACKGROUND, STATE_FOREGROUND| 构造器 | 说明 |
|---|---|
TextConfiguration(TextConfiguration.Builder builder) |
A constructor used to create a
TextConfiguration instance. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
static TextConfiguration |
fromPacMap(PacMap paramPacMap) |
Passes the data type of
PacMap to TextConfiguration. |
int |
getDetectMode() |
Obtains the text detection mode.
|
int |
getDetectType() |
Obtains the text detection type specified by
TextDetectType. |
int |
getIsTracking() |
Checks whether to perform text tracking.
|
int |
getLanguage() |
Obtains the language type for text detection.
|
int |
getLevel() |
Obtains the text detection level.
|
PacMap |
getParam() |
Puts text detection parameters into
PacMap. |
CvRect |
getRoi() |
Obtains the ROI of
CvRect. |
TextConfiguration.TextShape |
getTextShape() |
Obtains the text shape, curved or straight.
|
int |
getTrackingForceOcrFlag() |
Checks whether to forcibly detect text during text tracking.
|
int |
getTrackingRelease() |
Checks whether to release the resources for text tracking.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetProcessModepublic static final int AUTO
public static final int CHINESE
public static final int ENGLISH
public static final int FRENCH
public static final int GERMAN
public static final int ITALIAN
public static final int JAPANESE
public static final int KOREAN
public static final int PORTUGUESE
public static final int RUSSIAN
public static final int SPANISH
public static final int TEXT_DETECT
public static final int TEXT_LEVEL_BLOCK
public static final int TEXT_LEVEL_CHAR
public static final int TEXT_LEVEL_LINE
public static final int TEXT_RECOG
public TextConfiguration(TextConfiguration.Builder builder)
TextConfiguration instance.builder - Indicates a configuration entity for text detection.public CvRect getRoi()
CvRect.CvRect.public int getLevel()
TEXT_LEVEL_BLOCK, TEXT_LEVEL_LINE
and TEXT_LEVEL_CHAR.public int getDetectType()
TextDetectType.TextDetectType.public int getLanguage()
AUTO, CHINESE, SPANISH etc.public int getDetectMode()
TEXT_RECOG and TEXT_DETECT.public TextConfiguration.TextShape getTextShape()
public int getIsTracking()
public int getTrackingForceOcrFlag()
public int getTrackingRelease()
public PacMap getParam()
PacMap.getParam 在类中 VisionConfigurationPacMap into which the configuration parameters are put.public static TextConfiguration fromPacMap(PacMap paramPacMap)
PacMap to TextConfiguration.paramPacMap - Indicates a configuration entity for text detection.TextConfiguration to which configuration parameters are passed.