Package com.google.cloud.vision.v1
Enum Feature.Type
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<Feature.Type>
- Enclosing class:
- Feature
public static enum Feature.Type
extends Enum<Feature.Type>
implements com.google.protobuf.ProtocolMessageEnum
Type of Google Cloud Vision API feature to be extracted.Protobuf enum
google.cloud.vision.v1.Feature.Type-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRun crop hints.Run dense text document OCR.Run face detection.Compute a set of image properties, such as the image's dominant colors.Run label detection.Run landmark detection.Run logo detection.Run localizer for object detection.Run Product Search.Run Safe Search to detect potentially unsafe or undesirable content.Run text detection / optical character recognition (OCR).Unspecified feature type.Run web detection. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intRun crop hints.static final intRun dense text document OCR.static final intRun face detection.static final intCompute a set of image properties, such as the image's dominant colors.static final intRun label detection.static final intRun landmark detection.static final intRun logo detection.static final intRun localizer for object detection.static final intRun Product Search.static final intRun Safe Search to detect potentially unsafe or undesirable content.static final intRun text detection / optical character recognition (OCR).static final intUnspecified feature type.static final intRun web detection. -
Method Summary
Modifier and TypeMethodDescriptionstatic Feature.TypeforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<Feature.Type>static Feature.TypevalueOf(int value) Deprecated.static Feature.TypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static Feature.TypeReturns 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.
-
Enum Constant Details
-
TYPE_UNSPECIFIED
Unspecified feature type.
TYPE_UNSPECIFIED = 0; -
FACE_DETECTION
Run face detection.
FACE_DETECTION = 1; -
LANDMARK_DETECTION
Run landmark detection.
LANDMARK_DETECTION = 2; -
LOGO_DETECTION
Run logo detection.
LOGO_DETECTION = 3; -
LABEL_DETECTION
Run label detection.
LABEL_DETECTION = 4; -
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; -
DOCUMENT_TEXT_DETECTION
Run dense text document OCR. Takes precedence when both `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` are present.
DOCUMENT_TEXT_DETECTION = 11; -
SAFE_SEARCH_DETECTION
Run Safe Search to detect potentially unsafe or undesirable content.
SAFE_SEARCH_DETECTION = 6; -
IMAGE_PROPERTIES
Compute a set of image properties, such as the image's dominant colors.
IMAGE_PROPERTIES = 7; -
CROP_HINTS
Run crop hints.
CROP_HINTS = 9; -
WEB_DETECTION
Run web detection.
WEB_DETECTION = 10; -
PRODUCT_SEARCH
Run Product Search.
PRODUCT_SEARCH = 12; -
OBJECT_LOCALIZATION
Run localizer for object detection.
OBJECT_LOCALIZATION = 19; -
UNRECOGNIZED
-
-
Field Details
-
TYPE_UNSPECIFIED_VALUE
public static final int TYPE_UNSPECIFIED_VALUEUnspecified feature type.
TYPE_UNSPECIFIED = 0;- See Also:
-
FACE_DETECTION_VALUE
public static final int FACE_DETECTION_VALUERun face detection.
FACE_DETECTION = 1;- See Also:
-
LANDMARK_DETECTION_VALUE
public static final int LANDMARK_DETECTION_VALUERun landmark detection.
LANDMARK_DETECTION = 2;- See Also:
-
LOGO_DETECTION_VALUE
public static final int LOGO_DETECTION_VALUERun logo detection.
LOGO_DETECTION = 3;- See Also:
-
LABEL_DETECTION_VALUE
public static final int LABEL_DETECTION_VALUERun label detection.
LABEL_DETECTION = 4;- See Also:
-
TEXT_DETECTION_VALUE
public static final int TEXT_DETECTION_VALUERun 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;- See Also:
-
DOCUMENT_TEXT_DETECTION_VALUE
public static final int DOCUMENT_TEXT_DETECTION_VALUERun dense text document OCR. Takes precedence when both `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` are present.
DOCUMENT_TEXT_DETECTION = 11;- See Also:
-
SAFE_SEARCH_DETECTION_VALUE
public static final int SAFE_SEARCH_DETECTION_VALUERun Safe Search to detect potentially unsafe or undesirable content.
SAFE_SEARCH_DETECTION = 6;- See Also:
-
IMAGE_PROPERTIES_VALUE
public static final int IMAGE_PROPERTIES_VALUECompute a set of image properties, such as the image's dominant colors.
IMAGE_PROPERTIES = 7;- See Also:
-
CROP_HINTS_VALUE
public static final int CROP_HINTS_VALUERun crop hints.
CROP_HINTS = 9;- See Also:
-
WEB_DETECTION_VALUE
public static final int WEB_DETECTION_VALUERun web detection.
WEB_DETECTION = 10;- See Also:
-
PRODUCT_SEARCH_VALUE
public static final int PRODUCT_SEARCH_VALUERun Product Search.
PRODUCT_SEARCH = 12;- See Also:
-
OBJECT_LOCALIZATION_VALUE
public static final int OBJECT_LOCALIZATION_VALUERun localizer for object detection.
OBJECT_LOCALIZATION = 19;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-