public class TextDetectType extends Object
This class defines the constants representing the text detection types, which are implemented using the legacy method and deep learning method.
| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static int |
TYPE_DOCUMENT_TEXT_DETECT |
Implements text detection and recognition using the legacy method, rather than using the neural network or
deep learning method.
|
static int |
TYPE_SCENE_TEXT_DETECT |
Implements text detection and recognition using the deep learning method.
|
static int |
TYPE_TEXT_DETECT_FOCUS_SHOOT |
Implements the same function as
TYPE_SCENE_TEXT_DETECT. |
static int |
TYPE_TEXT_DETECT_FOCUS_SHOOT_EF |
Implements the same function as
TYPE_SCENE_TEXT_DETECT. |
static int |
TYPE_TEXT_DETECT_SCREEN_SHOT |
Implements the same function as
TYPE_DOCUMENT_TEXT_DETECT. |
public static final int TYPE_DOCUMENT_TEXT_DETECT
This method can detect and recognize Simplified Chinese, English, and traditional Chinese texts only in horizontal layouts. The method features fast processing speed and can deliver a high precision only for simple background images that contain text in common system fonts. It is recommended that you use this method if you want to detect text in a document or screenshot quickly.
public static final int TYPE_SCENE_TEXT_DETECT
This method can detect and recognize Chinese, English, Japan, Korean, Russian, Spanish, Italian, German, French, and Portuguese texts only in horizontal layouts. The supported languages can be customized as needed. The method features slow processing speed but can deliver a high precision for complex background images that contain tilted or curved texts. It is recommended that you use this method if you want to detect text in an image that has a complex background or contains diverse text types. Note that this method may not be applicable if you have high requirements on the processing speed.
public static final int TYPE_TEXT_DETECT_FOCUS_SHOOT
TYPE_SCENE_TEXT_DETECT.
This constant will be deprecated in later versions.public static final int TYPE_TEXT_DETECT_FOCUS_SHOOT_EF
TYPE_SCENE_TEXT_DETECT.
This constant will be deprecated in later versions.public static final int TYPE_TEXT_DETECT_SCREEN_SHOT
TYPE_DOCUMENT_TEXT_DETECT.
This constant will be deprecated in later versions.