public static enum Feature.Type extends java.lang.Enum<Feature.Type> implements ProtocolMessageEnum
Type of Google Cloud Vision API feature to be extracted.Protobuf enum
google.cloud.vision.v1.Feature.Type
Enum Constant and Description |
---|
CROP_HINTS
Run crop hints.
|
DOCUMENT_TEXT_DETECTION
Run dense text document OCR.
|
FACE_DETECTION
Run face detection.
|
IMAGE_PROPERTIES
Compute a set of image properties, such as the
image's dominant colors.
|
LABEL_DETECTION
Run label detection.
|
LANDMARK_DETECTION
Run landmark detection.
|
LOGO_DETECTION
Run logo detection.
|
SAFE_SEARCH_DETECTION
Run Safe Search to detect potentially unsafe
or undesirable content.
|
TEXT_DETECTION
Run text detection / optical character recognition (OCR).
|
TYPE_UNSPECIFIED
Unspecified feature type.
|
UNRECOGNIZED |
WEB_DETECTION
Run web detection.
|
Modifier and Type | Field and Description |
---|---|
static int |
CROP_HINTS_VALUE
Run crop hints.
|
static int |
DOCUMENT_TEXT_DETECTION_VALUE
Run dense text document OCR.
|
static int |
FACE_DETECTION_VALUE
Run face detection.
|
static int |
IMAGE_PROPERTIES_VALUE
Compute a set of image properties, such as the
image's dominant colors.
|
static int |
LABEL_DETECTION_VALUE
Run label detection.
|
static int |
LANDMARK_DETECTION_VALUE
Run landmark detection.
|
static int |
LOGO_DETECTION_VALUE
Run logo detection.
|
static int |
SAFE_SEARCH_DETECTION_VALUE
Run Safe Search to detect potentially unsafe
or undesirable content.
|
static int |
TEXT_DETECTION_VALUE
Run text detection / optical character recognition (OCR).
|
static int |
TYPE_UNSPECIFIED_VALUE
Unspecified feature type.
|
static int |
WEB_DETECTION_VALUE
Run web detection.
|
Modifier and Type | Method and Description |
---|---|
static Feature.Type |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<Feature.Type> |
internalGetValueMap() |
static Feature.Type |
valueOf(Descriptors.EnumValueDescriptor desc) |
static Feature.Type |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Feature.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Feature.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Feature.Type TYPE_UNSPECIFIED
Unspecified feature type.
TYPE_UNSPECIFIED = 0;
public static final Feature.Type FACE_DETECTION
Run face detection.
FACE_DETECTION = 1;
public static final Feature.Type LANDMARK_DETECTION
Run landmark detection.
LANDMARK_DETECTION = 2;
public static final Feature.Type LOGO_DETECTION
Run logo detection.
LOGO_DETECTION = 3;
public static final Feature.Type LABEL_DETECTION
Run label detection.
LABEL_DETECTION = 4;
public static final Feature.Type TEXT_DETECTION
Run text detection / optical character recognition (OCR). Text detection is optimized for areas of text within a larger image; if the image is a document, use `DOCUMENT_TEXT_DETECTION` instead.
TEXT_DETECTION = 5;
public static final Feature.Type DOCUMENT_TEXT_DETECTION
Run dense text document OCR. Takes precedence when both `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` are present.
DOCUMENT_TEXT_DETECTION = 11;
public static final Feature.Type SAFE_SEARCH_DETECTION
Run Safe Search to detect potentially unsafe or undesirable content.
SAFE_SEARCH_DETECTION = 6;
public static final Feature.Type IMAGE_PROPERTIES
Compute a set of image properties, such as the image's dominant colors.
IMAGE_PROPERTIES = 7;
public static final Feature.Type CROP_HINTS
Run crop hints.
CROP_HINTS = 9;
public static final Feature.Type WEB_DETECTION
Run web detection.
WEB_DETECTION = 10;
public static final Feature.Type UNRECOGNIZED
public static final int TYPE_UNSPECIFIED_VALUE
Unspecified feature type.
TYPE_UNSPECIFIED = 0;
public static final int FACE_DETECTION_VALUE
Run face detection.
FACE_DETECTION = 1;
public static final int LANDMARK_DETECTION_VALUE
Run landmark detection.
LANDMARK_DETECTION = 2;
public static final int LOGO_DETECTION_VALUE
Run logo detection.
LOGO_DETECTION = 3;
public static final int LABEL_DETECTION_VALUE
Run label detection.
LABEL_DETECTION = 4;
public static final int TEXT_DETECTION_VALUE
Run text detection / optical character recognition (OCR). Text detection is optimized for areas of text within a larger image; if the image is a document, use `DOCUMENT_TEXT_DETECTION` instead.
TEXT_DETECTION = 5;
public static final int DOCUMENT_TEXT_DETECTION_VALUE
Run dense text document OCR. Takes precedence when both `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` are present.
DOCUMENT_TEXT_DETECTION = 11;
public static final int SAFE_SEARCH_DETECTION_VALUE
Run Safe Search to detect potentially unsafe or undesirable content.
SAFE_SEARCH_DETECTION = 6;
public static final int IMAGE_PROPERTIES_VALUE
Compute a set of image properties, such as the image's dominant colors.
IMAGE_PROPERTIES = 7;
public static final int CROP_HINTS_VALUE
Run crop hints.
CROP_HINTS = 9;
public static final int WEB_DETECTION_VALUE
Run web detection.
WEB_DETECTION = 10;
public static Feature.Type[] values()
for (Feature.Type c : Feature.Type.values()) System.out.println(c);
public static Feature.Type valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface Internal.EnumLite
getNumber
in interface ProtocolMessageEnum
@Deprecated public static Feature.Type valueOf(int value)
forNumber(int)
instead.public static Feature.Type forNumber(int value)
public static Internal.EnumLiteMap<Feature.Type> internalGetValueMap()
public final Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface ProtocolMessageEnum
public final Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface ProtocolMessageEnum
public static final Descriptors.EnumDescriptor getDescriptor()
public static Feature.Type valueOf(Descriptors.EnumValueDescriptor desc)