pub struct TextDetectionParams {
pub advanced_ocr_options: Option<Vec<String>>,
pub enable_text_detection_confidence_score: Option<bool>,
}Expand description
Parameters for text detections. This is used to control TEXT_DETECTION and DOCUMENT_TEXT_DETECTION features.
This type is not used in any activity, and only used as part of another schema.
Fields§
§advanced_ocr_options: Option<Vec<String>>A list of advanced OCR options to further fine-tune OCR behavior. Current valid values are: - legacy_layout: a heuristics layout detection algorithm, which serves as an alternative to the current ML-based layout detection algorithm. Customers can choose the best suitable layout algorithm based on their situation.
enable_text_detection_confidence_score: Option<bool>By default, Cloud Vision API only includes confidence score for DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence score for TEXT_DETECTION as well.
Trait Implementations§
Source§impl Clone for TextDetectionParams
impl Clone for TextDetectionParams
Source§fn clone(&self) -> TextDetectionParams
fn clone(&self) -> TextDetectionParams
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TextDetectionParams
impl Debug for TextDetectionParams
Source§impl Default for TextDetectionParams
impl Default for TextDetectionParams
Source§fn default() -> TextDetectionParams
fn default() -> TextDetectionParams
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TextDetectionParams
impl<'de> Deserialize<'de> for TextDetectionParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for TextDetectionParams
impl Serialize for TextDetectionParams
impl Part for TextDetectionParams
Auto Trait Implementations§
impl Freeze for TextDetectionParams
impl RefUnwindSafe for TextDetectionParams
impl Send for TextDetectionParams
impl Sync for TextDetectionParams
impl Unpin for TextDetectionParams
impl UnwindSafe for TextDetectionParams
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
Mutably borrows from an owned value. Read more