public final class ImageContext extends GeneratedMessageV3 implements ImageContextOrBuilder
Image context and/or feature-specific parameters.
Protobuf type google.cloud.vision.v1.ImageContext
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
Static Fields
CROP_HINTS_PARAMS_FIELD_NUMBER
public static final int CROP_HINTS_PARAMS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
LANGUAGE_HINTS_FIELD_NUMBER
public static final int LANGUAGE_HINTS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
LAT_LONG_RECT_FIELD_NUMBER
public static final int LAT_LONG_RECT_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
PRODUCT_SEARCH_PARAMS_FIELD_NUMBER
public static final int PRODUCT_SEARCH_PARAMS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
TEXT_DETECTION_PARAMS_FIELD_NUMBER
public static final int TEXT_DETECTION_PARAMS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
WEB_DETECTION_PARAMS_FIELD_NUMBER
public static final int WEB_DETECTION_PARAMS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static ImageContext getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static ImageContext.Builder newBuilder()
newBuilder(ImageContext prototype)
public static ImageContext.Builder newBuilder(ImageContext prototype)
parseDelimitedFrom(InputStream input)
public static ImageContext parseDelimitedFrom(InputStream input)
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ImageContext parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static ImageContext parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ImageContext parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static ImageContext parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ImageContext parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
parseFrom(CodedInputStream input)
public static ImageContext parseFrom(CodedInputStream input)
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ImageContext parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(InputStream input)
public static ImageContext parseFrom(InputStream input)
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ImageContext parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static ImageContext parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ImageContext parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<ImageContext> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getCropHintsParams()
public CropHintsParams getCropHintsParams()
Parameters for crop hints annotation request.
.google.cloud.vision.v1.CropHintsParams crop_hints_params = 4;
getCropHintsParamsOrBuilder()
public CropHintsParamsOrBuilder getCropHintsParamsOrBuilder()
Parameters for crop hints annotation request.
.google.cloud.vision.v1.CropHintsParams crop_hints_params = 4;
getDefaultInstanceForType()
public ImageContext getDefaultInstanceForType()
getLanguageHints(int index)
public String getLanguageHints(int index)
List of languages to use for TEXT_DETECTION. In most cases, an empty value
yields the best results since it enables automatic language detection. For
languages based on the Latin alphabet, setting language_hints
is not
needed. In rare cases, when the language of the text in the image is known,
setting a hint will help get better results (although it will be a
significant hindrance if the hint is wrong). Text detection returns an
error if one or more of the specified languages is not one of the
supported languages.
repeated string language_hints = 2;
Parameter |
---|
Name | Description |
index | int
The index of the element to return.
|
Returns |
---|
Type | Description |
String | The languageHints at the given index.
|
getLanguageHintsBytes(int index)
public ByteString getLanguageHintsBytes(int index)
List of languages to use for TEXT_DETECTION. In most cases, an empty value
yields the best results since it enables automatic language detection. For
languages based on the Latin alphabet, setting language_hints
is not
needed. In rare cases, when the language of the text in the image is known,
setting a hint will help get better results (although it will be a
significant hindrance if the hint is wrong). Text detection returns an
error if one or more of the specified languages is not one of the
supported languages.
repeated string language_hints = 2;
Parameter |
---|
Name | Description |
index | int
The index of the value to return.
|
Returns |
---|
Type | Description |
ByteString | The bytes of the languageHints at the given index.
|
getLanguageHintsCount()
public int getLanguageHintsCount()
List of languages to use for TEXT_DETECTION. In most cases, an empty value
yields the best results since it enables automatic language detection. For
languages based on the Latin alphabet, setting language_hints
is not
needed. In rare cases, when the language of the text in the image is known,
setting a hint will help get better results (although it will be a
significant hindrance if the hint is wrong). Text detection returns an
error if one or more of the specified languages is not one of the
supported languages.
repeated string language_hints = 2;
Returns |
---|
Type | Description |
int | The count of languageHints.
|
getLanguageHintsList()
public ProtocolStringList getLanguageHintsList()
List of languages to use for TEXT_DETECTION. In most cases, an empty value
yields the best results since it enables automatic language detection. For
languages based on the Latin alphabet, setting language_hints
is not
needed. In rare cases, when the language of the text in the image is known,
setting a hint will help get better results (although it will be a
significant hindrance if the hint is wrong). Text detection returns an
error if one or more of the specified languages is not one of the
supported languages.
repeated string language_hints = 2;
getLatLongRect()
public LatLongRect getLatLongRect()
Not used.
.google.cloud.vision.v1.LatLongRect lat_long_rect = 1;
getLatLongRectOrBuilder()
public LatLongRectOrBuilder getLatLongRectOrBuilder()
Not used.
.google.cloud.vision.v1.LatLongRect lat_long_rect = 1;
getParserForType()
public Parser<ImageContext> getParserForType()
Overrides
getProductSearchParams()
public ProductSearchParams getProductSearchParams()
Parameters for product search.
.google.cloud.vision.v1.ProductSearchParams product_search_params = 5;
getProductSearchParamsOrBuilder()
public ProductSearchParamsOrBuilder getProductSearchParamsOrBuilder()
Parameters for product search.
.google.cloud.vision.v1.ProductSearchParams product_search_params = 5;
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
getTextDetectionParams()
public TextDetectionParams getTextDetectionParams()
Parameters for text detection and document text detection.
.google.cloud.vision.v1.TextDetectionParams text_detection_params = 12;
getTextDetectionParamsOrBuilder()
public TextDetectionParamsOrBuilder getTextDetectionParamsOrBuilder()
Parameters for text detection and document text detection.
.google.cloud.vision.v1.TextDetectionParams text_detection_params = 12;
getWebDetectionParams()
public WebDetectionParams getWebDetectionParams()
Parameters for web detection.
.google.cloud.vision.v1.WebDetectionParams web_detection_params = 6;
getWebDetectionParamsOrBuilder()
public WebDetectionParamsOrBuilder getWebDetectionParamsOrBuilder()
Parameters for web detection.
.google.cloud.vision.v1.WebDetectionParams web_detection_params = 6;
hasCropHintsParams()
public boolean hasCropHintsParams()
Parameters for crop hints annotation request.
.google.cloud.vision.v1.CropHintsParams crop_hints_params = 4;
Returns |
---|
Type | Description |
boolean | Whether the cropHintsParams field is set.
|
hasLatLongRect()
public boolean hasLatLongRect()
Not used.
.google.cloud.vision.v1.LatLongRect lat_long_rect = 1;
Returns |
---|
Type | Description |
boolean | Whether the latLongRect field is set.
|
hasProductSearchParams()
public boolean hasProductSearchParams()
Parameters for product search.
.google.cloud.vision.v1.ProductSearchParams product_search_params = 5;
Returns |
---|
Type | Description |
boolean | Whether the productSearchParams field is set.
|
hasTextDetectionParams()
public boolean hasTextDetectionParams()
Parameters for text detection and document text detection.
.google.cloud.vision.v1.TextDetectionParams text_detection_params = 12;
Returns |
---|
Type | Description |
boolean | Whether the textDetectionParams field is set.
|
hasWebDetectionParams()
public boolean hasWebDetectionParams()
Parameters for web detection.
.google.cloud.vision.v1.WebDetectionParams web_detection_params = 6;
Returns |
---|
Type | Description |
boolean | Whether the webDetectionParams field is set.
|
hashCode()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public ImageContext.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ImageContext.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public ImageContext.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides