pub struct UnsafeTempFolderDebugger { /* private fields */ }Expand description
Named unsafe as if the same debugger instance is used across different executions of BloodPressureReadingExtractor then the files will be overwritten with new values and if it is used across concurrent executions then the files may be corrupted or an error may be thrown. A new BloodPressureReadingExtractor should be constructed for each run when using this debugger.
This debugger writes the debug image files to the system temporary folder. The folder lives inside bpm-ocr/${folder_name}
Implementations§
Source§impl UnsafeTempFolderDebugger
impl UnsafeTempFolderDebugger
pub fn using_timestamp_folder_name(debug_enabled: bool) -> Self
Trait Implementations§
Source§impl BpmOcrDebugOutputter for UnsafeTempFolderDebugger
impl BpmOcrDebugOutputter for UnsafeTempFolderDebugger
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
fn debug_original_picture(&self, image: &Mat) -> Result<(), ProcessingError>
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>
Auto Trait Implementations§
impl Freeze for UnsafeTempFolderDebugger
impl RefUnwindSafe for UnsafeTempFolderDebugger
impl Send for UnsafeTempFolderDebugger
impl Sync for UnsafeTempFolderDebugger
impl Unpin for UnsafeTempFolderDebugger
impl UnwindSafe for UnsafeTempFolderDebugger
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