pub struct OcrDetector { /* private fields */ }Implementations§
Source§impl OcrDetector
impl OcrDetector
pub fn text(engine: impl OcrEngine) -> Self
Sourcepub fn with_span_filter(
self,
filter: impl Fn(&TextSpan) -> bool + Send + 'static,
) -> Self
pub fn with_span_filter( self, filter: impl Fn(&TextSpan) -> bool + Send + 'static, ) -> Self
Add a span filter (true = keep), applied BEFORE sorting, joining,
and change detection — a filtered span can never fire a Changed
event. Filters compose; a span must pass all of them. Stock filters
live in crate::filters.
pub fn number( engine: impl OcrEngine, parser: impl Fn(&str) -> Option<f64> + Send + 'static, ) -> Self
pub fn spans(engine: impl OcrEngine) -> Self
Trait Implementations§
Source§impl Detector for OcrDetector
impl Detector for OcrDetector
fn evaluate( &mut self, view: &FrameView<'_>, ) -> Result<DetectorOutput, DetectorError>
Auto Trait Implementations§
impl !RefUnwindSafe for OcrDetector
impl !Sync for OcrDetector
impl !UnwindSafe for OcrDetector
impl Freeze for OcrDetector
impl Send for OcrDetector
impl Unpin for OcrDetector
impl UnsafeUnpin for OcrDetector
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