Struct google_api_proto::google::cloud::vision::v1p1beta1::ImageContext
source · pub struct ImageContext {
pub lat_long_rect: Option<LatLongRect>,
pub language_hints: Vec<String>,
pub crop_hints_params: Option<CropHintsParams>,
pub web_detection_params: Option<WebDetectionParams>,
pub text_detection_params: Option<TextDetectionParams>,
}
Expand description
Image context and/or feature-specific parameters.
Fields§
§lat_long_rect: Option<LatLongRect>
lat/long rectangle that specifies the location of the image.
language_hints: Vec<String>
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.
crop_hints_params: Option<CropHintsParams>
Parameters for crop hints annotation request.
web_detection_params: Option<WebDetectionParams>
Parameters for web detection.
text_detection_params: Option<TextDetectionParams>
Parameters for text detection and document text detection.
Trait Implementations§
source§impl Clone for ImageContext
impl Clone for ImageContext
source§fn clone(&self) -> ImageContext
fn clone(&self) -> ImageContext
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ImageContext
impl Debug for ImageContext
source§impl Default for ImageContext
impl Default for ImageContext
source§impl Message for ImageContext
impl Message for ImageContext
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for ImageContext
impl PartialEq for ImageContext
source§fn eq(&self, other: &ImageContext) -> bool
fn eq(&self, other: &ImageContext) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ImageContext
Auto Trait Implementations§
impl Freeze for ImageContext
impl RefUnwindSafe for ImageContext
impl Send for ImageContext
impl Sync for ImageContext
impl Unpin for ImageContext
impl UnwindSafe for ImageContext
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request