BpmOcrDebugOutputter

Trait BpmOcrDebugOutputter 

Source
pub trait BpmOcrDebugOutputter {
    // Required methods
    fn new(unique_session_name: &str, debug_enabled: bool) -> Self;
    fn output(
        &self,
        image: &Mat,
        stage_description: &str,
    ) -> Result<(), ProcessingError>;
    fn debug_enabled(&self) -> bool;

    // Provided methods
    fn debug_after_canny(&self, image: &UMat) -> Result<(), ProcessingError> { ... }
    fn debug_lcd_contour_candidates(
        &self,
        image: &Mat,
        candidates: &Vec<LcdScreenCandidate>,
        rejections: Vec<RejectedLcdScreenCandidate>,
    ) -> Result<(), ProcessingError> { ... }
    fn debug_after_perspective_transform(
        &self,
        image: &Mat,
    ) -> Result<(), ProcessingError> { ... }
    fn debug_digits_before_morph(
        &self,
        image: &Mat,
    ) -> Result<(), ProcessingError> { ... }
    fn debug_digits_after_dilation(
        &self,
        image: &Mat,
    ) -> Result<(), ProcessingError> { ... }
    fn debug_digit_locations(
        &self,
        image: &Mat,
        digit_locations: &Vec<Rect2i>,
    ) -> Result<(), ProcessingError> { ... }
}

Required Methods§

Source

fn new(unique_session_name: &str, debug_enabled: bool) -> Self

Source

fn output( &self, image: &Mat, stage_description: &str, ) -> Result<(), ProcessingError>

Source

fn debug_enabled(&self) -> bool

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§