pub struct ScreenshotIngesterConfig {
pub language_hints: Vec<String>,
pub min_confidence: Option<f32>,
pub include_ui_chrome: bool,
pub ui_chrome_weight: f32,
pub content_weight: f32,
}Expand description
Configuration for screenshot ingestion.
Fields§
§language_hints: Vec<String>Language hints passed to OCR backends by default.
min_confidence: Option<f32>Drop OCR blocks below this confidence when set.
include_ui_chrome: boolWhether UI chrome text blocks should be included in output chunks.
ui_chrome_weight: f32Weight applied to UI chrome text blocks.
content_weight: f32Weight applied to non-UI OCR blocks.
Implementations§
Source§impl ScreenshotIngesterConfig
impl ScreenshotIngesterConfig
Sourcepub fn without_confidence_filter(self) -> Self
pub fn without_confidence_filter(self) -> Self
Disable default confidence filtering.
Sourcepub fn with_ui_chrome(self, include: bool) -> Self
pub fn with_ui_chrome(self, include: bool) -> Self
Set whether UI chrome blocks are included.
Trait Implementations§
Source§impl Clone for ScreenshotIngesterConfig
impl Clone for ScreenshotIngesterConfig
Source§fn clone(&self) -> ScreenshotIngesterConfig
fn clone(&self) -> ScreenshotIngesterConfig
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 ScreenshotIngesterConfig
impl Debug for ScreenshotIngesterConfig
Auto Trait Implementations§
impl Freeze for ScreenshotIngesterConfig
impl RefUnwindSafe for ScreenshotIngesterConfig
impl Send for ScreenshotIngesterConfig
impl Sync for ScreenshotIngesterConfig
impl Unpin for ScreenshotIngesterConfig
impl UnsafeUnpin for ScreenshotIngesterConfig
impl UnwindSafe for ScreenshotIngesterConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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>
Wrap the input message
T in a tonic::Request